aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/repos/add.html.jinja
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-09-28 12:48:45 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-29 12:53:36 +0200
commitffe6e681b281eef2c1e62bbc6feefb0b85d040ca (patch)
tree0aa141073403beae9590135fd047d7a2ebd8fe76 /src/hydrilla/proxy/web_ui/templates/repos/add.html.jinja
parent1a1f750ccdc1d52a7b1bd648b2188fa6e7c1a4b8 (diff)
downloadhaketilo-hydrilla-ffe6e681b281eef2c1e62bbc6feefb0b85d040ca.tar.gz
haketilo-hydrilla-ffe6e681b281eef2c1e62bbc6feefb0b85d040ca.zip
[proxy] make it possible to create "ad hoc" packages through the web UI
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/repos/add.html.jinja')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/repos/add.html.jinja25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/repos/add.html.jinja b/src/hydrilla/proxy/web_ui/templates/repos/add.html.jinja
index 6bc1c19..be4933a 100644
--- a/src/hydrilla/proxy/web_ui/templates/repos/add.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/repos/add.html.jinja
@@ -25,37 +25,20 @@ code in a proprietary work, I am not going to enforce this in court.
{% block main %}
<h3>{{ _('web_ui.repos.add.heading') }}</h3>
<form method="POST">
+ {{ form_label(_('web_ui.repos.add.name_field_label'), 'name') }}
{% if repo_name_invalid is defined %}
{{ error_note(_('web_ui.err.repo_name_invalid')) }}
{% endif %}
-
{% if repo_name_taken is defined %}
{{ error_note(_('web_ui.err.repo_name_taken')) }}
{% endif %}
+ {{ form_field('name') }}
- <label for="name_field" class="block-with-bottom-margin">
- {{ _('web_ui.repos.add.name_field_label') }}
- </label>
-
- <div class="flex-row">
- <input id="name_field" name="name" required="">
- </div>
-
- <div class="horizontal-separator"></div>
-
+ {{ form_label(_('web_ui.repos.add.url_field_label'), 'url') }}
{% if repo_url_invalid is defined %}
{{ error_note(_('web_ui.err.repo_url_invalid')) }}
{% endif %}
-
- <label for="url_field" class="block-with-bottom-margin">
- {{ _('web_ui.repos.add.url_field_label') }}
- </label>
-
- <div class="flex-row">
- <input id="url_field" name="url" required="">
- </div>
-
- <div class="horizontal-separator"></div>
+ {{ form_field('url') }}
<div class="flex-row block-with-bottom-margin">
<button class="green-button">