summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/add_repository.html17
-rw-r--r--ogcp/templates/repositories.html2
2 files changed, 19 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 %}
diff --git a/ogcp/templates/repositories.html b/ogcp/templates/repositories.html
index 3bed073..2333a88 100644
--- a/ogcp/templates/repositories.html
+++ b/ogcp/templates/repositories.html
@@ -24,6 +24,8 @@
{% endblock %}
{% block commands %}
+ <input class="btn btn-light {% block nav_repository_add %}{% endblock %}" type="submit" value="{{ _('Add repository') }}"
+ form="repositoriesForm" formaction="{{ url_for('repository_add_get') }}" formmethod="get">
{% if btn_back %}
<button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()">
{{ _("Back") }}