1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 16:02:25 +00:00
nk20/templates/member/add_members.html

30 lines
854 B
HTML
Raw Normal View History

2020-03-25 16:42:54 +00:00
{% extends "member/noteowner_detail.html" %}
{% load crispy_forms_tags %}
{% load static %}
2020-03-31 21:54:14 +00:00
{% load i18n %}
2020-03-25 16:42:54 +00:00
{% block profile_info %}
{% include "member/club_info.html" %}
{% endblock %}
2020-03-31 21:54:14 +00:00
{% block profile_content %}
<form method="post" action="">
{% csrf_token %}
2020-03-31 21:54:14 +00:00
{{ form|crispy }}
<button class="btn btn-primary" type="submit">{% trans "Submit" %}</button>
</form>
2020-03-25 16:42:54 +00:00
{% endblock %}
2020-03-25 16:42:54 +00:00
{% block extrajavascript %}
<script>
2020-04-05 16:37:04 +00:00
function autocompleted(user) {
$("#id_last_name").val(user.last_name);
$("#id_first_name").val(user.first_name);
$.getJSON("/api/members/profile/" + user.id + "/", function(profile) {
let fee = profile.paid ? {{ club.membership_fee_paid }} : {{ club.membership_fee_unpaid }};
$("#id_credit_amount").val((fee / 100).toFixed(2));
});
}
</script>
{% endblock %}