moviewyrm/bookwyrm/templates/user/lists.html

42 lines
1.3 KiB
HTML
Raw Normal View History

2021-02-02 18:13:59 +00:00
{% extends 'user/user_layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-02-02 18:13:59 +00:00
{% block header %}
2021-02-23 21:04:24 +00:00
<div class="columns is-mobile">
2021-02-02 18:13:59 +00:00
<div class="column">
<h1 class="title">
{% if is_self %}Your
{% else %}
{% include 'snippets/username.html' with user=user %}'s
{% endif %}
Lists
</h1>
</div>
{% if is_self %}
<div class="column is-narrow">
{% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon="plus" text="Create new list" %}
</div>
{% endif %}
</div>
{% endblock %}
{% block panel %}
<section class="block content">
<form name="create-list" method="post" action="{% url 'lists' %}" class="box hidden" id="create-list">
<header class="columns">
2021-02-28 02:48:10 +00:00
<h3 class="title column">{% trans "Create list" %}</h3>
2021-02-02 18:13:59 +00:00
<div class="column is-narrow">
{% include 'snippets/toggle/toggle_button.html' with controls_text="create-list" label="close" class="delete" nonbutton=True %}
</div>
</header>
{% include 'lists/form.html' %}
</form>
{% include 'lists/list_items.html' with lists=lists %}
</section>
<div>
{% include 'snippets/pagination.html' with page=lists path=path %}
</div>
{% endblock %}