backlog_editor.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {% extends '_layout.html' %}
  2. {% block title %}
  3. Edition du backlog
  4. {% endblock %}
  5. {% block breadcrumb %}
  6. <li><a href="{% url 'index' %}">Accueil</a></li>
  7. <li><a>Edition du backlog</a></li>
  8. {% endblock %}
  9. {% block main %}
  10. <header>
  11. <div class="flex-row">
  12. <h2 class="flex-extend">Backlog : Edition</h2>
  13. <span>
  14. <a href="{% url 'epic_create' %}"><i class="fa fa-plus"></i> Ajouter une Epic</a>
  15. </span>
  16. </div>
  17. </header>
  18. <table id="backlog-editor">
  19. <thead>
  20. <th>Epic</th>
  21. <th>Valeur</th>
  22. <th>Options</th>
  23. </thead>
  24. <tbody>
  25. {% for epic in epics %}
  26. <tr>
  27. <td class="backlog-editor-col1">
  28. <i class="fa fa-circle" style="margin-right: 0.5em; color:{{ epic.project.color }};" title="{{ epic.project.name }}"></i>
  29. <a href="{% url 'epic_details' epic_id=epic.id %}">{{ epic.name }}</a>
  30. </td>
  31. <td class="backlog-editor-col2">
  32. <form action="{% url 'epic_value_update' epic_id=epic.id %}" method="post" accept-charset="utf-8">
  33. {% csrf_token %}
  34. <input class="raw-input" name="value" type="text" value="{{ epic.value }}">
  35. </form>
  36. </td>
  37. <td class="backlog-editor-col3">
  38. <a href="{% url 'epic_edit' epic_id=epic.id from_='backlog_editor' %}"><i class="fa fa-pencil" title="Editer"></i></a>
  39. <a href="{% url 'epic_close' epic_id=epic.id %}"><i class="fa fa-archive" title="Clôre l'Epic"></i></a>
  40. </td>
  41. </tr>
  42. {% endfor %}
  43. {% for epic in closed %}
  44. <tr>
  45. <td class="backlog-editor-col1">
  46. <i class="fa fa-circle" style="margin-right: 0.5em; color:{{ epic.project.color }};" title="{{ epic.project.name }}"></i>
  47. <a href="{% url 'epic_details' epic_id=epic.id %}" class="story-closed">[Fermée] {{ epic.name }}</a>
  48. </td>
  49. <td class="backlog-editor-col2">
  50. <form action="{% url 'epic_value_update' epic_id=epic.id %}" method="post" accept-charset="utf-8">
  51. {% csrf_token %}
  52. <input class="raw-input" name="value" type="text" value="{{ epic.value }}">
  53. </form>
  54. </td>
  55. <td class="backlog-editor-col3">
  56. <a href="{% url 'epic_edit' epic_id=epic.id from_='backlog_editor' %}"><i class="fa fa-pencil" title="Editer"></i></a>
  57. <a href="{% url 'epic_reopen' epic_id=epic.id %}"><i class="fa fa-folder-open" title="Réouvrir l'Epic"></i></a>
  58. </td>
  59. </tr>
  60. {% endfor %}
  61. </tbody>
  62. </table>
  63. {% endblock %}