Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1.  
  2. <div class="row">
  3.  
  4. <div class="col divider">
  5. <label>Nom</label>
  6. <input type="text" autofocus name='Nom' id="Nom" onkeyup="Filtrer('Nom')" {% if post.Nom %}value="{{ post.Nom }}"{% endif%} class="form-control">
  7. </div>
  8.  
  9. {% if colonne.1.Nom is not empty %}
  10. <div class="col divider">
  11. <label>{{ colonne.1.Nom }}</label>
  12. {% if colonne.1.Type != "Select" %}
  13. <input type="text" name='Col1' id='Col1' onkeyup="Filtrer('Col1')" {% if post.Col1 %}value="{{ post.Col1 }}"{% endif%} class="form-control">
  14. {% else %}
  15. <select name='Col1' id='Col1' onchange="Filtrer('Col1')" class="form-control">
  16. <option value="" selected>Tous</option>
  17. {% set NewCol1Filter = [] %}
  18. {% for Col1Filter in bddusers %}
  19. {% if Col1Filter.Col1 not in NewCol1Filter and Col1Filter.Col1 is not empty %}
  20. <option value="{{ Col1Filter.Col1 }}">{{ Col1Filter.Col1|upper }}</option>
  21. {% set NewCol1Filter = NewCol1Filter|merge([Col1Filter.Col1]) %}
  22. {% endif %}
  23. {% endfor %}
  24. </select>
  25. {% endif %}
  26. </div>
  27. {% endif %}
  28.  
  29. {% if colonne.2.Nom is not empty %}
  30. <div class="col divider">
  31. <label>{{ colonne.2.Nom }}</label>
  32. {% if colonne.2.Type != "Select" %}
  33. <input type="text" name='Col2' id='Col2' onkeyup="Filtrer('Col2')" {% if post.Col2 %}value="{{ post.Col2 }}"{% endif%} class="form-control">
  34. {% else %}
  35. <select name='Col2' id='Col2' onchange="Filtrer('Col2')" class="form-control">
  36. <option value="" selected>Tous</option>
  37. {% set NewCol2Filter = [] %}
  38. {% for Col2Filter in bddusers %}
  39. {% if Col2Filter.Col2 not in NewCol2Filter and Col2Filter.Col2 is not empty %}
  40. <option value="{{ Col2Filter.Col2 }}">{{ Col2Filter.Col2|upper }}</option>
  41. {% set NewCol2Filter = NewCol2Filter|merge([Col2Filter.Col2]) %}
  42. {% endif %}
  43. {% endfor %}
  44. </select>
  45. {% endif %}
  46. </div>
  47. {% endif %}
  48.  
  49. {% if colonne.3.Nom is not empty %}
  50. <div class="col divider">
  51. <label>{{ colonne.3.Nom }}</label>
  52. {% if colonne.3.Type != "Select" %}
  53. <input type="text" name='Col3' id='Col3' onkeyup="Filtrer('Col3')" {% if post.Col3 %}value="{{ post.Col3 }}"{% endif%} class="form-control">
  54. {% else %}
  55. <select name='Col3' id='Col3' onchange="Filtrer('Col3')" class="form-control">
  56. <option value="" selected>Tous</option>
  57. {% set NewCol3Filter = [] %}
  58. {% for Col3Filter in bddusers %}
  59. {% if Col3Filter.Col3 not in NewCol3Filter and Col3Filter.Col3 is not empty %}
  60. <option value="{{ Col3Filter.Col3 }}">{{ Col3Filter.Col3|upper }}</option>
  61. {% set NewCol3Filter = NewCol3Filter|merge([Col3Filter.Col3]) %}
  62. {% endif %}
  63. {% endfor %}
  64. </select>
  65. {% endif %}
  66. </div>
  67. {% endif %}
  68.  
  69. {% if colonne.4.Nom is not empty %}
  70. <div class="col divider">
  71. <label>{{ colonne.4.Nom }}</label>
  72. {% if colonne.4.Type != "Select" %}
  73. <input type="text" name='Col4' id='Col4' onkeyup="Filtrer('Col4')" {% if post.Col4 %}value="{{ post.Col4 }}"{% endif%} class="form-control">
  74. {% else %}
  75. <select name='Col4' id='Col4' onchange="Filtrer('Col4')" class="form-control">
  76. <option value="" selected>Tous</option>
  77. {% set NewCol4Filter = [] %}
  78. {% for Col4Filter in bddusers %}
  79. {% if Col4Filter.Col4 not in NewCol4Filter and Col4Filter.Col4 is not empty %}
  80. <option value="{{ Col4Filter.Col4 }}">{{ Col4Filter.Col4|upper }}</option>
  81. {% set NewCol4Filter = NewCol4Filter|merge([Col4Filter.Col4]) %}
  82. {% endif %}
  83. {% endfor %}
  84. </select>
  85. {% endif %}
  86. </div>
  87. {% endif %}
  88.  
  89. {% if colonne.5.Nom is not empty %}
  90. <div class="col divider">
  91. <label>{{ colonne.5.Nom }}</label>
  92. {% if colonne.5.Type != "Select" %}
  93. <input type="text" name='Col5' id='Col5' onkeyup="Filtrer('Col5')" {% if post.Col5 %}value="{{ post.Col5 }}"{% endif%} class="form-control">
  94. {% else %}
  95. <select name='Col5' id='Col5' onchange="Filtrer('Col5')" class="form-control">
  96. <option value="" selected>Tous</option>
  97. {% set NewCol5Filter = [] %}
  98. {% for Col5Filter in bddusers %}
  99. {% if Col5Filter.Col5 not in NewCol5Filter and Col5Filter.Col5 is not empty %}
  100. <option value="{{ Col5Filter.Col5 }}">{{ Col5Filter.Col5|upper }}</option>
  101. {% set NewCol5Filter = NewCol5Filter|merge([Col5Filter.Col5]) %}
  102. {% endif %}
  103. {% endfor %}
  104. </select>
  105. {% endif %}
  106. </div>
  107. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement