|
1 {% extends "social/comment_thread_layout.html" %} |
|
2 {% if not session["user_logged"] or not session["user_can_edit"][current_repository] %} |
|
3 {% set readonly="readonly" %} |
|
4 {% else %} |
|
5 {% set readonly=False %} |
|
6 {% endif %} |
|
7 {% block title %}{{super()}}{% endblock title %} |
|
8 {% block head %} |
|
9 {{super()}} |
|
10 <script src="{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}" language="Javascript" type="text/javascript"></script> |
|
11 <script> |
|
12 $(document).ready(function(){ |
|
13 $(".cat-info-div").hide(); |
|
14 $(".cat-table-toggle").click(function(evt){ |
|
15 $(".cat-table").slideToggle(function(){ |
|
16 $(".cat-table-toggle").children().toggleClass("glyphicon-chevron-up"); |
|
17 $(".cat-table-toggle").children().toggleClass("glyphicon-chevron-down"); |
|
18 }); |
|
19 }); |
|
20 $(".cat-info-toggle").click(function(evt){ |
|
21 $("#properties_"+evt.target.id.split('_').slice(2,5).join('_')).slideToggle(function(){ |
|
22 $("#info_button_"+evt.target.id.split('_').slice(2,5).join('_')).children().toggleClass("glyphicon-plus-sign"); |
|
23 $("#info_button_"+evt.target.id.split('_').slice(2,5).join('_')).children().toggleClass("glyphicon-minus-sign"); |
|
24 }); |
|
25 }); |
|
26 }); |
|
27 </script> |
|
28 {% endblock head%} |
|
29 {% block navbar_items %} |
|
30 {{super()}} |
|
31 <li><a class="navbar-decorative">></a></li> |
|
32 <li class="active"><a>Discussion: changements</a></li> |
|
33 {% endblock navbar_items %} |
|
34 {% block additional_content %} |
|
35 <h3><strong>Etat de l'ensemble des catégories pour ces modifications </strong> |
|
36 <a title="Afficher/Cacher tableau" class="btn btn-default cat-table-toggle"> |
|
37 <span class="glyphicon glyphicon-chevron-up"/> |
|
38 </a> |
|
39 </h3> |
|
40 <div class="cat-table"> |
|
41 <table class="table table-condensed table-bordered"> |
|
42 <thead> |
|
43 <tr class="active"> |
|
44 <th class="col-md-2"><b>Nom de la catégorie</b></th> |
|
45 <th class="col-md-10" colspan="2"><b>Description de la catégorie</b></th> |
|
46 </tr> |
|
47 </thead> |
|
48 <tbody> |
|
49 {% if not session["user_logged"] %} |
|
50 <tr> |
|
51 <td class="col-md-12" colspan="2"> |
|
52 <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> |
|
53 <span class="sr-only">Attention:</span> |
|
54 Veuillez vous identifier pour visualiser les catégories |
|
55 </td> |
|
56 </tr> |
|
57 {% else %} |
|
58 {% if cat_list|length == 0 %} |
|
59 <tr> |
|
60 <td class="col-md-12" colspan="2">Aucune catégorie n'existait suite à ces changements. {% if not readonly %}<a href="{{ url_for('categories.editor', repository=current_repository) }}">Créer une catégorie</a>{% endif %}</td> |
|
61 </tr> |
|
62 {% else %} |
|
63 {% import "macros.html" as macros %} |
|
64 {{ macros.category_table(cat_list, current_repository, state_list=["original"], interactive=False) }} |
|
65 {% endif %} |
|
66 {% endif %} |
|
67 </tbody> |
|
68 </table> |
|
69 </div> |
|
70 {% endblock additional_content %} |
|
71 {% block comment_posting_target %}{{url_for("social.changeset", changeset_id=changeset_id, repository=current_repository)}}{% endblock %} |
|
72 {% block page_content %} |
|
73 {{super()}} |
|
74 {% endblock page_content %} |