nk20/templates/member/club_form.html

32 lines
943 B
HTML
Raw Normal View History

2019-08-11 21:25:27 +00:00
{% extends "base.html" %}
{% load static %}
2020-03-11 11:05:29 +00:00
{% load i18n %}
2019-08-11 21:25:27 +00:00
{% load crispy_forms_tags %}
{% block content %}
<form method="post">
{% csrf_token %}
{{form|crispy}}
2020-03-11 11:05:29 +00:00
<button class="btn btn-primary" type="submit">{% trans "Submit" %}</button>
2019-08-11 21:25:27 +00:00
</form>
{% endblock %}
2020-03-31 14:22:11 +00:00
{% block extrajavascript %}
<script>
require_memberships_obj = $("#id_require_memberships");
if (!require_memberships_obj.is(":checked")) {
$("#div_id_membership_fee").toggle();
$("#div_id_membership_duration").toggle();
$("#div_id_membership_start").toggle();
$("#div_id_membership_end").toggle();
}
require_memberships_obj.change(function () {
$("#div_id_membership_fee").toggle();
$("#div_id_membership_duration").toggle();
$("#div_id_membership_start").toggle();
$("#div_id_membership_end").toggle();
});
</script>
{% endblock %}