-
Notifications
You must be signed in to change notification settings - Fork 1
/
survey.html
58 lines (44 loc) · 2.21 KB
/
survey.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{% extends "./wrapper.html" %}
{% load actionkit_tags %}
{% block content %}
{% load_remember_me %}
<form class="ak-form" name="act" method="POST" action="/act/" accept-charset="utf-8">
<input type="hidden" name="page" value="{{ page.name }}">
<div class="ak-grid-row">
<div class="ak-grid-col ak-grid-col-12-of-12">
<h2>{{ page.title }}</h2>
<div class="ak-mobile-padding ak-text-expander">
{% include_tmpl form.introduction_text %}
</div>
<a href="#" class="ak-read-more ak-mobile" data-lines="25">Read more</a>
</div>
</div>
<div class="ak-grid-row">
<div class="ak-grid-col ak-grid-col-4-of-12">
{% if page.custom_fields.featured_image %}
<img class="ak-featured-img" src="{{page.custom_fields.featured_image}}">
{% endif %}
<div id="survey-contact" class="ak-styled-fields {{templateset.custom_fields.field_labels_class|default:"ak-labels-overlaid"}} {{templateset.custom_fields.field_errors_class|default:"ak-errs-below"}}">
{% include "./user_form_wrapper.html" %}
</div>
{% include "./progress_meter.html" %}
</div>
<div id="ak-survey-questions" class="ak-grid-col ak-grid-col-8-of-12">
<div class="ak-field-box ak-field-box-padded ak-styled-fields ak-labels-above {{templateset.custom_fields.field_errors_class|default:"ak-errs-above"}}">
{% autoescape off %}
{% for question in form.surveyquestion_set.all %}
<div>
<label class="ak-survey-question-label">
{{ question.question_label }}
</label>
{{ question.input_html }}
</div>
{% endfor %}
{% endautoescape %}
<div class="clear"></div>
<button type="submit" class="ak-submit-button">{% if page.custom_fields.submit_button_name %}{{ page.custom_fields.submit_button_name }}{% else %}Submit Survey{% endif %}</button>
</div>
</div>
</div>
</form>
{% endblock %}