Filtro.Edit.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. <div>Pannello Controllo Note - gestione</div>
  4. <div><br></div>
  5. <p>
  6. utente che sta effettuando gli aggiornamenti: {{ utenteautorizzato.mail }}@{{ utenteautorizzato.domain.nome }}
  7. </p>
  8. <p>
  9. {% if filtro.filtro.value %}
  10. si stanno effettuando aggiornamenti sulla filtro: <b>{{ filtro.filtro.value }}</b>
  11. {% endif %}
  12. </p>
  13. {% endblock %}
  14. {% block body %}
  15. <form name='filtroedit' method='post'>
  16. {% csrf_token %}
  17. <div class='row form-group'>
  18. <div class='col'>
  19. <label for='mail'>Filtro</label>
  20. <input type='text' class='form-control' id='Filtro' name='filtro' placeholder='filtro' value='{{filtro.filtro.value }}'>
  21. </div>
  22. </div>
  23. <div class='row'>
  24. <div class='col'>
  25. <label for='status'>Status</label>
  26. <select class='form-control' id='status' name='status'>
  27. <option value="ok" {% if "ok" == filtro.status.value %} selected {% endif %}>OK</option>
  28. <option value="reject" {% if "reject" == filtro.status.value %} selected {% endif %}>reject</option>
  29. <option value="hold" {% if "hold" == filtro.status.value %} selected {% endif %}>hold</option>
  30. <option value="pass" {% if "pass" == filtro.status.value %} selected {% endif %}>pass</option>
  31. <option value="redirect" {% if "redirect" == filtro.status.value %} selected {% endif %}>Redirect</option>
  32. <option value="dunno" {% if "dunno" == filtro.status.value %} selected {% endif %}>dunno</option>
  33. </select>
  34. </div>
  35. </div>
  36. <div class='row form-group'>
  37. <div class='col'>
  38. <label for='destination'>Rcpt</label>
  39. <input type='text' class='form-control' id='destination' name='destination' placeholder='destination' value='{{filtro.destination.value }}'>
  40. </div>
  41. </div>
  42. <div class='row form-group'>
  43. <div class='col'>
  44. <label for='redirect'>Redirect To</label>
  45. <input type='text' class='form-control' id='redirect' name='redirect' placeholder='redirect' value='{{filtro.redirect.value }}'>
  46. </div>
  47. </div>
  48. <div class='form-check-group'>
  49. <label class='form-check-label' for='dinput'>Input</label>
  50. <input type='checkbox' class='form-check-input' id='dinput' name='dinput' {% if filtro.dinput.value %} checked {% endif %}>
  51. <label class='form-check-label' for='doutput'>Output</label>
  52. <input type='checkbox' class='form-check-input' id='doutput' name='doutput' {% if filtro.doutput.value %} checked {% endif %}>
  53. <label class='form-check-label' for='header'>Header</label>
  54. <input type='checkbox' class='form-check-input' id='header' name='header' {% if filtro.header.value %} checked {% endif %}>
  55. <label class='form-check-label' for='body'>Body</label>
  56. <input type='checkbox' class='form-check-input' id='body' name='body' {% if filtro.body.value %} checked {% endif %}>
  57. <label class='form-check-label' for='enabled'>Enabled</label>
  58. <input type='checkbox' class='form-check-input' id='enabled' name='enabled' {% if filtro.enabled.value %} checked {% endif %}>
  59. </div>
  60. <div>
  61. {% if filtro.errors %}
  62. <p>Rilevati Errori, impossibile proseguire.</p>
  63. {% for f in filtro %}
  64. {% for e in f.errors %}
  65. <div class="alter alter-danger">
  66. <strong>{{f.label|escape }}: {{ e|escape }}</strong>
  67. </div>
  68. {% endfor %}
  69. {% endfor %}
  70. {% for e in formalias.non_field_errors %}
  71. <div class="alter alter-danger">
  72. <strong>{{ e|escape }}</strong>
  73. </div>
  74. {% endfor %}
  75. {% endif %}
  76. </div>
  77. <div><br></div>
  78. <div class='form-group btn-group' role='group' aria-label='conferme'>
  79. <button type='submit' class='btn btn-secondary'>Conferma</button>
  80. <button type='reset' class='btn btn-secondary'>Reset</button>
  81. <button type='submit' class='btn btn-secondary' name="Ritorno">Ritorno (Senza salvare)</button>
  82. </div>
  83. </form>
  84. </div>
  85. {% endblock %}