stc

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

otheruser.html (866B)


      1 {% extends 'base.html' %}
      2 
      3 {% block title %}Clock In User{% 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 
     14 	<section class="hours-grid">
     15 		<h1 id="clock"></h1>
     16 		<form action="" method="POST" novalidate>
     17 			<table>
     18 			{% for field in form %}{% if field.widget.input_type != 'hidden' and field.widget.input_type != 'submit' %}
     19 				{% for error in field.errors %}
     20 				<tr><td><span style="color:red;">{{ field.label }}</span></td><td><span style="color:red;">[{{error}}]</span></td></tr>
     21 				{% endfor %}
     22 				<tr><td>{{ field.label }}</td><td>{{ field }}</td></tr>
     23 			{% endif %}{% endfor %}
     24 			</table>
     25 			{{ form.submitEntr() }}
     26 			{{ form.hidden_tag() }}
     27 		</form>
     28 	</section>
     29 {% endblock %}