story_index.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {% extends '_layout.html' %}
  2. {% block title %}
  3. Les Stories
  4. {% endblock %}
  5. {% block breadcrumb %}
  6. <li><a href="{% url 'index' %}">Accueil</a></li>
  7. <li><a>Toutes les Stories</a></li>
  8. {% endblock %}
  9. {% block main %}
  10. <header class="flex-row flex-align-center" style="margin-bottom: 2em;">
  11. <h2 class="flex-extend">Stories</h2>
  12. <b style="margin-right: 20px;">Nombre: {{ count }}</b>
  13. <b style="margin-right: 25px;">Poids: {{ total_weight }}</b>
  14. <a id="new-story" class="button icon fa-plus tool-btn alt" href="{% url 'story_create' %}" title="Nouvelle Story">Nouvelle Story</a>
  15. </header>
  16. <div id="stories">
  17. <div class="flex-row filters-bar">
  18. <label>Etat: </label>
  19. <select data-filter="state">
  20. <option value="" selected="selected">Tous</option>
  21. <option value="open">Ouvert</option>
  22. <option value="closed">Clôturé</option>
  23. </select>
  24. <label>Sprint: </label>
  25. <select data-filter="sprint">
  26. <option value="" selected="selected">Tous</option>
  27. <option value="None">(Aucun)</option>
  28. {% for sprint in sprints %}
  29. <option value="{{ sprint.id }}">{{ sprint }}</option>
  30. {% endfor %}
  31. </select>
  32. <label>Assignées: </label>
  33. <select data-filter="assignee">
  34. <option value="" selected="selected">Tous</option>
  35. {% for user in users %}
  36. <option value="{{ user.id }}">{{ user.first_name }} {{ user.last_name }}</option>
  37. {% endfor %}
  38. </select>
  39. <label>Type: </label>
  40. <select data-filter="story-type">
  41. <option value="" selected="selected">Tous</option>
  42. <option value="0">Standard</option>
  43. <option value="1">NEW</option>
  44. <option value="2">Non-Planifiée</option>
  45. </select>
  46. </div>
  47. {% if stories %}
  48. <ul class="alt issues-list">
  49. {% for story in stories %}
  50. {% include 'story_li.html' with story=story from='story_index' %}
  51. {% endfor %}
  52. </ul>
  53. {% else %}
  54. <span class="annotation">(Rien à afficher)</span>
  55. {% endif %}
  56. <div class="pagination">
  57. {% for numpage in pages %}
  58. {% if numpage == stories.number %}
  59. <a style="color: grey;">{{ numpage }}</a>
  60. {% else %}
  61. <a class="clickable" data-page="{{ numpage }}">{{ numpage }}</a>
  62. {% endif %}
  63. {% endfor %}
  64. </div>
  65. </div>
  66. {% endblock %}