Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if filter_select|length == 0 %}
- <option value="-" selected>-</option>
- {% for v_f_m in f_m.2 %}
- <option value="{{v_f_m}}">{{v_f_m}}</option>
- {% endfor %}
- {% else %}
- <option value="-">-</option>
- {% for v_f_m in f_m.2 %}
- {% with key=f_m.0|stringformat:"i" %}
- {% if key in filter_select %}
- {% if filter_select.key == v_f_m %}
- <option value="{{v_f_m}}" selected>{{v_f_m}}</option>
- {% else %}
- <option value="{{v_f_m}}">holaaa</option>
- {% endif %}
- {% else %}
- <option value="{{v_f_m}}">{{v_f_m}}</option>
- {% endif %}
- {% endwith %}
- {% endfor %}
- {% endif %}
- </select>
- {% endfor %}
- </div>
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement