From cf02e0c051e664cdfd77162fac3a7c8302620324 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 31 Aug 2022 17:45:20 +0200 Subject: 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. --- ogcp/templates/actions/add_server.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ogcp/templates/actions/add_server.html (limited to 'ogcp/templates/actions/add_server.html') diff --git a/ogcp/templates/actions/add_server.html b/ogcp/templates/actions/add_server.html new file mode 100644 index 0000000..c86dcba --- /dev/null +++ b/ogcp/templates/actions/add_server.html @@ -0,0 +1,17 @@ +{% extends 'servers.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block nav_server_add %}active{% endblock %} +{% block content %} + +

{{_('Add a server')}}

+ +{{ wtf.quick_form(form, + action=url_for('server_add_post'), + method='post', + button_map={'submit_btn':'primary'}) }} + +{% endblock %} -- cgit v1.2.3-18-g5258