Skip to content

Commit

Permalink
[templates]Fixed louvain templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrocha committed Aug 7, 2024
1 parent 0436462 commit e6bcdd4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 23 deletions.
2 changes: 1 addition & 1 deletion templates/surveyliege/survey/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h5>
</div>

<div class="col px-2 py-4 text-center">
<a href="survey/start">
<a href="{% url 'start' %}">
<button class="btn border border-rounded btn-primary" type="button">
{{ _('Start') }}
</button>
Expand Down
15 changes: 1 addition & 14 deletions templates/surveylouvain/survey/finishedSurvey.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,16 @@

{% block content %}
<div class="row px-4">
<div class="col-10">
<div class="col">
<h2>{{ _('Thanks') }}</h2>
<div class="qrcode"></div>
{% block finished_survey_description %}
<p class="text-justify">
{% blocktranslate trimmed %}
[Final Words]
{% endblocktranslate %}
</p>
{% endblock %}
<p class="continue-later-link">
<button
class="pl-0 btn btn-link"
type="button"
name="continue-later"
data-toggle="modal"
data-target="#modal">
{{ _('Your results link') }}
</button>
</p>

</div>

</div>

{% include 'survey/continue.html' %}
Expand Down
2 changes: 1 addition & 1 deletion templates/surveylouvain/survey/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h5>
</div>

<div class="col px-2 py-4 text-center">
<a href="/survey/start">
<a href="{% url 'start' %}">
<button class="btn border border-rounded btn-primary" type="button">
{{ _('Start') }}
</button>
Expand Down
15 changes: 10 additions & 5 deletions templates/surveylouvain/survey/questions.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends 'survey/base.html' %}

{% load bootstrap4 %}

{% load i18n %}
{% load static %}

{% block bootstrap4_extra_head %}
Expand All @@ -15,11 +15,16 @@

{% block content %}
{% if user.is_survey_in_progress %}
<div class="progress m-2" style="background-color: #C1CBD5; height: 30px;">
<nav class="nav_categories nav nav-fill">
{% for index, category in questions_categories %}
<a class="nav-link small py-1 d-none d-lg-inline {% if current_question_category == category.id %}d-inline nav_categories_active{% endif %}" href="#">{% trans category.label %}</a>
{% endfor %}
</nav>
<div class="progress mx-2 mt-2" style="height: 15px;">
<div
class="progress-bar"
class="progress-bar progress-bar-striped"
role="progressbar"
style="font-size: 1rem; width: {% widthratio current_question_index total_questions_num 100 %}%;"
style="font-size: 0.9rem; width: {% widthratio current_question_index total_questions_num 100 %}%;"
aria-valuenow="{% widthratio current_question_index total_questions_num 100 %}"
aria-valuemin="0"
aria-valuemax="100">
Expand All @@ -34,7 +39,7 @@
<div class="card-title">
<span data-bs-toggle="tooltip" title="{{ question_tooltip | safe }}">{{ question | safe }}</span>
</div>
<form action="{{ action }}" method="post" class="form" id="survey-question-form">
<form action="{% url 'question' current_question_index %}" method="post" class="form" id="survey-question-form">
{% csrf_token %}

{% bootstrap_form form exclude="feedback" %}
Expand Down
4 changes: 2 additions & 2 deletions templates/surveylouvain/survey/review.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ <h3 class="col-12">{{ _('Your answers review') }}</h3>
</p>
{% endif %}
<div class="p-3">
<button class="btn btn-light border border-rounded modify-question" data-question="{{ question_index }}">
<a class="btn btn-light border border-rounded" href="{% url 'question' question_index %}">
{{ _('Modify answers') }}
</button>
</a>
</div>
{% endfor %}
</ol>
Expand Down

0 comments on commit e6bcdd4

Please sign in to comment.