Skip to content
Extraits de code Groupes Projets
Valider 826ddc8d rédigé par jordan's avatar jordan
Parcourir les fichiers

[]

parent a206a5d5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,15 +2,19 @@ ...@@ -2,15 +2,19 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). */ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). */
.ethikis-flag{ .ethikis-flag{
width: 5%; width: 25px;
margin: 5px; margin: 5px;
} }
.ethikis-survey { .ethikis-survey {
font-family: 'Montserrat', sans-serif; font-family: 'Montserrat', sans-serif;
max-width: 900px;
padding: 20px; padding: 20px;
margin: 10px auto; background-image: url('/ethikis_survey/static/src/css/background.jpg');
background-repeat: no-repeat;
background-size: cover;
background-blend-mode: luminosity;
background-color: white;
color:#3D3D3D;
} }
.ethikis-survey h1, .ethikis-survey h2, .ethikis-survey h3, .ethikis-survey h4 { .ethikis-survey h1, .ethikis-survey h2, .ethikis-survey h3, .ethikis-survey h4 {
font-weight: 700; font-weight: 700;
...@@ -53,23 +57,10 @@ ...@@ -53,23 +57,10 @@
text-decoration: none; text-decoration: none;
} }
.ethikis-body {
background-image: url('/ethikis_survey/static/src/css/background.jpg');
background-repeat: no-repeat;
background-size: cover;
background-blend-mode: luminosity;
color:#3D3D3D;
}
.ethikis-body main {
padding-bottom: 150px;
}
.ethikis-footer { .ethikis-footer {
background-color: #3D3D3D; background-color: #3D3D3D;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
position: fixed;
} }
.fa { .fa {
...@@ -117,10 +108,12 @@ ...@@ -117,10 +108,12 @@
background-color: #61C4E1; background-color: #61C4E1;
color: white; color: white;
border-radius: 20px; border-radius: 20px;
text-transform: uppercase;
} }
.ethikis-btn-green { .ethikis-btn-green {
background-color: #009036; background-color: #009036;
color: white; color: white;
border-radius: 20px; border-radius: 20px;
text-transform: uppercase;
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<!-- remplace le body pour supprimer le header et ajouter le footer --> <!-- remplace le body pour supprimer le header et ajouter le footer -->
<xpath expr="//body" position="replace"> <xpath expr="//body" position="replace">
<body class="ethikis-body"> <body>
<header> <header>
</header> </header>
<main class="ethikis-survey"> <main class="ethikis-survey">
...@@ -137,6 +137,8 @@ ...@@ -137,6 +137,8 @@
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/> <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
<input type="hidden" name="page_id" t-att-value="page.id" /> <input type="hidden" name="page_id" t-att-value="page.id" />
<input type="hidden" name="token" t-att-value="token" /> <input type="hidden" name="token" t-att-value="token" />
<div class="row">
<div class="col-9">
<t t-foreach='page.question_ids' t-as='question'> <t t-foreach='page.question_ids' t-as='question'>
<t t-set="prefix" t-value="'%s_%s_%s' % (survey.id, page.id, question.id)" /> <t t-set="prefix" t-value="'%s_%s_%s' % (survey.id, page.id, question.id)" />
<div class="js_question-wrapper" t-att-id="prefix"> <div class="js_question-wrapper" t-att-id="prefix">
...@@ -155,7 +157,9 @@ ...@@ -155,7 +157,9 @@
<div class="js_errzone alert alert-danger" style="display:none;" role="alert"/> <div class="js_errzone alert alert-danger" style="display:none;" role="alert"/>
</div> </div>
</t> </t>
<div class="text-right mt16 mb16"> </div>
</div>
<div class="text-right mt16 mb16 mr32">
<button t-if="survey.users_can_go_back and page_nr > 0" type="submit" class="btn ethikis-btn-green" name="button_submit" value="previous">Previous page</button> <button t-if="survey.users_can_go_back and page_nr > 0" type="submit" class="btn ethikis-btn-green" name="button_submit" value="previous">Previous page</button>
<button t-if="not last" type="submit" class="btn ethikis-btn-blue" name="button_submit" value="next">Save or continue</button> <button t-if="not last" type="submit" class="btn ethikis-btn-blue" name="button_submit" value="next">Save or continue</button>
<button t-if="last" type="submit" class="btn ethikis-btn-blue" name="button_submit" value="finish">Submit survey</button> <button t-if="last" type="submit" class="btn ethikis-btn-blue" name="button_submit" value="finish">Submit survey</button>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter