Skip to content

Commit

Permalink
pilotage: Add a new webinar banner for SIAE
Browse files Browse the repository at this point in the history
  • Loading branch information
rsebille committed Jun 11, 2024
1 parent bd9f165 commit 041f333
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions itou/www/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ def dashboard(request, template_name="dashboard/dashboard.html"):

if request.user.is_employer:
context.update(_employer_dashboard_context(request))
if current_org := request.current_organization:
if current_org.is_subject_to_eligibility_rules:
context["pilotage_webinar_banners"].append(
{
"title": "Inscrivez-vous à un webinaire pour faire le point à mi-année sur vos candidatures & prescriptions", # noqa: E501
"description": "Des difficultés de recrutement ? Le mardi 9 juillet à 14h, le Pilotage de l’inclusion organise un webinaire pour vous aider à vous saisir des données utiles à la réalisation d’un bilan avec vos prescripteurs.", # noqa: E501
"url": "https://app.livestorm.co/itou/le-pilotage-de-linclusion-siae-difficultes-de-recrutement-faites-le-point-a-mi-annee-sur-vos-candidatures-and-prescriptions", # noqa: E501
"is_displayable": lambda: (
datetime.date(2024, 6, 17) <= timezone.now().date() <= datetime.date(2024, 7, 9)
),
}
)
elif request.user.is_prescriber:
if current_org := request.current_organization:
if stats_utils.can_view_stats_ph(request):
Expand Down

0 comments on commit 041f333

Please sign in to comment.