More tweaks

This commit is contained in:
2020-09-19 13:46:55 +01:00
parent 1ea8090668
commit 77c82efce6
2 changed files with 5 additions and 7 deletions

View File

@@ -104,7 +104,7 @@
</dd> </dd>
<dt class="col-sm-6">{{ object|help_text:'safe_loading'|safe }}</dt> <dt class="col-sm-6">{{ object|help_text:'safe_loading'|safe }}</dt>
<dd class="col-sm-6"> <dd class="col-sm-6">
{{ object.safe_loading.name|yesnoi }} {{ object.safe_loading|yesnoi }}
</dd> </dd>
<dt class="col-sm-6">{{ object|help_text:'safe_storage' }}</dt> <dt class="col-sm-6">{{ object|help_text:'safe_storage' }}</dt>
<dd class="col-sm-6"> <dd class="col-sm-6">

View File

@@ -2,15 +2,13 @@
{% if form.errors %} {% if form.errors %}
<div class="alert alert-danger alert-dismissable"> <div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<dl class="dl-horizontal"> <dl class="row">
{% with form|nice_errors as qq %} {% with form|nice_errors as qq %}
{% for error_name,desc in qq.items %} {% for error_name,desc in qq.items %}
<span> <dt class="col-4">{{error_name}}</dt>
<dt>{{error_name}}</dt> <dd class="col-8">{{desc}}</dd>
<dd>{{desc}}</dd>
</span>
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}
</dl> </dl>
</div> </div>
{% endif %} {% endif %}