-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pages recaps demande habilitation - WIP
- Loading branch information
1 parent
9145ef0
commit 98f3108
Showing
19 changed files
with
451 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
aidants_connect_habilitation/migrations/0033_alter_organisationrequest_status.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.15 on 2024-09-26 13:42 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('aidants_connect_habilitation', '0032_organisationrequest_not_free_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='organisationrequest', | ||
name='status', | ||
field=models.CharField(choices=[('NEW', 'Brouillon'), ('AC_VALIDATION_PROCESSING', 'En attente de validation d’éligibilité avant inscription en formation des aidants'), ('VALIDATED', 'Éligibilité validée'), ('REFUSED', 'Éligibilité Refusée'), ('CLOSED', 'Clôturée'), ('CHANGES_REQUIRED', 'Demande de modifications par l’équipe Aidants Connect'), ('CHANGES_PROPOSED', 'Modifications proposées par Aidants Connect')], default='NEW', max_length=150, verbose_name='État'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 4 additions & 13 deletions
17
aidants_connect_habilitation/templates/_formation_registration_button.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
{% if aidant.habilitation_request.status in aidant.habilitation_request.ReferentRequestStatuses.formation_registerable %} | ||
{% if organisation.manager.aidant.last_login %} | ||
<a | ||
href="{% url 'espace_responsable_organisation' %}" | ||
class="fr-btn" | ||
> | ||
Gérer les formations sur mon espace référent | ||
</a> | ||
{% elif aidant.habilitation_request.formations.exists %} | ||
<button class="fr-btn" disabled> | ||
Cette personne est inscrite à une formation | ||
</button> | ||
{% if aidant.habilitation_request.formations.exists %} | ||
<p class="fr-badge fr-badge--success">Inscrit</p> | ||
{% else %} | ||
{% block url_registration %} | ||
<a | ||
href="{% url 'habilitation_manager_formation_registration' issuer_id=organisation.issuer.issuer_id uuid=organisation.uuid %}" | ||
class="fr-btn" | ||
class="fr-link" | ||
> | ||
Inscrire à une formation | ||
</a> | ||
{% endblock %} | ||
{% endblock url_registration %} | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
..._connect_habilitation/templates/aidants_connect_habilitation/common/_recap_personnes.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{% load static %} | ||
|
||
<div class="flex flex-between"> | ||
<h2>Personnes impliquées</h2> | ||
<div> | ||
{% if organisation.status in organisation.Status.aidant_registrable %} | ||
<a | ||
id="add-aidants-btn" | ||
class="fr-btn fr-btn--icon-left fr-icon-user-add-line fr-mb-2v" | ||
href="{% url 'habilitation_organisation_add_aidants' issuer_id=organisation.issuer.issuer_id uuid=organisation.uuid %}" | ||
> | ||
Ajouter un aidant à la demande | ||
</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<p> | ||
Il vous est encore possible d’ajouter ou de supprimer des aidants de votre demande. Vous pouvez également | ||
vérifier les informations saisies ci-dessous. | ||
</p> | ||
<div class="fr-grid-row fr-grid-row--gutters fr-mb-4v fr-background-contrast--grey fr-p-3w fr-mx-0"> | ||
<div class="fr-col-12 fr-col-md-4 fr-height-100"> | ||
<h3 class="fr-h5">Référents</h3> | ||
<div class="fr-card fr-tile--shadow fr-p-4v"> | ||
{% if organisation.manager %} | ||
<div class="flex fr-mb-3w"> | ||
<img src="{% static 'images/avatar.svg' %}" width="36" height="36" alt="" /> | ||
<div class="fr-my-auto fr-ml-1w"> | ||
<strong>{{ organisation.manager.get_full_name }}</strong> | ||
</div> | ||
</div> | ||
<div class="fr-mb-2w"> | ||
<p class="fr-badge fr-badge--sm fr-badge--no-icon fr-badge--info">référent</p> | ||
{% if organisation.manager.is_aidant %} | ||
<p class="fr-badge fr-badge--sm fr-badge--purple-glycine">aidant</p> | ||
{% endif %} | ||
</div> | ||
<div class="fr-text--xs fr-text-mention--grey fr-m-0">Email</div> | ||
<div class="fr-text--sm fr-mb-2w">{{ organisation.manager.email }}</div> | ||
<div class="fr-text--xs fr-text-mention--grey fr-m-0">Profession</div> | ||
<div class="fr-text--sm fr-mb-2w">{{ organisation.manager.profession }}</div> | ||
<div class="fr-text--xs fr-text-mention--grey fr-m-0">Conseiller numérique</div> | ||
<div class="fr-text--sm fr-mb-2w">{{ organisation.manager.conseiller_numerique|yesno:"Oui,Non" }}</div> | ||
<div class="fr-text--xs fr-text-mention--grey fr-m-0">Organisation</div> | ||
<div class="fr-text--sm fr-mb-2w">{{ organisation.manager.organisation }}</div> | ||
|
||
<ul class="fr-btns-group fr-btns-group--sm fr-btns-group--right fr-btns-group--inline fr-mb-n4v"> | ||
<li> | ||
<a | ||
href="{% url 'habilitation_new_aidants' issuer_id=issuer.issuer_id uuid=organisation.uuid %}" | ||
{% if habilitation_request.details_id %}id="edit-button-{{ habilitation_request.details_id }}"{% endif %} | ||
class="fr-btn fr-btn--tertiary fr-btn--icon fr-icon-edit-fill" | ||
> | ||
Éditer | ||
</a> | ||
</li> | ||
</ul> | ||
{% else %} | ||
<ul class="fr-btns-group fr-m-4v"> | ||
<li> | ||
<a | ||
href="{% url 'habilitation_new_aidants' issuer_id=issuer.issuer_id uuid=organisation.uuid %}" | ||
{% if habilitation_request.details_id %}id="edit-button-{{ habilitation_request.details_id }}"{% endif %} | ||
class="fr-btn fr-m-0 width-100" | ||
> | ||
Ajouter un ou une référente | ||
</a> | ||
</li> | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="fr-col-12 fr-col-md-8 fr-height-100"> | ||
<h3 class="fr-h5">Aidants</h3> | ||
{% if habilitation_requests %} | ||
<div class="fr-grid-row fr-grid-row--gutters"> | ||
{% for habilitation_request in habilitation_requests %} | ||
{% include "aidants_connect_habilitation/validation_request_form_view/_habilitation-request-profile-card.html" %} | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
<div class="fr-pt-2w fr-text-mention--grey"> | ||
Vous n'avez pas encore ajouté d'aidant à votre demande | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> |
Oops, something went wrong.