new_branch.html (642B)
1 {% extends 'base.html' %} 2 3 {% block title %}New Branch{% endblock %} 4 5 {% block content %} 6 <section> 7 <a href="{{ url_for('branches.branches') }}">back to branches</a> 8 <h3>Add new Branch</h3> 9 <form action="" method="POST" novalidate> 10 {{ form.hidden_tag() }} 11 {% for error in form.errors %} 12 <span style="color:red;">[{{ error }}]</span> 13 {% endfor %} 14 {{ form.branch_name.label }}{{ form.branch_name() }} 15 {{ form.address.label }}{{ form.address() }} 16 {{ form.city.label }}{{ form.city() }} 17 {{ form.state.label }}{{ form.state() }} 18 {{ form.zipcode.label }}{{ form.zipcode() }} 19 {{ form.submit_branch() }} 20 </form> 21 </section> 22 {% endblock %}