|
28 | 28 | {% get_obj_perms request.user for request.site as "user_site_perms" %} |
29 | 29 | {% get_obj_perms request.user for project as "user_project_perms" %} |
30 | 30 | {% include "projects/project/navigation.html" with recommandations=True %} |
31 | | - {% if project.inactive_since != None %} |
32 | | - <div class="specific-border-4pxsolid1e1e1e"> |
33 | | - {% include "projects/project/fragments/project_banner/paused_project_banner.html" %} |
34 | | - <div> |
35 | | - {% elif project.status == 'DRAFT' %} |
36 | | - <div class="specific-border-4pxsolid000091"> |
37 | | - {% include "projects/project/fragments/project_banner/non_published_project_banner.html" %} |
38 | | - {% elif not advising and is_regional_actor and not is_staff %} |
39 | | - <div x-data |
40 | | - x-init="$nextTick(() => $store.showRole.init())" |
41 | | - class="specific-border-4pxsolid000091"> |
42 | | - {% include "projects/project/fragments/project_banner/join_project_banner.html" %} |
43 | | - <div> |
44 | | - {% endif %} |
45 | | - {{ can_administrate|json_script:"canAdministrate" }} |
46 | | - {{ user_project_perms|json_script:"userProjectPerms" }} |
47 | | - {{ is_switchtender|json_script:"isSwitchtender" }} |
48 | | - {{ user.email|json_script:"userEmail" }} |
49 | | - {{ advising_position.is_observer|json_script:"isObserverOnProject" }} |
50 | | - {{ advising_position.is_advisor|json_script:"isAdvisorOnProject" }} |
51 | | - {% if is_switchtender and project.tasks.all.count == 0 %} |
52 | | - <div data-test-id="no-tasks-banner" class="bg-light fr-p-3w rounded-2"> |
53 | | - <h3 class="fw-light">Pas encore de recommandations au demandeur ?</h3> |
54 | | - <p class="fst-italic fw-light fr-mb-2w"> |
55 | | - Soyez la première personne à proposer des recommandations ou des ressources au demandeur ! |
56 | | - </p> |
57 | | - {% if advising or is_staff %} |
58 | | - <a data-test-id="submit-task-button" |
59 | | - href="{% url 'projects-create-task' %}?project_id={{ project.id }}" |
60 | | - class="fr-btn">Émettre une recommandation</a> |
61 | | - <a href="{% url 'projects-project-tasks-suggest' project.pk %}" |
62 | | - class="fr-btn fr-btn--secondary" |
63 | | - data-test-id="see-suggest-task-button">Examiner les ressources suggérées</a> |
64 | | - {% else %} |
65 | | - <button class="fr-btn" |
66 | | - data-bs-toggle="dropdown" |
67 | | - data-bs-auto-close="outside" |
68 | | - aria-expanded="false" |
69 | | - aria-controls="select-observer-or-advisor"> |
70 | | - Rejoindre ce dossier pour l'aiguiller |
71 | | - </button> |
72 | | - {% endif %} |
73 | | - </div> |
74 | | - {% elif not is_switchtender and project.tasks.public.count == 0 %} |
75 | | - <div class="bg-light fr-p-3w rounded-2"> |
76 | | - <h3 class="fw-light">Vous n'avez pas de recommandations en cours</h3> |
77 | | - <p class="fst-italic fw-light">Des recommandations vous seront proposées par notre équipe dès que possible.</p> |
78 | | - <p class="fst-italic fw-light"> |
79 | | - Vous pouvez accélerer les recommandations <span class="fw-bolder">en complétant le questionnaire d'exploration</span>. |
80 | | - </p> |
81 | | - <a href="{% url 'survey-project-session' project.id %}" class="fr-btn">Compléter le questionnaire d'exploration</a> |
82 | | - </div> |
83 | | - {% else %} |
84 | | - {% include "projects/project/fragments/tasks_inline_kanban/tasks_inline_kanban.html" %} |
85 | | - {% endif %} |
86 | | - {% if project.inactive_since != None %} |
87 | | - </div> |
88 | | - </div> |
89 | | - {% elif project.status == 'DRAFT' %} |
90 | | - </div> |
91 | | - {% elif not advising and is_regional_actor and not is_staff %} |
92 | | - </div> |
| 31 | + {% include "projects/project/fragments/project_banner/banner_wrapper.html" with part='open' %} |
| 32 | + {{ can_administrate|json_script:"canAdministrate" }} |
| 33 | + {{ user_project_perms|json_script:"userProjectPerms" }} |
| 34 | + {{ is_switchtender|json_script:"isSwitchtender" }} |
| 35 | + {{ user.email|json_script:"userEmail" }} |
| 36 | + {{ advising_position.is_observer|json_script:"isObserverOnProject" }} |
| 37 | + {{ advising_position.is_advisor|json_script:"isAdvisorOnProject" }} |
| 38 | + {% if is_switchtender and project.tasks.all.count == 0 %} |
| 39 | + <div data-test-id="no-tasks-banner" class="bg-light fr-p-3w rounded-2"> |
| 40 | + <h3 class="fw-light">Pas encore de recommandations au demandeur ?</h3> |
| 41 | + <p class="fst-italic fw-light fr-mb-2w"> |
| 42 | + Soyez la première personne à proposer des recommandations ou des ressources au demandeur ! |
| 43 | + </p> |
| 44 | + {% if advising or is_staff %} |
| 45 | + <a data-test-id="submit-task-button" |
| 46 | + href="{% url 'projects-create-task' %}?project_id={{ project.id }}" |
| 47 | + class="fr-btn">Émettre une recommandation</a> |
| 48 | + <a href="{% url 'projects-project-tasks-suggest' project.pk %}" |
| 49 | + class="fr-btn fr-btn--secondary" |
| 50 | + data-test-id="see-suggest-task-button">Examiner les ressources suggérées</a> |
| 51 | + {% else %} |
| 52 | + <button class="fr-btn" |
| 53 | + data-bs-toggle="dropdown" |
| 54 | + data-bs-auto-close="outside" |
| 55 | + aria-expanded="false" |
| 56 | + aria-controls="select-observer-or-advisor"> |
| 57 | + Rejoindre ce dossier pour l'aiguiller |
| 58 | + </button> |
| 59 | + {% endif %} |
93 | 60 | </div> |
| 61 | + {% elif not is_switchtender and project.tasks.public.count == 0 %} |
| 62 | + <div class="bg-light fr-p-3w rounded-2"> |
| 63 | + <h3 class="fw-light">Vous n'avez pas de recommandations en cours</h3> |
| 64 | + <p class="fst-italic fw-light">Des recommandations vous seront proposées par notre équipe dès que possible.</p> |
| 65 | + <p class="fst-italic fw-light"> |
| 66 | + Vous pouvez accélerer les recommandations <span class="fw-bolder">en complétant le questionnaire d'exploration</span>. |
| 67 | + </p> |
| 68 | + <a href="{% url 'survey-project-session' project.id %}" class="fr-btn">Compléter le questionnaire d'exploration</a> |
| 69 | + </div> |
| 70 | + {% else %} |
| 71 | + {% include "projects/project/fragments/tasks_inline_kanban/tasks_inline_kanban.html" %} |
94 | 72 | {% endif %} |
| 73 | + {% include "projects/project/fragments/project_banner/banner_wrapper.html" with part='close' %} |
95 | 74 | {% endblock project_detail %} |
0 commit comments