forked from mirrors/bookwyrm
Markup for posting a status about a list
This commit is contained in:
parent
7af1f6c19d
commit
7a8a228dbe
3 changed files with 40 additions and 0 deletions
1
bookwyrm/templates/components/header_with_button.html
Normal file
1
bookwyrm/templates/components/header_with_button.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h1>
|
|
@ -2,6 +2,15 @@
|
|||
{% load bookwyrm_tags %}
|
||||
{% block panel %}
|
||||
|
||||
{% if items.exists and list.user == request.user %}
|
||||
<section class="block">
|
||||
<h2 class="title is-4">Post list to feed</h2>
|
||||
<div class="block column is-three-quarters">
|
||||
{% include 'lists/list_status.html' %}
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{% if request.user == list.user and pending_count %}
|
||||
<div class="block content">
|
||||
<p>
|
||||
|
|
30
bookwyrm/templates/lists/list_status.html
Normal file
30
bookwyrm/templates/lists/list_status.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
{% extends 'components/card.html' %}
|
||||
|
||||
{% load bookwyrm_tags %}
|
||||
{% load humanize %}
|
||||
|
||||
{% 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
|
||||
</h3>
|
||||
{% endblock %}
|
||||
|
||||
{% block card-footer %}
|
||||
<form name="list-status" action="" method="post" class="card-footer-item">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="user" value="{{ request.user.id }}">
|
||||
<input type="hidden" name="list" value="{{ list.id }}">
|
||||
|
||||
<div class="field has-addons">
|
||||
<div class="control">
|
||||
{% include 'snippets/privacy_select.html' with current=list.privacy %}
|
||||
</div>
|
||||
<div class="control">
|
||||
<button type="submit" class="button is-primary">Post status</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in a new issue