Skip to content

Commit

Permalink
job_seekers_views: add a button to create a job seeker without applying
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenKorr committed Jan 31, 2025
1 parent d11910a commit b74a0cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions itou/templates/job_seekers_views/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
{% load static %}
{% load str_filters %}
{% load format_filters %}
{% load url_add_query %}

{% block title %}Candidats {{ block.super }}{% endblock %}

{% block title_content %}
<div class="d-flex flex-column flex-md-row gap-3 justify-content-md-between">
<h1 class="m-0">Candidats</h1>
<div class="d-flex flex-column flex-md-row gap-3" role="group" aria-label="Actions sur les candidatures">
{% url "job_seekers_views:get_or_create_start" as get_or_create_url %}
<a href="{% url_add_query get_or_create_url tunnel='standalone' from_url=request.path|urlencode %}" class="btn btn-lg btn-secondary btn-ico">
<i class="ri-user-add-line fw-medium" aria-hidden="true"></i>
<span>Créer un compte candidat</span>
</a>
<a href="{% url 'search:employers_results' %}" class="btn btn-lg btn-primary btn-ico">
<i class="ri-draft-line fw-medium" aria-hidden="true"></i>
<span>Postuler pour un candidat</span>
Expand Down
5 changes: 5 additions & 0 deletions tests/www/job_seekers_views/__snapshots__/test_list.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
<div class="d-flex flex-column flex-md-row gap-3 justify-content-md-between">
<h1 class="m-0">Candidats</h1>
<div aria-label="Actions sur les candidatures" class="d-flex flex-column flex-md-row gap-3" role="group">

<a class="btn btn-lg btn-secondary btn-ico" href="/job-seekers/start?tunnel=standalone&amp;from_url=/job-seekers/list">
<i aria-hidden="true" class="ri-user-add-line fw-medium"></i>
<span>Créer un compte candidat</span>
</a>
<a class="btn btn-lg btn-primary btn-ico" href="/search/employers/results">
<i aria-hidden="true" class="ri-draft-line fw-medium"></i>
<span>Postuler pour un candidat</span>
Expand Down

0 comments on commit b74a0cd

Please sign in to comment.