diff options
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.jinja | 25 |
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"> |