add_time_kind.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. {% if mode == 'edit' %}
  37. <div class="container-fluid">
  38. <div class="alert alert-danger">
  39. <form method="POST"
  40. action="{{ url_for ('db.delete_alarm', alarmid=alarmid) }}" >
  41. <button class="btn btn-danger">Cancella</button>
  42. </form>
  43. </div>
  44. </div>
  45. {% endif %}
  46. {% endblock content %}
  47. {# vim: set ts=2 sw=2 noet: #}