byceps/byceps

View on GitHub
byceps/blueprints/admin/authn/identity_tag/templates/admin/authn/identity_tag/create_form.html

Summary

Maintainability
Test Coverage
{% extends 'layout/admin/base.html' %}
{% from 'macros/admin.html' import render_backlink %}
{% from 'macros/forms.html' import form_buttons, form_field, form_field_check %}
{% set current_page = 'authn_identity_tag_admin' %}
{% set page_title = _('Add identity tag') %}

{% block before_body %}
{{ render_backlink(url_for('.index'), _('Identity Tags')) }}
{%- endblock %}

{% block body %}

<h1 class="title">{{ page_title }}</h1>

<form action="{{ url_for('.create') }}" method="post">
  <div class="box">
    <div class="form-control-block row row--wrap" style="row-gap: 0;">
      <div class="column--grow">
        {{ form_field(form.identifier, autofocus=true) }}
      </div>
      <div class="column--grow">
        {{ form_field(form.user) }}
      </div>
    </div>
    {{ form_field(form.note, caption=_('optional')) }}
    {{ form_field_check(form.suspended) }}
  </div>

  {{ form_buttons(_('Create')) }}
</form>

{%- endblock %}