sprint_end.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {% extends '_layout.html' %}
  2. {% block title %}
  3. Clotûre de {{ sprint }}
  4. {% endblock %}
  5. {% block breadcrumb %}
  6. <li><a href="{% url 'index' %}">Accueil</a></li>
  7. <li><a>Clotûre du {{ sprint }}</a></li>
  8. {% endblock %}
  9. {% block main %}
  10. <header>
  11. <div class="flex-row">
  12. <h2 class="flex-extend">Clotûre du {{ sprint }}</h2>
  13. <span>
  14. </span>
  15. </div>
  16. </header>
  17. <div id="sprint-end">
  18. {% if not next_sprint %}
  19. <p class="error">Le sprint suivant n'existe pas!</p>
  20. {% else %}
  21. <h4>Clore les stories</h4>
  22. <table>
  23. {% for story in sprint.stories.all|dictsort:"id" %}
  24. <tr data-id="{{ story.id }}">
  25. <td class="btn-cell" width="1%">
  26. {% if story.closed %}
  27. <a href="" class="story_close button special icon fa-check tool-btn already-checked"></a>
  28. {% elif next_sprint in story.sprints.all %}
  29. <a href="" class="story_close button special icon fa-check tool-btn disabled"></a>
  30. {% else %}
  31. <a href="" class="story_close button special icon fa-check tool-btn" title="Clôre"></a>
  32. {% endif %}
  33. </td>
  34. <td class="btn-cell-2" width="1%">
  35. {% if story.closed %}
  36. <a class="button special icon fa-mail-forward tool-btn disabled"></a>
  37. {% elif next_sprint in story.sprints.all %}
  38. <a href="" class="story_reaffect button special icon fa-mail-forward tool-btn already-checked"></a>
  39. {% else %}
  40. <a href="" class="story_reaffect button special icon fa-mail-forward tool-btn" title="Ré-affecter à {{ next_sprint }}"></a>
  41. {% endif %}
  42. </td>
  43. <td><a href="{% url 'story_details' story_id=story.id %}">{{ story.name }}</a></td>
  44. <td width="1%">{% if story.weight %}<span>{% include 'weight_svg.html' with weight=story.weight h=20 %}</span>{% endif %}</td>
  45. </tr>
  46. {% endfor %}
  47. </table>
  48. <h4>Rétrospective</h4>
  49. <form id="retro-section" action="." method="post" enctype="multipart/form-data">
  50. {% csrf_token %}
  51. {{ form.retro }}
  52. <div class="flex-row flex-end" style="margin-top: 10px;">
  53. <input type="submit" value="Enregistrer et clôre le sprint">
  54. </div>
  55. </form>
  56. </div>
  57. {% endif %}
  58. {% endblock %}