forked from mirrors/bookwyrm
WIP
This commit is contained in:
parent
f5fe746176
commit
deb4676e2f
3 changed files with 10 additions and 4 deletions
|
@ -99,6 +99,12 @@ class StatusForm(CustomForm):
|
|||
fields = [
|
||||
'user', 'content', 'content_warning', 'sensitive', 'privacy']
|
||||
|
||||
class ListStatusForm(CustomForm):
|
||||
class Meta:
|
||||
model = models.GeneratedNote
|
||||
fields = [
|
||||
'user', 'content', 'privacy', 'mention_books']
|
||||
|
||||
|
||||
class EditUserForm(CustomForm):
|
||||
class Meta:
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
{% extends 'components/card.html' %}
|
||||
|
||||
{% load bookwyrm_tags %}
|
||||
{% load humanize %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block card-header %}
|
||||
<h3 class="card-header-title has-background-white-ter is-block">
|
||||
{% include 'snippets/avatar.html' with user=request.user %}
|
||||
{% include 'snippets/username.html' with user=request.user %}
|
||||
created a list
|
||||
{% blocktrans with username=user.display_name list_name=list.name %}{{ username }} created a list: "{{ list_name }}"{% endblocktrans %}
|
||||
</h3>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -22,7 +21,7 @@
|
|||
{% include 'snippets/privacy_select.html' with current=list.privacy %}
|
||||
</div>
|
||||
<div class="control">
|
||||
<button type="submit" class="button is-primary">Post status</button>
|
||||
<button type="submit" class="button is-primary">{% trans "Post" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -118,6 +118,7 @@ class List(View):
|
|||
approved=False).count(),
|
||||
'suggested_books': suggestions,
|
||||
'list_form': forms.ListForm(instance=book_list),
|
||||
'status_form': forms.ListStatusForm(),
|
||||
'query': query or ''
|
||||
}
|
||||
return TemplateResponse(request, 'lists/list.html', data)
|
||||
|
|
Loading…
Reference in a new issue