2021-04-30 16:02:14 +00:00
|
|
|
{% extends '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">
|
2021-02-28 18:00:36 +00:00
|
|
|
{% if is_self %}
|
|
|
|
{% trans "Your Lists" %}
|
2021-02-02 18:13:59 +00:00
|
|
|
{% else %}
|
2021-02-28 18:00:36 +00:00
|
|
|
{% blocktrans with username=user.display_name %}Lists: {{ username }}{% endblocktrans %}
|
2021-02-02 18:13:59 +00:00
|
|
|
{% endif %}
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
{% if is_self %}
|
|
|
|
<div class="column is-narrow">
|
2021-03-02 18:46:08 +00:00
|
|
|
{% trans "Create list" as button_text %}
|
2021-05-18 17:45:51 +00:00
|
|
|
{% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon_with_text="plus" text=button_text %}
|
2021-02-02 18:13:59 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block panel %}
|
2021-04-30 20:44:53 +00:00
|
|
|
<section class="block">
|
2021-04-07 15:31:00 +00:00
|
|
|
<form name="create-list" method="post" action="{% url 'lists' %}" class="box is-hidden" id="create-list">
|
2021-02-02 18:13:59 +00:00
|
|
|
<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 %}
|