1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-30 04:13:01 +00:00
nk20/templates/member/club_form.html

34 lines
1.0 KiB
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_paid").toggle();
$("#div_id_membership_fee_unpaid").toggle();
2020-03-31 14:22:11 +00:00
$("#div_id_membership_duration").toggle();
$("#div_id_membership_start").toggle();
$("#div_id_membership_end").toggle();
}
require_memberships_obj.change(function () {
$("#div_id_membership_fee_paid").toggle();
$("#div_id_membership_fee_unpaid").toggle();
2020-03-31 14:22:11 +00:00
$("#div_id_membership_duration").toggle();
$("#div_id_membership_start").toggle();
$("#div_id_membership_end").toggle();
});
</script>
{% endblock %}