Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. {% if filter_select|length == 0 %}
  2. <option value="-" selected>-</option>
  3. {% for v_f_m in f_m.2 %}
  4. <option value="{{v_f_m}}">{{v_f_m}}</option>
  5. {% endfor %}
  6.  
  7. {% else %}
  8. <option value="-">-</option>
  9. {% for v_f_m in f_m.2 %}
  10.  
  11. {% with key=f_m.0|stringformat:"i" %}
  12. {% if key in filter_select %}
  13. {% if filter_select.key == v_f_m %}
  14. <option value="{{v_f_m}}" selected>{{v_f_m}}</option>
  15. {% else %}
  16. <option value="{{v_f_m}}">holaaa</option>
  17. {% endif %}
  18. {% else %}
  19. <option value="{{v_f_m}}">{{v_f_m}}</option>
  20. {% endif %}
  21. {% endwith %}
  22.  
  23. {% endfor %}
  24.  
  25. {% endif %}
  26. </select>
  27. {% endfor %}
  28. </div>
  29. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement