create group form

adds a group creation form to user dashboard
This commit is contained in:
Hugh Rundle
2021-09-24 14:12:36 +10:00
parent e07a25e288
commit 4e93b09067
7 changed files with 49 additions and 21 deletions

View File

@ -6,7 +6,8 @@
{% endblock %}
{% block form %}
<form name="create-group" method="post" action="{% url 'user-groups' %}">
<form name="create-list" method="post" action="{% url 'lists' %}">
{% include 'group/form.html' %}
</form>
{% endblock %}

View File

@ -5,16 +5,16 @@
<div class="columns">
<div class="column is-two-thirds">
<div class="field">
<label class="label" for="id_name">{% trans "Name:" %}</label>
<label class="label" for="id_name">{% trans "Group Name:" %}</label>
{{ group_form.name }}
</div>
<div class="field">
<label class="label" for="id_description">{% trans "Description:" %}</label>
<label class="label" for="id_description">{% trans "Group Description:" %}</label>
{{ group_form.description }}
</div>
</div>
</div>
<div class="columns is-mobile">
<!-- <div class="columns is-mobile">
<div class="column">
<div class="field has-addons">
<div class="control">
@ -31,4 +31,4 @@
{% include 'snippets/toggle/toggle_button.html' with class="is-danger" text=button_text icon_with_text="x" controls_text="delete_group" controls_uid=group.id focus="modal_title_delete_group" %}
</div>
{% endif %}
</div>
</div> -->

View File

@ -34,9 +34,9 @@
{% include 'groups/form.html' %}
</form>
<!-- {% include 'lists/list_items.html' with lists=lists %} -->
{% include 'groups/group_items.html' with groups=groups %}
</section>
<div>
<!-- {% include 'snippets/pagination.html' with page=user_groups path=path %} -->
{% include 'snippets/pagination.html' with page=user_groups path=path %}
</div>
{% endblock %}