summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-31 17:45:20 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-07 17:49:15 +0200
commitcf02e0c051e664cdfd77162fac3a7c8302620324 (patch)
tree494e05e3c118848770ae40beb9a8b11e001ec5f1 /ogcp/templates/actions
parent7039b2942611f605f610888e6c7970135f4b67e4 (diff)
Add Servers section
In Servers section/view, users can add or delete ogServers from ogCP configuration file. Replaces Repositories views and recycle some of its code.
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r--ogcp/templates/actions/add_server.html (renamed from ogcp/templates/actions/add_repository.html)8
-rw-r--r--ogcp/templates/actions/delete_server.html (renamed from ogcp/templates/actions/delete_repository.html)6
2 files changed, 7 insertions, 7 deletions
diff --git a/ogcp/templates/actions/add_repository.html b/ogcp/templates/actions/add_server.html
index e7c50fa..c86dcba 100644
--- a/ogcp/templates/actions/add_repository.html
+++ b/ogcp/templates/actions/add_server.html
@@ -1,16 +1,16 @@
-{% extends 'repositories.html' %}
+{% extends 'servers.html' %}
{% import "bootstrap/wtf.html" as wtf %}
{% set sidebar_state = 'disabled' %}
{% set btn_back = true %}
-{% block nav_repository_add %}active{% endblock %}
+{% block nav_server_add %}active{% endblock %}
{% block content %}
-<h1 class="m-5">{{_('Add a repository')}}</h1>
+<h1 class="m-5">{{_('Add a server')}}</h1>
{{ wtf.quick_form(form,
- action=url_for('repository_add_post'),
+ action=url_for('server_add_post'),
method='post',
button_map={'submit_btn':'primary'}) }}
diff --git a/ogcp/templates/actions/delete_repository.html b/ogcp/templates/actions/delete_server.html
index 82177a3..8f9417e 100644
--- a/ogcp/templates/actions/delete_repository.html
+++ b/ogcp/templates/actions/delete_server.html
@@ -1,4 +1,4 @@
-{% extends 'repositories.html' %}
+{% extends 'servers.html' %}
{% import "bootstrap/wtf.html" as wtf %}
{% set sidebar_state = 'disabled' %}
@@ -9,11 +9,11 @@
{{ args }}
<h1 class="m-5">
- {{ _('Delete repository %(repo_name)s', repo_name=repo_name) }}
+{{ _('Delete server %(server_name)s', server_name=form.name.data) }}
</h1>
{{ wtf.quick_form(form,
- action=url_for('repository_delete_post'),
+ action=url_for('server_delete_post'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}