-
Notifications
You must be signed in to change notification settings - Fork 16
/
secondary_surveys.jinja2
40 lines (39 loc) · 1.7 KB
/
secondary_surveys.jinja2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% extends "sitebase.jinja2" %}
{% set page_title = _("Secondary Surveys") %}
{% set show_breadcrumbs = True %}
{% block content %}
{% if survey_details|length > 0 %}
<div class="container">
<div class="list-group">
<br>
<div class="row">
<div class="col-sm">
<i>{{ _('Survey Title') }}</i>
</div>
<div class="col-sm">
<i>{{ _('Survey Description') }}</i>
</div>
</div>
{% for detail in survey_details %}
<div class="container list-group-item {{loop.cycle('odd', 'even') }}">
<div class="row">
<div class="col-sm">
{% if detail.new_tab %}
<a class="btn btn-outline-info" href="/accounts/{{ account_id }}/sources/{{ source_id }}/take_survey?survey_template_id={{ detail.survey_template_id }}" target="_blank">
{% else %}
<a class="btn btn-outline-info" href="/accounts/{{ account_id }}/sources/{{ source_id }}/take_survey?survey_template_id={{ detail.survey_template_id }}">
{% endif %}
{{ detail.title|e }}
</a>
</div>
<div class="col-sm">
{{ detail.description|e }}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endblock %}
<!--- TODO: ADD BUTTON for session opt out --->