Markup for posting a status about a list

This commit is contained in:
Mouse Reeve 2021-02-03 15:59:12 -08:00
parent 7af1f6c19d
commit 7a8a228dbe
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1 @@
<h1>

View file

@ -2,6 +2,15 @@
{% load bookwyrm_tags %} {% load bookwyrm_tags %}
{% block panel %} {% 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 %} {% if request.user == list.user and pending_count %}
<div class="block content"> <div class="block content">
<p> <p>

View 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 %}