diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-03 12:45:49 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-03 16:26:22 +0200 |
commit | 7613cd8017e978e771552467a4e10141e120fccb (patch) | |
tree | 172c69df30ead92bdf6b9fb2619523ad6b4f9f29 /ogcp/templates/servers.html | |
parent | c1ac88e47c8562699edc9f5304649762366191e0 (diff) |
ogcp: add server ip configuration
Enable server view in the main toolbar.
Hide Add server and Delete server buttons.
Add Update server button.
Add server/update view to edit the server addresses.
Diffstat (limited to 'ogcp/templates/servers.html')
-rw-r--r-- | ogcp/templates/servers.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ogcp/templates/servers.html b/ogcp/templates/servers.html index bc09c4f..d555f71 100644 --- a/ogcp/templates/servers.html +++ b/ogcp/templates/servers.html @@ -17,7 +17,8 @@ <li class="nav-item"> <input class="form-check-input" type="checkbox" form="serversForm" value="{{ server_str }}" - name="selected-server" /> + name="selected-server" + {% if loop.index == 1 %}checked{% endif %} /> {{ server["name"] }} </li> {% endfor %} @@ -26,10 +27,8 @@ {% block commands %} {% if current_user.is_authenticated %} - <input class="btn btn-light {% block nav_server_add %}{% endblock %}" type="submit" value="{{ _('Add server') }}" - form="serversForm" formaction="{{ url_for('server_add_get') }}" formmethod="get"> - <input class="btn btn-light {% block nav_server_delete %}{% endblock %}" type="submit" value="{{ _('Delete server') }}" - form="serversForm" formaction="{{ url_for('server_delete_get') }}" formmethod="get"> + <input class="btn btn-light {% block nav_server_update %}{% endblock %}" type="submit" value="{{ _('Update 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()"> {{ _("Back") }} |