diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-07-01 10:36:20 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-07-04 15:34:02 +0200 |
commit | c068bd21448c2e202720a9daf2923a375c96370d (patch) | |
tree | c893d4908ad306218f0c8e5af2e68eb99cdac55b /ogcp/templates/actions | |
parent | 9a6981d289865b3a22c645718e0e90865ea14638 (diff) |
Create "Add Repository" form and view
Creates "Add repository" form with the required inputs: name and IP.
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r-- | ogcp/templates/actions/add_repository.html | 17 |
1 files changed, 17 insertions, 0 deletions
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 %} + +<h1 class="m-5">{{_('Add a repository')}}</h1> + +{{ wtf.quick_form(form, + action=url_for('repository_add_post'), + method='post', + button_map={'submit_btn':'primary'}) }} + +{% endblock %} |