Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row">
- <div class="col divider">
- <label>Nom</label>
- <input type="text" autofocus name='Nom' id="Nom" onkeyup="Filtrer('Nom')" {% if post.Nom %}value="{{ post.Nom }}"{% endif%} class="form-control">
- </div>
- {% if colonne.1.Nom is not empty %}
- <div class="col divider">
- <label>{{ colonne.1.Nom }}</label>
- {% if colonne.1.Type != "Select" %}
- <input type="text" name='Col1' id='Col1' onkeyup="Filtrer('Col1')" {% if post.Col1 %}value="{{ post.Col1 }}"{% endif%} class="form-control">
- {% else %}
- <select name='Col1' id='Col1' onchange="Filtrer('Col1')" class="form-control">
- <option value="" selected>Tous</option>
- {% set NewCol1Filter = [] %}
- {% for Col1Filter in bddusers %}
- {% if Col1Filter.Col1 not in NewCol1Filter and Col1Filter.Col1 is not empty %}
- <option value="{{ Col1Filter.Col1 }}">{{ Col1Filter.Col1|upper }}</option>
- {% set NewCol1Filter = NewCol1Filter|merge([Col1Filter.Col1]) %}
- {% endif %}
- {% endfor %}
- </select>
- {% endif %}
- </div>
- {% endif %}
- {% if colonne.2.Nom is not empty %}
- <div class="col divider">
- <label>{{ colonne.2.Nom }}</label>
- {% if colonne.2.Type != "Select" %}
- <input type="text" name='Col2' id='Col2' onkeyup="Filtrer('Col2')" {% if post.Col2 %}value="{{ post.Col2 }}"{% endif%} class="form-control">
- {% else %}
- <select name='Col2' id='Col2' onchange="Filtrer('Col2')" class="form-control">
- <option value="" selected>Tous</option>
- {% set NewCol2Filter = [] %}
- {% for Col2Filter in bddusers %}
- {% if Col2Filter.Col2 not in NewCol2Filter and Col2Filter.Col2 is not empty %}
- <option value="{{ Col2Filter.Col2 }}">{{ Col2Filter.Col2|upper }}</option>
- {% set NewCol2Filter = NewCol2Filter|merge([Col2Filter.Col2]) %}
- {% endif %}
- {% endfor %}
- </select>
- {% endif %}
- </div>
- {% endif %}
- {% if colonne.3.Nom is not empty %}
- <div class="col divider">
- <label>{{ colonne.3.Nom }}</label>
- {% if colonne.3.Type != "Select" %}
- <input type="text" name='Col3' id='Col3' onkeyup="Filtrer('Col3')" {% if post.Col3 %}value="{{ post.Col3 }}"{% endif%} class="form-control">
- {% else %}
- <select name='Col3' id='Col3' onchange="Filtrer('Col3')" class="form-control">
- <option value="" selected>Tous</option>
- {% set NewCol3Filter = [] %}
- {% for Col3Filter in bddusers %}
- {% if Col3Filter.Col3 not in NewCol3Filter and Col3Filter.Col3 is not empty %}
- <option value="{{ Col3Filter.Col3 }}">{{ Col3Filter.Col3|upper }}</option>
- {% set NewCol3Filter = NewCol3Filter|merge([Col3Filter.Col3]) %}
- {% endif %}
- {% endfor %}
- </select>
- {% endif %}
- </div>
- {% endif %}
- {% if colonne.4.Nom is not empty %}
- <div class="col divider">
- <label>{{ colonne.4.Nom }}</label>
- {% if colonne.4.Type != "Select" %}
- <input type="text" name='Col4' id='Col4' onkeyup="Filtrer('Col4')" {% if post.Col4 %}value="{{ post.Col4 }}"{% endif%} class="form-control">
- {% else %}
- <select name='Col4' id='Col4' onchange="Filtrer('Col4')" class="form-control">
- <option value="" selected>Tous</option>
- {% set NewCol4Filter = [] %}
- {% for Col4Filter in bddusers %}
- {% if Col4Filter.Col4 not in NewCol4Filter and Col4Filter.Col4 is not empty %}
- <option value="{{ Col4Filter.Col4 }}">{{ Col4Filter.Col4|upper }}</option>
- {% set NewCol4Filter = NewCol4Filter|merge([Col4Filter.Col4]) %}
- {% endif %}
- {% endfor %}
- </select>
- {% endif %}
- </div>
- {% endif %}
- {% if colonne.5.Nom is not empty %}
- <div class="col divider">
- <label>{{ colonne.5.Nom }}</label>
- {% if colonne.5.Type != "Select" %}
- <input type="text" name='Col5' id='Col5' onkeyup="Filtrer('Col5')" {% if post.Col5 %}value="{{ post.Col5 }}"{% endif%} class="form-control">
- {% else %}
- <select name='Col5' id='Col5' onchange="Filtrer('Col5')" class="form-control">
- <option value="" selected>Tous</option>
- {% set NewCol5Filter = [] %}
- {% for Col5Filter in bddusers %}
- {% if Col5Filter.Col5 not in NewCol5Filter and Col5Filter.Col5 is not empty %}
- <option value="{{ Col5Filter.Col5 }}">{{ Col5Filter.Col5|upper }}</option>
- {% set NewCol5Filter = NewCol5Filter|merge([Col5Filter.Col5]) %}
- {% endif %}
- {% endfor %}
- </select>
- {% endif %}
- </div>
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement