templates: use "edit" instead of "update" in menus

Use "Edit" instead of "Update" for every menu except Update image
in Commands view.

Use "Command" instad of "Cmd" for shell run menu in Commands view.
master
Alejandro Sirgo Rica 2024-12-12 13:03:09 +01:00
parent a58587dc80
commit c7c28d6e92
5 changed files with 8 additions and 8 deletions

View File

@ -102,7 +102,7 @@
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<input class="btn btn-light dropdown-item{% block nav_run_script %}{% endblock %}" type="submit" value="{{ _('Script') }}"
form="scopesForm" formaction="{{ url_for('action_run_script') }}" formmethod="get">
<input class="btn btn-light dropdown-item{% block nav_run_cmd %}{% endblock %}" type="submit" value="{{ _('Cmd') }}"
<input class="btn btn-light dropdown-item{% block nav_run_cmd %}{% endblock %}" type="submit" value="{{ _('Command') }}"
form="scopesForm" formaction="{{ url_for('action_run_cmd') }}" formmethod="get">
<input class="btn btn-light dropdown-item{% block nav_display_output %}{% endblock %}" type="submit" value="{{ _('Display output') }}"
form="scopesForm" formaction="{{ url_for('action_script_display_output') }}" formmethod="get">

View File

@ -72,7 +72,7 @@
form="imagesForm" formaction="{{ url_for('action_image_delete') }}" formmethod="get">
{% endif %}
{% if current_user.get_permission('IMAGE', 'UPDATE') %}
<input class="btn btn-light" type="submit" value="{{ _('Update image') }}"
<input class="btn btn-light" type="submit" value="{{ _('Edit image') }}"
form="imagesForm" formaction="{{ url_for('action_image_config') }}" formmethod="get">
{% endif %}
{% endif %}

View File

@ -66,7 +66,7 @@
form="reposForm" formaction="{{ url_for('action_repo_delete') }}" formmethod="get">
{% endif %}
{% if current_user.get_permission('REPOSITORY', 'UPDATE') %}
<input class="btn btn-light {% block nav_repo_update %}{% endblock %}" type="submit" value="{{ _('Update repo') }}"
<input class="btn btn-light {% block nav_repo_update %}{% endblock %}" type="submit" value="{{ _('Edit repo') }}"
form="reposForm" formaction="{{ url_for('action_repo_update') }}" formmethod="get">
{% endif %}
{% endif %}

View File

@ -28,7 +28,7 @@
<input class="btn btn-light dropdown-item {% block nav_client_add %}{% endblock %}" type="submit" value="{{ _('Add client') }}"
form="scopesForm" formaction="{{ url_for('action_client_add') }}" formmethod="get">
{% endif %}
<input class="btn btn-light dropdown-item {% block nav_client_update %}{% endblock %}" type="submit" value="{{ _('Update client') }}"
<input class="btn btn-light dropdown-item {% block nav_client_update %}{% endblock %}" type="submit" value="{{ _('Edit client') }}"
form="scopesForm" formaction="{{ url_for('action_client_update') }}" formmethod="get">
{% if current_user.get_permission('CLIENT', 'UPDATE') %}
<input class="btn btn-light dropdown-item {% block nav_client_move %}{% endblock %}" type="submit" value="{{ _('Move client') }}"
@ -56,7 +56,7 @@
form="scopesForm" formaction="{{ url_for('action_room_add') }}" formmethod="get">
{% endif %}
{% if current_user.get_permission('ROOM', 'UPDATE') %}
<input class="btn btn-light dropdown-item {% block nav_room_update %}{% endblock %}" type="submit" value="{{ _('Update room') }}"
<input class="btn btn-light dropdown-item {% block nav_room_update %}{% endblock %}" type="submit" value="{{ _('Edit room') }}"
form="scopesForm" formaction="{{ url_for('action_room_update') }}" formmethod="get">
{% endif %}
{% if current_user.get_permission('ROOM', 'DELETE') %}
@ -78,7 +78,7 @@
form="scopesForm" formaction="{{ url_for('action_center_add') }}" formmethod="get">
{% endif %}
{% if current_user.get_permission('CENTER', 'UPDATE') %}
<input class="btn btn-light dropdown-item {% block nav_center_update %}{% endblock %}" type="submit" value="{{ _('Update center') }}"
<input class="btn btn-light dropdown-item {% block nav_center_update %}{% endblock %}" type="submit" value="{{ _('Edit center') }}"
form="scopesForm" formaction="{{ url_for('action_center_update') }}" formmethod="get">
{% endif %}
{% if current_user.get_permission('CENTER', 'DELETE') %}
@ -101,7 +101,7 @@
form="scopesForm" formaction="{{ url_for('action_folder_add') }}" formmethod="get">
{% endif %}
{% if current_user.get_permission('FOLDER', 'UPDATE') %}
<input class="btn btn-light dropdown-item {% block nav_folder_update %}{% endblock %}" type="submit" value="{{ _('Update folder') }}"
<input class="btn btn-light dropdown-item {% block nav_folder_update %}{% endblock %}" type="submit" value="{{ _('Edit folder') }}"
form="scopesForm" formaction="{{ url_for('action_folder_update') }}" formmethod="get">
{% endif %}
{% if current_user.get_permission('FOLDER', 'DELETE') %}

View File

@ -27,7 +27,7 @@
{% block commands %}
{% if current_user.is_authenticated %}
<input class="btn btn-light {% block nav_server_update %}{% endblock %}" type="submit" value="{{ _('Update server') }}"
<input class="btn btn-light {% block nav_server_update %}{% endblock %}" type="submit" value="{{ _('Edit server') }}"
form="serversForm" formaction="{{ url_for('server_update_get') }}" formmethod="get">
{% if btn_back %}
<button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()">