Guest User

Untitled

a guest
Sep 24th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. {% extends "layout.html" %}
  2.  
  3. {% block content %}
  4. <!--Build Area -->
  5. <form action="{{ url_for('save') }}" method="POST" class="wrap no-top">
  6. <div class="grid-100 row">
  7. <div class="grid-30">
  8. <div class="title">
  9. <input type="text" name="name" value="{{ saves.get('name', '') }}">
  10. </div>
  11. </div>
  12. <div class="grid-70">
  13. <div class="colors">
  14. {% for color in options['colors'] %}
  15. <input type="radio" id="{{ color }}" name="colors" value="{{ color }}"
  16. {% if saves.get('colors') == color%}checked{% endif %}>
  17. <label for="{{ color }}"></label>
  18. {% endfor %}
  19. <button class="btn">Update</button>
  20. </div>
  21. </div>
  22. <div id="bear" class="grid-100 bg-{{ saves.get('colors') }}">
  23. <div class="bear-body"><img src="/static/img/bear_body.svg" /></div>
  24. <div class="head"><img src="/static/img/bear_face.svg" /></div>
  25. <div class="nose"><img src="/static/img/bear_nose.svg" /></div>
  26. </div>
  27. <div class="items">
  28. {% for category, choices in options.items() %}
  29. {% if category != 'colors' %}
  30. <div class="grid-100 row">
  31. <p class="category-title">{{ category.title() }}</p>
  32. </div>
  33. <div class="grid-80">
  34. <input type="radio" id="no_{{ category }}_icon" name="{{ category }}" value='' {% if not saves.get(category) %}checked{% endif %}>
  35. <label for="no_{{ category }}_icon"><img src="/static/img/no-selection.svg"></label>
  36. {% for choice in choices%}
  37. <input type="radio" id="{{ category }}-{{ choice }}_icon" name="{{ category }}" value="{{ choice }}" {% if saves.get(category) == choices %}checked{% endif %}
  38. <label for="{{ category }}-{{ choice }}_icon"><img src="/static/img/{{ category }}-{{ choice }}.svg</label>
  39. {% endfor %}
  40. </div>
  41. </div>
  42. {% endif%}
  43. {% endfor %}
  44. </div>
  45. </div>
  46. </form>
  47.  
  48. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment