Moved "Remove to default" unded field

This commit is contained in:
Rares Vernica (cessna, fedora) 2016-12-01 09:40:11 -08:00
parent 32c760cc1d
commit 588ac2da71

View file

@ -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>