widget.html (820B)
1 <section class="fleet"> 2 <h3>Fleet</h3> 3 <form class="widget-form" action="" method="POST" novalidate> 4 {% for error in fleetoutform.errors or fleetinform.errors %} 5 <span style="color:red;">[{{ error }}]</span> 6 {% endfor %} 7 {% if not fleetCheckedOut %} 8 <div class="safetychecks"> 9 <table> 10 {% for field in fleetoutform %} 11 <tr><td>{{ field }}</td><td>{% if field.widget.input_type != 'submit' and field.widget.input_type != 'hidden' %}{{ field.label }}</td></tr>{% endif %} 12 {% endfor %} 13 </table> 14 </div> 15 {% elif fleetCheckedOut %} 16 <h5> You have {{ vehicle_name }} checked out</h5> 17 {% for field in fleetinform %} 18 {{ field }}{% if field.widget.input_type != 'submit' and field.widget.input_type != 'hidden' %}{{ field.label }}{% endif %}<br> 19 {% endfor %} 20 </div> 21 {% endif %} 22 </form> 23 </section>