add_time_kind.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends "dbadmin_base.html" %}
  2. {% import "bootstrap/wtf.html" as wtf %}
  3. {%block scripts%}
  4. <script src="{{url_for('static', filename='webshim/polyfiller.js')}}"
  5. type="text/javascript"></script>
  6. <script type="text/javascript">
  7. webshim.setOptions('forms-ext', {
  8. 'types': 'datetime-local',
  9. 'datetime-local': {
  10. 'classes': 'show-uparrow inputbtns-outside',
  11. 'openOnFocus': false,
  12. 'yearSelect' : true,
  13. 'stepfactor': 60,
  14. }
  15. });
  16. webshim.polyfill('forms-ext');
  17. </script>
  18. {{super()}}
  19. {%endblock%}
  20. {% block title %}Larigira - DB add time "{{kind}}" {%endblock%}
  21. {% block content %}
  22. {% if form.errors %}
  23. <div class="alert alert-danger">
  24. <strong>There were some error in your form;</strong> please fix them, then
  25. resubmit
  26. </div>
  27. {% endif %}
  28. {% if mode == 'edit' %}
  29. <div class="alert alert-info">
  30. <strong>Note:</strong> You can change parameters, but you cannot change the <em>kind</em> of this alarm (yet)
  31. </div>
  32. {% endif %}
  33. <div class="container-fluid">
  34. {{wtf.quick_form(form)}}
  35. </div>
  36. {% endblock content %}
  37. {# vim: set ts=2 sw=2 noet: #}