puppet node classifier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
2.5 KiB

  1. {% extends "page.html" %}
  2. {% block title %}Tagging {{ num_photos }} photo{% if num_photos > 1 %}s{% endif %}{% endblock %}
  3. {% block subtitle %}{% endblock %}
  4. {% block buttons %}{% endblock %}
  5. {% block body %}
  6. {% set preview = 9 %}
  7. <div class="photo-tagging pure-g">
  8. <div class="current-tags pure-u-1-3">
  9. <h2>Images ({{ num_photos }})</h2>
  10. <div>
  11. {% for image in images %}{% if loop.index <= preview %}
  12. <a href="/photo/{{ image.uuid }}">
  13. <img src="/thumb/set/small/{{ image.uuid }}.jpg" />
  14. </a>
  15. {% endif %}{% endfor %}
  16. </div>
  17. {% if num_photos > preview %}<br clear="both" /><p>...and {{ num_photos - preview }} more</p>{% endif %}
  18. <h2>Current Tags</h2>
  19. <ul class="tags-picker">
  20. {% for tagi in images[0].tags %}
  21. <li>
  22. <form action="/create_tags" method="post">
  23. {% if fromdate %}<input type="hidden" name="fromdate" value="{{ fromdate }}" />{% endif %}
  24. {% if uuid %}<input type="hidden" name="uuid" value="{{ uuid }}" />{% endif %}
  25. <input type="hidden" name="remove" value="{{ tagi.tag.uuid }}" />
  26. <input class="submit-link" type="submit" value="{{ tagi.tag.name }}" />
  27. </form>
  28. </li>
  29. {% endfor %}
  30. </ul>
  31. </div>
  32. <div class="all-tags pure-u-1-3">
  33. <h2>All tags</h2>
  34. <ul class="tags-picker">
  35. {% for tag in alltags %}
  36. <li>
  37. <form action="/create_tags" method="post">
  38. {% if fromdate %}<input type="hidden" name="fromdate" value="{{ fromdate }}" />{% endif %}
  39. {% if uuid %}<input type="hidden" name="uuid" value="{{ uuid }}" />{% endif %}
  40. <input type="hidden" name="tag" value="{{ tag.uuid }}" />
  41. <input class="submit-link" type="submit" value="{{ tag.name }}" />
  42. </form>
  43. </li>
  44. {% endfor %}
  45. </ul>
  46. </div>
  47. <div class="add-tags pure-u-1-3">
  48. <h2>Add tag</h2>
  49. <form action="/create_tags" method="post" class="pure-form">
  50. {% if fromdate %}<input type="hidden" name="fromdate" value="{{ fromdate }}" />{% endif %}
  51. {% if uuid %}<input type="hidden" name="uuid" value="{{ uuid }}" />{% endif %}
  52. <input type="text" name="newtag" placeholder="new tag name" />
  53. <input type="submit" value="Add" class="pure-button pure-button-primary" />
  54. </form>
  55. </div>
  56. </div>
  57. {% endblock %}