Compare commits

...

2 commits

Author SHA1 Message Date
Mouse Reeve 61588e25dc Remove test value of ioen 2022-03-10 11:20:01 -08:00
Mouse Reeve b9eb40924a Uses details instead of javascript for inline forms 2022-03-10 11:12:01 -08:00
3 changed files with 24 additions and 29 deletions

View file

@ -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>

View file

@ -7,11 +7,15 @@
<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>
{{ list_form.name }} <div class="control">
{{ 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>
{{ list_form.description }} <div class="control">
{{ list_form.description }}
</div>
</div> </div>
</div> </div>
<div class="column"> <div class="column">

View file

@ -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">