Skip to content

Commit b807156

Browse files
authored
fix: django-constance default <-> code position (#1459)
1 parent 40df7ff commit b807156

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/unfold/contrib/constance/templates/admin/constance/includes/results_list.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<tr class="border-t border-base-200 dark:border-base-800 *:font-semibold *:px-3 *:py-2 *:text-left *:text-font-important-light dark:*:text-font-important-dark" {% if fieldset.collapse %}x-show="rowsOpen"{% endif %}>
1717
<th>{% trans "Name" %}</th>
1818
<th>{% trans "Value" %}</th>
19-
<th>{% trans "Code" %}</th>
2019
<th>{% trans "Default" %}</th>
20+
<th>{% trans "Code" %}</th>
2121
<th>{% trans "Modified" %}</th>
2222
<th></th>
2323
</tr>
@@ -34,13 +34,6 @@
3434
{% include "unfold/helpers/form_errors.html" with errors=item.form_field.errors %}
3535
</td>
3636

37-
38-
<td>
39-
<a class="item-name item-anchor" href="#{{ item.name|slugify }}" tabindex="-1" id="{{ item.name|slugify }}" title="Link to this setting">
40-
{% include "unfold/helpers/label.html" with text=item.name type="info" %}
41-
</a>
42-
</td>
43-
4437
<td>
4538
{% if item.default %}
4639
{% include "unfold/helpers/label.html" with text=item.default %}
@@ -49,6 +42,12 @@
4942
{% endif %}
5043
</td>
5144

45+
<td>
46+
<a class="item-name item-anchor" href="#{{ item.name|slugify }}" tabindex="-1" id="{{ item.name|slugify }}" title="Link to this setting">
47+
{% include "unfold/helpers/label.html" with text=item.name type="info" %}
48+
</a>
49+
</td>
50+
5251
<td>
5352
{% include "unfold/helpers/boolean.html" with value=item.modified %}
5453
</td>

0 commit comments

Comments
 (0)