stc

a simple time card webapp
git clone _git@git.brennen.work:stc.git
Log | Files | Refs | README

form_branches.html (872B)


      1 {% extends 'base.html' %}
      2 
      3 {% block title %}Update Branch{% endblock %}
      4 
      5 {% block content %}
      6 <section>
      7 	<a href="{{ url_for('branches.update_branch',branch_id=branch['branch_id']) }}">back to branch</a>
      8 	<h3>Update 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 	{% if update == "branch_name" %}{{ form.branch_name.label }}{{ form.branch_name() }}{% endif %}
     15 	{% if update == "address" %}{{ form.address.label }}{{ form.address() }}{% endif %}
     16 	{% if update == "city" %}{{ form.city.label }}{{ form.city() }}{% endif %}
     17 	{% if update == "state" %}{{ form.state.label }}{{ form.state() }}{% endif %}
     18 	{% if update == "zipcode" %}{{ form.zipcode.label }}{{ form.zipcode() }}{% endif %}
     19 	{{ form.update_branch() }}
     20 </form>
     21 </section>
     22 {% endblock %}