index.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% extends 'base.html' %}
  2. {% load static %}
  3. {% block extra_css %}
  4. <link rel="stylesheet" href="{% static 'jquery-ui/jquery-ui.min.css' %}" />
  5. {% endblock extra_css %}
  6. {% block extra_scripts %}
  7. <script src="{% static 'js/viewmap.js' %}"> </script>
  8. <script src="{% static 'jquery-ui/jquery-ui.min.js' %}"> </script>
  9. {% endblock extra_scripts %}
  10. {% block content %}
  11. <style>
  12. .ui-datepicker { z-index: 200 !important ;}
  13. </style>
  14. <div id="dialog"></div>
  15. <div id="short-actions">
  16. <button class="btn" id="btn-open-filter">Filtra</button>
  17. </div>
  18. <div id="filters">
  19. <!-- TODO: rendi collassabile -->
  20. <header><h3>Filtra</h3></header>
  21. <form method="GET">
  22. <div class="form-field-line">
  23. <label for="tipo_radio__id">Osservazione fatta con</label>
  24. <select name="tipo_radio__id" >
  25. <option value=""
  26. {% if params.tipo_radio__id == "" %} selected="selected" {% endif %}
  27. >//</option>
  28. {% for tr in tipiradio %}
  29. <option value="{{tr.id}}"
  30. {% if tr.id == params.tipo_radio__id|add:"0" %}
  31. selected="selected"
  32. {% endif %}
  33. >
  34. <strong>{{tr.nome}}</strong> - {{tr.descrizione|default:'' }}
  35. </option>
  36. {% endfor %}
  37. </select>
  38. <div>
  39. <label for="created__gt">Da</label>
  40. <input type="text" name="created__gt" value="{{params.created__gt}}">
  41. <label for="created__lt">A</label>
  42. <input type="text" name="created__lt" value="{{params.created__lt}}">
  43. </div>
  44. </div>
  45. <button class="btn" id="search">Filtra</button>
  46. </form>
  47. </div>
  48. {% endblock content %}