Skip to content

Commit

Permalink
tempaltes: Remove rdv insertion promo banner
Browse files Browse the repository at this point in the history
  • Loading branch information
marionholis authored and tonial committed May 28, 2024
1 parent 0a01d49 commit d3b451b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 86 deletions.
6 changes: 0 additions & 6 deletions itou/templates/apply/includes/list_job_applications.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ <h3 class="h4 mb-0" id="results">
</a>
{% endif %}
</div>
{% if request.user.is_employer %}
{% include "apply/includes/rdv_insertion_promo_card.html" %}
{% endif %}
{% else %}
{% for job_application in job_applications_page %}
<div class="c-box c-box--results has-links-inside my-3 my-md-4">
Expand Down Expand Up @@ -110,9 +107,6 @@ <h3 class="h4 mb-0" id="results">
</div>
</div>
</div>
{% if request.user.is_employer and forloop.counter == 1 %}
{% include "apply/includes/rdv_insertion_promo_card.html" %}
{% endif %}
{% endfor %}
{% include "includes/pagination.html" with page=job_applications_page boost=True boost_target="#job-applications-section" boost_indicator="#job-applications-section" %}
{% endif %}
Expand Down
28 changes: 0 additions & 28 deletions itou/templates/apply/includes/rdv_insertion_promo_card.html
Original file line number Diff line number Diff line change
@@ -1,28 +0,0 @@
{% load static %}

<div id="rdvi-promo" class="card my-3 my-md-4 px-4 alert-dismissible-once d-none container rounded border-important bg-important-lightest">
<div class="row">
<div class="d-none d-md-block col-md-auto align-self-center">
<img src="{% static 'img/logo_rdv_insertion.svg' %}" height="90" alt="" loading="lazy" class="m-auto">
</div>
<div class="col-12 col-md p-0">
<div class="card-header pt-4">
<span class="badge rounded-pill bg-important badge-xs">Nouveau service</span>
<button data-bs-dismiss="alert" data-bs-target="#rdvi-promo" type="button" class="btn-close" aria-label="Fermer">
</button>
</div>
<div class="card-body pb-4">
<h4>RDV-Insertion simplifie les rendez-vous avec vos candidats</h4>
<p>
Besoin d'un outil de prise de RDV par mail et/ou SMS avec gestion des rappels pour
augmenter le taux de présence de vos candidats aux entretiens individuels et
aux informations collectives ?
</p>
<a class="btn btn-ico btn-link p-0" href="https://tally.so/r/nro2X2" rel="noopener" target="_blank" aria-label="Découvrir le service RDV-Insertion dans un nouvel onglet">
<span>Je découvre</span>
<i class="ri-external-link-line ri-lg"></i>
</a>
</div>
</div>
</div>
</div>
39 changes: 0 additions & 39 deletions tests/www/apply/__snapshots__/test_list.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
</div>
</div>
</div>


<div class="c-box c-box--results has-links-inside my-3 my-md-4">

Expand Down Expand Up @@ -143,7 +142,6 @@
</div>
</div>
</div>


<div class="c-box c-box--results has-links-inside my-3 my-md-4">

Expand Down Expand Up @@ -210,7 +208,6 @@
</div>
</div>
</div>




Expand Down Expand Up @@ -317,7 +314,6 @@
</div>
</div>
</div>


<div class="c-box c-box--results has-links-inside my-3 my-md-4">

Expand Down Expand Up @@ -399,7 +395,6 @@
</div>
</div>
</div>


<div class="c-box c-box--results has-links-inside my-3 my-md-4">

Expand Down Expand Up @@ -481,7 +476,6 @@
</div>
</div>
</div>




Expand Down Expand Up @@ -585,37 +579,6 @@
</div>
</div>
</div>



<div class="card my-3 my-md-4 px-4 alert-dismissible-once d-none container rounded border-important bg-important-lightest" id="rdvi-promo">
<div class="row">
<div class="d-none d-md-block col-md-auto align-self-center">
<img alt="" class="m-auto" height="90" loading="lazy" src="/static/img/logo_rdv_insertion.svg"/>
</div>
<div class="col-12 col-md p-0">
<div class="card-header pt-4">
<span class="badge rounded-pill bg-important badge-xs">Nouveau service</span>
<button aria-label="Fermer" class="btn-close" data-bs-dismiss="alert" data-bs-target="#rdvi-promo" type="button">
</button>
</div>
<div class="card-body pb-4">
<h4>RDV-Insertion simplifie les rendez-vous avec vos candidats</h4>
<p>
Besoin d'un outil de prise de RDV par mail et/ou SMS avec gestion des rappels pour
augmenter le taux de présence de vos candidats aux entretiens individuels et
aux informations collectives ?
</p>
<a aria-label="Découvrir le service RDV-Insertion dans un nouvel onglet" class="btn btn-ico btn-link p-0" href="https://tally.so/r/nro2X2" rel="noopener" target="_blank">
<span>Je découvre</span>
<i class="ri-external-link-line ri-lg"></i>
</a>
</div>
</div>
</div>
</div>



<div class="c-box c-box--results has-links-inside my-3 my-md-4">

Expand Down Expand Up @@ -694,7 +657,6 @@
</div>
</div>
</div>


<div class="c-box c-box--results has-links-inside my-3 my-md-4">

Expand Down Expand Up @@ -773,7 +735,6 @@
</div>
</div>
</div>




Expand Down
13 changes: 0 additions & 13 deletions tests/www/apply/test_list_for_siae.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,6 @@ def test_list_for_siae(self):
)
assertContains(response, job_application_link)

def test_list_for_siae_rdv_insertion_promo(self):
self.client.force_login(self.eddie_hit_pit)
response = self.client.get(reverse("apply:list_for_siae"))
promo_text = "Besoin d'un outil de prise de RDV par mail et/ou SMS"
assertContains(response, promo_text)

# Check with an other SIAE without applications - the promo is there too
other_company = CompanyFactory(with_membership=True)
self.client.force_login(other_company.members.first())
response = self.client.get(reverse("apply:list_for_siae"))
assertContains(response, "Aucune candidature pour le moment")
assertContains(response, promo_text)

def test_list_for_siae_show_criteria(self):
# Add a diagnosis present on 2 applications
diagnosis = EligibilityDiagnosisFactory(job_seeker=self.maggie)
Expand Down

0 comments on commit d3b451b

Please sign in to comment.