Closes #22239: Rename apply button for table configs (#22266)

This commit is contained in:
Jeremy Stretch 2026-05-26 11:47:57 -04:00 committed by GitHub
parent a89feaf856
commit 88eac5b37d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
{# Render an HTMX-enabled table with paginator #}
{% load helpers %}
{% load i18n %}
{% load buttons %}
{% load render_table from django_tables2 %}
@ -23,7 +24,7 @@
{# Include the updated "save" link for the table configuration #}
{% if table.config_params and not table.embedded %}
<a class="dropdown-item" hx-swap-oob="outerHTML:#table_save_link" href="{% url 'extras:tableconfig_add' %}?{{ table.config_params }}&return_url={{ request.path }}" id="table_save_link">Save</a>
<a class="dropdown-item" hx-swap-oob="outerHTML:#table_save_link" href="{% url 'extras:tableconfig_add' %}?{{ table.config_params }}&return_url={{ request.path }}" id="table_save_link">{% trans "Save" %}</a>
{% endif %}
{# Update the bulk action buttons with new query parameters #}

View File

@ -38,7 +38,7 @@
</button>
<div class="dropdown-menu">
{% if table.config_params %}
<a class="dropdown-item" href="{% url 'extras:tableconfig_add' %}?{{ table.config_params }}&return_url={{ request.path }}" id="table_save_link">Save</a>
<a class="dropdown-item" href="{% url 'extras:tableconfig_add' %}?{{ table.config_params }}&return_url={{ request.path }}" id="table_save_link">{% trans "Save" %}</a>
{% endif %}
{% if table.config_params and table_configs %}
<hr class="dropdown-divider">

View File

@ -36,8 +36,8 @@
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-outline-danger" id="reset_tableconfig" value="Reset">{% trans "Reset" %}</button>
<button type="submit" class="btn btn-primary" id="save_tableconfig" value="Save">{% trans "Save" %}</button>
<button type="submit" class="btn btn-outline-danger" id="reset_tableconfig" value="Reset">{% trans "Reset" %}</button>
<button type="submit" class="btn btn-primary" id="apply_tableconfig" value="Apply">{% trans "Apply" %}</button>
</div>
</form>
</div>