Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pilotage : Encart de promotion du webinaire pour les ML / Cap emploi & les acteurs AHI pour 3 régions spécifiques #4167

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions itou/templates/dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,28 @@ <h2>Statistiques</h2>
<div class="c-banner c-banner--pilotage rounded-3 p-3 py-md-5 mt-3 mt-md-4 mb-3 mb-md-5">
<img src="{% static_theme_images 'logo-pilotage-inclusion.svg' %}" height="80" alt="Le pilotage de l'inclusion">
</div>

{% if pilotage_webinar_banner_url %}
<div class="alert alert-important alert-dismissible fade show" role="status">
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Fermer"></button>
<div class="row">
<div class="col-auto pe-0">
<i class="ri-information-line ri-xl text-important" aria-hidden="true"></i>
</div>
<div class="col">
<p class="mb-2">
<strong>Inscrivez-vous à un webinaire pour découvrir votre tout nouveau tableau de bord !</strong>
</p>
<p class="mb-0">
En juin, deux sessions vous sont proposées pour vous familiariser avec votre nouvel outil de suivi et d'analyse des résultats de vos prescriptions.
</p>
</div>
<div class="col-12 col-md-auto mt-3 mt-md-0 d-flex align-items-center justify-content-center">
<a class="btn btn-sm btn-primary btn-block" href="{{ pilotage_webinar_banner_url }}">Je m’inscris</a>
</div>
</div>
</div>
{% endif %}
<div class="row row-cols-1 row-cols-md-2 mt-3 mt-md-4">
{% if can_view_stats_dashboard_widget %}
{% include "dashboard/includes/stats.html" %}
Expand Down
15 changes: 15 additions & 0 deletions itou/www/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,27 @@ def dashboard(request, template_name="dashboard/dashboard.html"):
"show_mobilemploi_prescriber_banner": False,
"siae_suspension_text_with_dates": None,
"siae_search_form": SiaeSearchForm(),
"pilotage_webinar_banner_url": "",
}

if request.user.is_employer:
context.update(_employer_dashboard_context(request))
elif request.user.is_prescriber:
if current_org := request.current_organization:
if stats_utils.can_view_stats_ph(request):
if current_org.kind in [PrescriberOrganizationKind.ML, PrescriberOrganizationKind.CAP_EMPLOI]:
context["pilotage_webinar_banner_url"] = (
"https://app.livestorm.co/itou/le-pilotage-de-linclusion-professionnels-missions-locales-et-cap-emploi-decouvrez-votre-nouveau-tableau-de-bord-personnalise-et-faites-le-point-sur-vos-prescriptions?type=detailed"
)
elif current_org.kind in [
PrescriberOrganizationKind.CHRS,
PrescriberOrganizationKind.CHU,
PrescriberOrganizationKind.OIL,
PrescriberOrganizationKind.RS_FJT,
]:
context["pilotage_webinar_banner_url"] = (
"https://app.livestorm.co/itou/le-pilotage-de-linclusion-prescripteurs-de-laccueil-de-lhebergement-et-de-linsertion-decouvrez-votre-nouveau-tableau-de-bord-personnalise-et-faites-le-point-sur-vos-prescriptions?type=detailed"
)
if current_org.is_authorized:
context["pending_prolongation_requests"] = ProlongationRequest.objects.filter(
prescriber_organization=current_org,
Expand Down
Loading