mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-04 07:16:36 +00:00
group creation form can now be submitted!
Whoops
This commit is contained in:
parent
4e93b09067
commit
f32a2cc4d0
3 changed files with 8 additions and 7 deletions
|
@ -6,7 +6,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block form %}
|
{% block form %}
|
||||||
<form name="create-list" method="post" action="{% url 'lists' %}">
|
<form name="create-group" method="post" action="{% url 'groups' %}">
|
||||||
{% include 'group/form.html' %}
|
{% include 'group/form.html' %}
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -14,12 +14,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="columns is-mobile">
|
<div class="columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="field has-addons">
|
<div class="field has-addons">
|
||||||
<div class="control">
|
<!-- <div class="control">
|
||||||
{% include 'snippets/privacy_select.html' with current=group.privacy %}
|
{% include 'snippets/privacy_select.html' with current=group.privacy %}
|
||||||
</div>
|
</div> -->
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<button type="submit" class="button is-primary">{% trans "Save" %}</button>
|
<button type="submit" class="button is-primary">{% trans "Save" %}</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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" %}
|
{% 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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div> -->
|
</div>
|
||||||
|
|
|
@ -59,8 +59,9 @@ class UserGroups(View):
|
||||||
def get(self, request, username):
|
def get(self, request, username):
|
||||||
"""display a group"""
|
"""display a group"""
|
||||||
user = get_user_from_username(request.user, username)
|
user = get_user_from_username(request.user, username)
|
||||||
groups = models.GroupMember.objects.filter(user=user)
|
# groups = models.GroupMember.objects.filter(user=user)
|
||||||
groups = privacy_filter(request.user, groups)
|
groups = models.Group.objects.filter(members=request.user)
|
||||||
|
# groups = privacy_filter(request.user, groups)
|
||||||
paginated = Paginator(groups, 12)
|
paginated = Paginator(groups, 12)
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
|
|
Loading…
Reference in a new issue