From d135a4806dc12d24240fd50fcbcb5ab6f5c89db1 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 17 Jun 2024 16:42:09 +0200 Subject: ogcp: add center details view to scopes management Add a readonly view for the center data. Mark all the form fields as readonly and set the hidden attribute to the submit field. --- ogcp/templates/actions/center_details.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ogcp/templates/actions/center_details.html (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/center_details.html b/ogcp/templates/actions/center_details.html new file mode 100644 index 0000000..5f5d37a --- /dev/null +++ b/ogcp/templates/actions/center_details.html @@ -0,0 +1,18 @@ +{% extends 'scopes.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block nav_center %} active {% endblock %} +{% block nav_center_details %} active {% endblock %} +{% block content %} + +

{{_('Center details')}}

+ +{{ wtf.quick_form(form, + method='post', + button_map={'submit': 'primary'}, + extra_classes="mx-5") }} + +{% endblock %} -- cgit v1.2.3-18-g5258