stc

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

branches.html (841B)


      1 {% extends 'base.html' %}
      2 
      3 {% block title %}Branches{% endblock %}
      4 
      5 {% block content %}
      6 	{% with messages = get_flashed_messages() %}
      7 	{% if messages %}
      8 		{% for message in messages %}
      9 		<div id="messagebanner"><p>{{ message }}</p></div>
     10 		{% endfor %}
     11 	{% endif %}
     12 	{% endwith %}
     13 	<section>
     14 	{% if branches %}
     15 		<section class="branches">
     16 			<h2 style="color:red">Branches</h2>
     17 			{% for branch in branches %}
     18 				<a href="{{ url_for('branches.branch',branch_id=branch['_id']) }}">
     19 					<h3>{{ branch.branch_name }}</h3>
     20 					<div>{{ branch.address }}</div>
     21 					<div>{{ branch['city'] }}</div>
     22 					<div>{{ branch['state'] }}</div>
     23 					<div>{{ branch['zipcode'] }}</div>
     24 				</a>
     25 			{% endfor %}
     26 		</section>
     27 	{% endif %}
     28 	<a href="{{ url_for('branches.new_branch') }}" class="action-button">Add new Branch</a>
     29 	</section>
     30 {% endblock %}