-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! feat(surveys): setup views and forms
- Loading branch information
1 parent
72fe2c5
commit 2fa0597
Showing
2 changed files
with
91 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,58 @@ | ||
{% extends 'board_base.html' %} | ||
{% extends "layouts/base.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %}Diagnostic Socio Professionnel{{ block.super }}{% endblock %} | ||
{% block meta_description %}Recommandations{% endblock meta_description %}" | ||
|
||
{% block content %} | ||
|
||
<h1>Les recommandations suite à votre diagnostic</h1> | ||
|
||
{% for label, recommendation in object.recommendations.items %} | ||
<div class="row mt-3"> | ||
<div class="col-12"> | ||
<div class="card post-edit"> | ||
<div class="card-header"> | ||
<h3 class="m-0 h4 card-title">{{label}}</h3> | ||
</div> | ||
<div class="card-body"> | ||
{{ recommendation }} | ||
</div> | ||
<section class="s-title-01 mt-lg-5"> | ||
<div class="s-title-01__container container"> | ||
<div class="s-title-01__row row"> | ||
<div class="s-title-01__col col-12"> | ||
<h1 class="s-title-01__title h1">Les recommandations suite à votre diagnostic</h1> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</section> | ||
|
||
<section class="s-section"> | ||
<div class="s-section__container container"> | ||
<div class="s-section__row row"> | ||
<div class="s-section__col col-12 col-lg-8"> | ||
{% for label, recommendation in recommendations.items %} | ||
<div> | ||
<h2 class="h3">{{label}}</h2> | ||
<div> | ||
{{ recommendation }} | ||
</div> | ||
<hr class="mt-5"> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div class="s-section__row row"> | ||
<div class="s-section__col col-12 col-lg-8"> | ||
<h2 class="h3">Rappel de votre diagnostic</h2> | ||
</div> | ||
</div> | ||
<div class="s-section__row row"> | ||
<div class="s-section__col col-12 col-lg-8"> | ||
{% for field in form %} | ||
<p> | ||
<strong>{{ field.label }} :</strong> | ||
{% if field.field.choices %} | ||
{% for choice in field.field.choices %} | ||
{% if choice.0 == field.value %} | ||
{{ choice.1 }} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</p> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
{% endblock content %} |
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,31 +1,58 @@ | ||
{% extends 'board_base.html' %} | ||
{% extends "layouts/base.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %}Diagnostic Socio Professionnel{{ block.super }}{% endblock %} | ||
{% block meta_description %}DSP{% endblock meta_description %}" | ||
{% block meta_description %}DSP{% endblock meta_description %} | ||
|
||
{% block content %} | ||
|
||
<h1>Diagnostic socio-professionnel</h1> | ||
{% block content %} | ||
|
||
<form method="post"> | ||
{% csrf_token %} | ||
<section class="s-title-01 mt-lg-5"> | ||
<div class="s-title-01__container container"> | ||
<div class="s-title-01__row row"> | ||
<div class="s-title-01__col col-12"> | ||
<h1 class="s-title-01__title h1">Diagnostic socio-professionnel</h1> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
{% for field in form %} | ||
<div class="row mt-3"> | ||
<div class="col-12"> | ||
<div class="card post-edit"> | ||
<div class="card-header"> | ||
<h3 class="m-0 h4 card-title">{{ field.label_tag }}</h3> | ||
</div> | ||
<div class="card-body"> | ||
{{ field }} | ||
</div> | ||
<section class="s-section"> | ||
<div class="s-section__container container"> | ||
<div class="s-section__row row"> | ||
<div class="s-section__col col-12"> | ||
<div class="c-form"> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{% for field in form %} | ||
<fieldset> | ||
<div class="row"> | ||
<div class="col-12 col-lg-8"> | ||
<legend>{{ field.label_tag }}</legend> | ||
<div class="form-group form-group-required">{{ field }}</div> | ||
</div> | ||
</div> | ||
</fieldset> | ||
<div class="row"> | ||
<div class="col-12 col-lg-7"> | ||
<hr /> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
<div class="row"> | ||
<div class="col-12 col-lg-7"> | ||
<div class="form-row justify-content-end"> | ||
<div class="form-group col-12 col-lg-auto"> | ||
<button type="submit" class="btn btn-block btn-primary">Valider</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
<input type="submit" class="btn btn-sm btn-secondary mt-3" value="Valider"> | ||
</form> | ||
</div> | ||
</section> | ||
|
||
{% endblock content %} |