forked from mirrors/bookwyrm
Compare commits
2 commits
main
...
inline-for
Author | SHA1 | Date | |
---|---|---|---|
|
61588e25dc | ||
|
b9eb40924a |
3 changed files with 24 additions and 29 deletions
|
@ -1,15 +1,14 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<section class="card {% if not visible %}is-hidden {% endif %}{{ class }}" id="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}">
|
<details
|
||||||
<header class="card-header has-background-secondary">
|
class="details-panel box"
|
||||||
<h2 class="card-header-title" tabindex="0" id="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}_header">
|
{% if visible %}open{% endif %}
|
||||||
{% block header %}{% endblock %}
|
>
|
||||||
</h2>
|
<summary role="heading" aria-level="2">
|
||||||
<span class="card-header-icon">
|
<span class="title is-5">{% block header %}{% endblock %}</span>
|
||||||
{% trans "Close" as button_text %}
|
<span class="details-close icon icon-x" aria-hidden="true"></span>
|
||||||
{% include 'snippets/toggle/toggle_button.html' with label=button_text class="delete" nonbutton=True controls_text=controls_text %}
|
</summary>
|
||||||
</span>
|
|
||||||
</header>
|
<section class="{{ class }} mt-2">
|
||||||
<section class="card-content content">
|
|
||||||
{% block form %}{% endblock %}
|
{% block form %}{% endblock %}
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</details>
|
||||||
|
|
|
@ -7,13 +7,17 @@
|
||||||
<div class="column is-two-thirds">
|
<div class="column is-two-thirds">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_name">{% trans "Name:" %}</label>
|
<label class="label" for="id_name">{% trans "Name:" %}</label>
|
||||||
|
<div class="control">
|
||||||
{{ list_form.name }}
|
{{ list_form.name }}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_description">{% trans "Description:" %}</label>
|
<label class="label" for="id_description">{% trans "Description:" %}</label>
|
||||||
|
<div class="control">
|
||||||
{{ list_form.description }}
|
{{ list_form.description }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<fieldset class="field">
|
<fieldset class="field">
|
||||||
<legend class="label">{% trans "List curation:" %}</legend>
|
<legend class="label">{% trans "List curation:" %}</legend>
|
||||||
|
|
|
@ -6,21 +6,13 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<header class="block columns is-mobile">
|
<header class="block">
|
||||||
<div class="column">
|
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
{% trans "Lists" %}
|
{% trans "Lists" %}
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<a class="help has-text-weight-normal" href="{% url 'user-lists' request.user|username %}">{% trans "Your Lists" %}</a>
|
<a class="help has-text-weight-normal" href="{% url 'user-lists' request.user|username %}">{% trans "Your Lists" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<div class="column is-narrow">
|
|
||||||
{% trans "Create List" as button_text %}
|
|
||||||
{% include 'snippets/toggle/open_button.html' with controls_text="create_list" icon_with_text="plus" text=button_text focus="create_list_header" %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</header>
|
</header>
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
|
|
Loading…
Reference in a new issue