add missing templates
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
93b0e5e134
commit
599742b3e3
|
@ -0,0 +1,12 @@
|
|||
<div class="
|
||||
form-group checkbox {{ container_class }}
|
||||
{% if field.field.required %} required{% endif %}
|
||||
{% if field.errors %} has-error{% endif %}
|
||||
">
|
||||
<label>
|
||||
{{ field }}
|
||||
{{ field.label }}
|
||||
</label>
|
||||
{% if field.errors %}{{ field.errors }}{% endif %}
|
||||
{% if field.help_text %}<p class="help-block">{{ field.help_text }}</p>{% endif %}
|
||||
</div>
|
|
@ -0,0 +1,14 @@
|
|||
{% load i18n %}
|
||||
{% if form.errors %}
|
||||
<dl class="alert alert-danger {{ container_class }}">
|
||||
{% for error in form.non_field_errors %}
|
||||
<dd>{{ error|striptags }}</dd>
|
||||
{% endfor %}
|
||||
{% for field in form %}
|
||||
{% if field.errors %}
|
||||
<dt>{{ field.label }}</dt>
|
||||
<dd>{{ field.errors|striptags }}</dd>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% endif %}
|
|
@ -0,0 +1,17 @@
|
|||
{% load form_tags %}
|
||||
<div class="
|
||||
form-group {{ container_class }}
|
||||
{% if field.field.required %} required{% endif %}
|
||||
{% if field.errors %} has-error{% endif %}
|
||||
">
|
||||
<label>{{ field.label }}</label>
|
||||
{% add_widget_attrs field placeholder=field.label %}
|
||||
{{ field }}
|
||||
|
||||
{% if add_another_url %}
|
||||
<a id="add_{{ field.id_for_label }}" class="add-another" onclick="return showAddAnotherPopup(this);" href="{{ add_another_url }}"><i class="fa fa-plus"></i></a>
|
||||
{% endif %}
|
||||
|
||||
{% if field.help_text %}<div class="help-block">{{ field.help_text|safe }}</div>{% endif %}
|
||||
{% if field.errors %}{{ field.errors }}{% endif %}
|
||||
</div>
|
|
@ -0,0 +1,18 @@
|
|||
{% load gas_tags %}
|
||||
|
||||
{% for entry in menu %}
|
||||
<li>
|
||||
{% if entry.url %}
|
||||
<a href="{% url entry.url %}">{{ entry.label }}</a>
|
||||
{% else %}
|
||||
{{ entry.label }}
|
||||
{% endif %}
|
||||
{% with children=entry|get_children:user_roles %}
|
||||
{% if children %}
|
||||
<ul>
|
||||
{% include "gas/tags/navigation.html" with menu=children %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</li>
|
||||
{% endfor %}
|
Loading…
Reference in New Issue