From c068bd21448c2e202720a9daf2923a375c96370d Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 1 Jul 2022 10:36:20 +0200 Subject: Create "Add Repository" form and view Creates "Add repository" form with the required inputs: name and IP. --- ogcp/templates/actions/add_repository.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ogcp/templates/actions/add_repository.html (limited to 'ogcp/templates/actions/add_repository.html') diff --git a/ogcp/templates/actions/add_repository.html b/ogcp/templates/actions/add_repository.html new file mode 100644 index 0000000..e7c50fa --- /dev/null +++ b/ogcp/templates/actions/add_repository.html @@ -0,0 +1,17 @@ +{% extends 'repositories.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block nav_repository_add %}active{% endblock %} +{% block content %} + +

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

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