mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Moved "Remove to default" unded field
This commit is contained in:
parent
32c760cc1d
commit
588ac2da71
1 changed files with 2 additions and 4 deletions
|
|
@ -6,7 +6,6 @@
|
|||
<th><div class="text">{% trans "Default" %}</div></th>
|
||||
<th><div class="text">{% trans "Value" %}</div></th>
|
||||
<th><div class="text">{% trans "Is modified" %}</div></th>
|
||||
<th><div class="text">{% trans "Reset to default" %}</div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for item in config_values %}
|
||||
|
|
@ -20,6 +19,8 @@
|
|||
<td>
|
||||
{{ item.form_field.errors }}
|
||||
{{ item.form_field }}
|
||||
<br>
|
||||
<a href="#" onClick="document.getElementById('{{ item.form_field.auto_id }}').value = '{{ item.default|escapejs }}'; return false;">Reset to default</a>
|
||||
</td>
|
||||
<td>
|
||||
{% if item.modified %}
|
||||
|
|
@ -28,9 +29,6 @@
|
|||
<img src="{% static 'admin/img/icon-no.'|add:icon_type %}" alt="{{ item.modified }}" />
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" onClick="document.getElementById('{{ item.form_field.auto_id }}').value = '{{ item.default|escapejs }}'; return false;">Reset to default</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Reference in a new issue