{% extends "_layout.html" %} {% block title %}{{ form_title }}{% endblock %} {% block content %}

{{ form_title }}

{% for f in fields %} {% if let Some(html) = f.html_before %} {{ html | safe }} {% endif %}
{% match f.widget() %} {% when FieldWidget::Checkbox %} {% when FieldWidget::Textarea %} {% when FieldWidget::Select with (options) %} {% when FieldWidget::Input with (input_type) %} {% endmatch %}
{% if let Some(html) = f.html_after %} {{ html | safe }} {% endif %} {% endfor %}
{% endblock %}