byceps/blueprints/admin/brand/templates/admin/brand/update_form.html
{% extends 'layout/admin/base.html' %}
{% from 'macros/admin.html' import render_backlink %}
{% from 'macros/forms.html' import form_buttons, form_field_check, form_field %}
{% set current_page = 'brands_admin' %}
{% set current_page_brand = brand %}
{% set page_title = _('Update Brand') %}
{% block before_body %}
{{ render_backlink(url_for('.view', brand_id=brand.id), brand.title) }}
{%- endblock %}
{% block body %}
<h1 class="title">{{ page_title }}</h1>
<form action="{{ url_for('.update', brand_id=brand.id) }}" method="post">
<div class="box">
{{ form_field(form.title, autofocus='autofocus') }}
{{ form_field(form.image_filename) }}
{{ form_field_check(form.archived) }}
</div>
{{ form_buttons(_('Save')) }}
</form>
{%- endblock %}