37 lines
763 B
HTML
37 lines
763 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% load bootstrap3 staticfiles i18n %}
|
|
|
|
{% block listingtab %} active{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>{% trans "Propose a talk" %}</h1>
|
|
|
|
{% include "_form.html" %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block css %}
|
|
{{ block.super }}
|
|
{{ form.media.css }}
|
|
{% endblock css %}
|
|
|
|
{% block js_end %}
|
|
{{ block.super }}
|
|
{{ form.media.js }}
|
|
<script type="text/javascript">
|
|
var update_attendees_limit = function() {
|
|
if ($("#id_registration_required").is(":checked")) {
|
|
$(".form-group:has(#id_attendees_limit)").show();
|
|
} else {
|
|
$(".form-group:has(#id_attendees_limit)").hide();
|
|
}
|
|
}
|
|
$(function() {
|
|
update_attendees_limit();
|
|
$("#id_registration_required").change(update_attendees_limit);
|
|
})
|
|
</script>
|
|
{% endblock js_end %}
|