2016-03-30 04:13:50 +00:00
|
|
|
{% extends "registrasion/base.html" %}
|
2017-09-27 13:46:13 +00:00
|
|
|
{% load lca2018_tags %}
|
2016-03-30 04:13:50 +00:00
|
|
|
|
2016-09-30 10:46:05 +00:00
|
|
|
{% block header_title %}Buy Your Ticket{% endblock %}
|
|
|
|
{% block header_paragraph %}Step {{ current_step }} of {{ total_steps|add:1 }} – {{ title }} {% endblock %}
|
2016-03-30 04:13:50 +00:00
|
|
|
|
2016-09-30 10:46:05 +00:00
|
|
|
{% block scripts_extra %}
|
|
|
|
{% for section in sections %}
|
|
|
|
{{ section.form.media.js }}
|
|
|
|
{% endfor %}
|
2017-10-01 07:39:20 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
postcode_label = $("label[for='id_profile-state']");
|
|
|
|
postcode_help = $("#id_profile-state + p");
|
|
|
|
$('#id_profile-country').change(function () {
|
|
|
|
if ($(this).val() == 'AU' ) {
|
|
|
|
postcode_label.addClass('label-required');
|
|
|
|
postcode_help.show();
|
|
|
|
} else {
|
|
|
|
postcode_label.removeClass('label-required');
|
|
|
|
postcode_help.hide();
|
|
|
|
} });
|
|
|
|
$("#id_profile-country").change();
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2016-09-30 10:46:05 +00:00
|
|
|
{% endblock %}
|
2016-03-30 04:13:50 +00:00
|
|
|
|
2018-09-29 01:11:20 +00:00
|
|
|
{% block proposals_body %}
|
2016-03-30 04:13:50 +00:00
|
|
|
|
2018-09-29 01:11:20 +00:00
|
|
|
<form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
|
2016-03-30 04:13:50 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
|
|
|
|
{% for section in sections %}
|
2018-09-29 01:11:20 +00:00
|
|
|
<h2>{{ section.title }}</h2>
|
2016-03-30 04:13:50 +00:00
|
|
|
|
2018-09-29 01:11:20 +00:00
|
|
|
{% if section.description %}
|
|
|
|
<blockquote>{{ section.description|safe }}</blockquote>
|
|
|
|
{% endif %}
|
2016-09-30 10:46:05 +00:00
|
|
|
|
2018-09-29 01:11:20 +00:00
|
|
|
<fieldset>
|
2016-09-30 10:46:05 +00:00
|
|
|
{% if section.discounts %}
|
|
|
|
{% include "registrasion/discount_list.html" with discounts=section.discounts %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% include "_form_snippet.html" with form=section.form %}
|
|
|
|
|
2018-09-29 01:11:20 +00:00
|
|
|
<br />
|
|
|
|
</fieldset>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
<div class="btn-group">
|
|
|
|
{% if current_step > 1 %}
|
|
|
|
<a class="btn btn-primary" role="button" href="{{ previous_step }}">Back</a>
|
|
|
|
{% endif %}
|
|
|
|
<input class="btn btn-primary" type="submit" value="Next Step" />
|
|
|
|
</div>
|
2016-03-30 04:13:50 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|