1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-29 20:02:59 +00:00
nk20/templates/member/add_members.html

30 lines
894 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-25 16:42:54 +00:00
{% block profile_info %}
{% include "member/club_info.html" %}
{% endblock %}
{% block profile_content %}
<form method="post" action="">
{% csrf_token %}
{% crispy formset helper %}
<div class="form-actions">
2019-08-15 19:50:53 +00:00
<input type="submit" name="submit" value="Add Members" class="btn btn-primary" id="submit-save">
</div>
</form>
2020-03-25 16:42:54 +00:00
{% endblock %}
2020-03-25 16:42:54 +00:00
{% block extrajavascript %}
<script src="{% static 'js/dynamic-formset.js' %}"></script>
<script>
$('.formset-row').formset({
2019-08-15 19:50:53 +00:00
addText: 'add another', // Text for the add link
deleteText: 'remove', // Text for the delete link
addCssClass: 'btn btn-primary', // CSS class applied to the add link
deleteCssClass: 'btn btn-danger h-50 my-auto',
});
</script>
{% endblock %}