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 %}Your profile{% endblock %}
|
|
|
|
{% block header_paragraph %}
|
|
|
|
These details will appear on your badge, your invoices, and will be used
|
|
|
|
to order catered food at the conference.
|
|
|
|
{% endblock %}
|
2016-03-30 04:13:50 +00:00
|
|
|
|
2016-09-30 10:46:05 +00:00
|
|
|
{% block scripts_extra %}
|
2017-10-01 07:39:20 +00:00
|
|
|
{{ form.media.js }}
|
|
|
|
<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
|
|
|
|
2016-09-30 10:46:05 +00:00
|
|
|
{% block content %}
|
2017-04-16 06:01:57 +00:00
|
|
|
<form class="form-horizontal" method="post" action="">
|
2016-03-30 04:13:50 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
|
2016-09-30 10:46:05 +00:00
|
|
|
<fieldset>
|
2017-04-16 06:01:57 +00:00
|
|
|
{% include "_form_snippet.html" with form=form %}
|
|
|
|
<br />
|
|
|
|
<div class="btn-group">
|
2017-10-04 07:04:35 +00:00
|
|
|
<input class="btn btn-success" type="submit" value="Save Profile" />
|
|
|
|
{% if user.attendee %}
|
|
|
|
<a class="btn btn-info" href="{% url "dashboard" %}">Cancel</a>
|
|
|
|
{% endif %}
|
2017-04-16 06:01:57 +00:00
|
|
|
</div>
|
2016-09-30 10:46:05 +00:00
|
|
|
</fieldset>
|
2016-03-30 04:13:50 +00:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|