{% extends "base.html" %} {% block main_content %}

{{page_title}}

{% for field in form %} {% if field.type == 'HiddenField' or field.type == 'CSRFTokenField' %} {{field}} {% elif field.type != 'SubmitField' %}
{{ field.label( class="input-group-text col-2 justify-content-end" ) }} {% if field.type == 'SelectField' %} {{ field( class="form-select col-9" ) }} {% else %} {{ field( class="form-control col-9" ) }} {% endif %}
{% endif %} {% endfor %}
{{form.submit(class="btn btn-primary offset-2 col-2 mt-4" )}}
{% if page_title == 'Edit Author' %}
{% endif %} {% endblock main_content %} {% block script_content %} {% if object %} {% endif %} {% endblock script_content %}