91 </td> |
91 </td> |
92 {% endif %} |
92 {% endif %} |
93 {% if (cat.state == "untouched") %} |
93 {% if (cat.state == "untouched") %} |
94 <td class="col-md-1 text-center"> |
94 <td class="col-md-1 text-center"> |
95 <form method="POST" action="{{url_for('cat_recap', deleted_cat_id=cat.cat_id, repository=current_repository)}}" class="form-inline"> |
95 <form method="POST" action="{{url_for('cat_recap', deleted_cat_id=cat.cat_id, repository=current_repository)}}" class="form-inline"> |
|
96 <input name="csrf_token" value="{{ csrf_token() }}" type="hidden"> |
96 <a title="Supprimer catégorie"> |
97 <a title="Supprimer catégorie"> |
97 <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-trash"/></button> |
98 <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-trash"/></button> |
98 </a> |
99 </a> |
99 </form> |
100 </form> |
100 </td> |
101 </td> |
101 {% elif (cat.state == "created" or cat.state == "modified") %} |
102 {% elif (cat.state == "created" or cat.state == "modified") %} |
102 <td class="col-md-1 text-center"> |
103 <td class="col-md-1 text-center"> |
103 <form method="POST" action="{{url_for('cat_recap', deleted_modifs_id=cat.cat_id, repository=current_repository)}}" class="form-inline"> |
104 <form method="POST" action="{{url_for('cat_recap', deleted_modifs_id=cat.cat_id, repository=current_repository)}}" class="form-inline"> |
|
105 <input name="csrf_token" value="{{ csrf_token() }}" type="hidden"> |
104 <a title="Supprimer changements"> |
106 <a title="Supprimer changements"> |
105 <button class="btn btn-default"><span class="glyphicon glyphicon-remove-sign"/></button> |
107 <button class="btn btn-default"><span class="glyphicon glyphicon-remove-sign"/></button> |
106 </a> |
108 </a> |
107 </form> |
109 </form> |
108 </td> |
110 </td> |
109 {% else %} |
111 {% else %} |
110 <td colspan="2"> |
112 <td colspan="2"> |
111 <form method="POST" action="{{url_for('cat_recap', deleted_cat_id=cat.cat_id, repository=current_repository)}}" class="form-inline"> |
113 <form method="POST" action="{{url_for('cat_recap', deleted_cat_id=cat.cat_id, repository=current_repository)}}" class="form-inline"> |
|
114 <input name="csrf_token" value="{{ csrf_token() }}" type="hidden"> |
112 <a title="Restaurer catégorie"> |
115 <a title="Restaurer catégorie"> |
113 <button class="btn btn-default" type="submit">Restaurer</button> |
116 <button class="btn btn-default" type="submit">Restaurer</button> |
114 </a> |
117 </a> |
115 </form> |
118 </form> |
116 </td> |
119 </td> |
155 {% endif %} |
158 {% endif %} |
156 </tbody> |
159 </tbody> |
157 </table> |
160 </table> |
158 {% if session.get("user_logged") %} |
161 {% if session.get("user_logged") %} |
159 <form method="POST" action="{{url_for('cat_recap', repository=current_repository)}}" class="form-inline"> |
162 <form method="POST" action="{{url_for('cat_recap', repository=current_repository)}}" class="form-inline"> |
|
163 <input name="csrf_token" value="{{ csrf_token() }}" type="hidden"> |
160 <h4> Annuler tous mes changements actuels : |
164 <h4> Annuler tous mes changements actuels : |
161 <a title="Supprimer changements"> |
165 <a title="Supprimer changements"> |
162 <button type="submit" class="btn btn-default" {% if readonly %}disabled{% endif %}> |
166 <button type="submit" class="btn btn-default" {% if readonly %}disabled{% endif %}> |
163 <span class="glyphicon glyphicon-remove"/> |
167 <span class="glyphicon glyphicon-remove"/> |
164 </button> |
168 </button> |
166 </h4> |
170 </h4> |
167 </form> |
171 </form> |
168 <h4> Soumettre mes changements actuels : <a href="{{ url_for('cat_modifs', repository=current_repository)}}" title="Soumettre changements" class="btn btn-default" {% if readonly %}disabled{% endif %}><span class="glyphicon glyphicon-share"/></a> |
172 <h4> Soumettre mes changements actuels : <a href="{{ url_for('cat_modifs', repository=current_repository)}}" title="Soumettre changements" class="btn btn-default" {% if readonly %}disabled{% endif %}><span class="glyphicon glyphicon-share"/></a> |
169 </h4> |
173 </h4> |
170 {% endif %} |
174 {% endif %} |
171 <h3> Consulter l'historique des modifications : <a href="https://github.com/{{config['REPOSITORY_OWNER']}}/{{current_repository}}/commits/master" title="Aller à l'historique des modifications sur Github" class="btn btn-default"><span class="glyphicon glyphicon-list"/></a></h3> |
175 <h3> Consulter l'historique des modifications : <a href="https://github.com/{{config['PERSISTENCE_CONFIG']['REPOSITORY_OWNER']}}/{{current_repository}}/commits/master" title="Aller à l'historique des modifications sur Github" class="btn btn-default"><span class="glyphicon glyphicon-list"/></a></h3> |
172 <h3> Consulter les discussions générales sur cet ensemble de catégorie (Issues) : <a href="https://github.com/{{config['REPOSITORY_OWNER']}}/{{current_repository}}/issues" title="Aller à la page de discussion sur l'ensemble de catégories" class="btn btn-default"><span class="glyphicon glyphicon-comment"/></a></h3> |
176 <h3> Consulter les discussions générales sur cet ensemble de catégorie (Issues) : <a href="https://github.com/{{config['PERSISTENCE_CONFIG']['REPOSITORY_OWNER']}}/{{current_repository}}/issues" title="Aller à la page de discussion sur l'ensemble de catégories" class="btn btn-default"><span class="glyphicon glyphicon-comment"/></a></h3> |
173 {% endblock page_content %} |
177 {% endblock page_content %} |