-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from imaegg11/late-start-form
Faster Way To Add Late Starts
- Loading branch information
Showing
4 changed files
with
160 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "admin/change_list.html" %} | ||
{% load i18n admin_urls static admin_list %} | ||
{% block object-tools-items %} | ||
{% for button in buttons %} | ||
<li> | ||
<a href="{{ button.url }}" class="grp-state-focus addlink">{{ button.name }}</a> | ||
</li> | ||
{% endfor %} | ||
{{ block.super }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load i18n admin_urls static admin_modify %} | ||
|
||
{% block extrahead %} | ||
{{ block.super }} | ||
<script src="{% url 'admin:jsi18n' %}"></script> | ||
<script src="{% static "admin/js/core.js" %}"></script> | ||
{{ media }} | ||
{% endblock %} | ||
|
||
{% block extrastyle %} | ||
{{ block.super }} | ||
<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}"> | ||
{% endblock %} | ||
|
||
{% if not is_popup %} | ||
{% block breadcrumbs %}<div class="breadcrumbs" style="height:0px;padding:0px"></div>{% endblock %} | ||
{% endif %} | ||
|
||
{% block coltype %}colM{% endblock %} | ||
{% block content %} | ||
<form action="{{ url }}" method="post"> | ||
{% csrf_token %} | ||
{% if form.errors %} | ||
<p class="errornote"> | ||
{% if form.errors|length == 1 %} | ||
{% translate "Please correct the error below." %} | ||
{% else %} | ||
{% translate "Please correct the errors below." %} | ||
{% endif %} | ||
</p> | ||
{% endif %} | ||
<fieldset class="module aligned "> | ||
{% for field in form %} | ||
<div class="form-row field-name"> | ||
{{ field.errors }} | ||
<div> | ||
<div class="flex-container"> | ||
{{ field.label_tag }} {{ field }} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</fieldset> | ||
<div class="submit-row"> | ||
<input class="default" type="submit" value="Save"> | ||
</div> | ||
</form> | ||
{% endblock %} |