From 1e7fce971acd38f072a07cf436d2a94897176be3 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 14 May 2021 12:36:40 +0200 Subject: Create "Add Center" form and view Creates "add center" form with "name" as required input and "comment" as optional input. In the future, the CenterForm can be used to display center information once such functionality lands in the ogserver. --- ogcp/templates/actions/add_center.html | 15 +++++++++++++++ ogcp/templates/scopes.html | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 ogcp/templates/actions/add_center.html (limited to 'ogcp/templates') diff --git a/ogcp/templates/actions/add_center.html b/ogcp/templates/actions/add_center.html new file mode 100644 index 0000000..10759c7 --- /dev/null +++ b/ogcp/templates/actions/add_center.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +

{{_('Add center form')}}

+ +{{ wtf.quick_form(form, + action=url_for('action_center_add'), + method='post', + button_map={'submit': 'primary'}, + extra_classes="mx-5") }} + +{% endblock %} + diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html index 746acff..934177f 100644 --- a/ogcp/templates/scopes.html +++ b/ogcp/templates/scopes.html @@ -20,6 +20,8 @@ form="scopesForm" formaction="{{ url_for('action_client_add') }}" formmethod="get"> + {% endblock %} -- cgit v1.2.3-18-g5258