From da69b82d8a446d5807a39e242f65d9fbd17b49e5 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 29 Mar 2020 17:02:17 -0700 Subject: [PATCH] Clean up edit book page --- fedireads/static/format.css | 31 +++++++++++++++++ fedireads/templates/edit_book.html | 55 +++++++++++++++++++++++++----- 2 files changed, 78 insertions(+), 8 deletions(-) diff --git a/fedireads/static/format.css b/fedireads/static/format.css index 8278f255..f0b5e1a8 100644 --- a/fedireads/static/format.css +++ b/fedireads/static/format.css @@ -42,6 +42,16 @@ h2 { border-bottom: 3px solid #B2DBBF; } +h3 { + font-size: 1rem; + margin: 1rem 0 0.5rem 0; + border-bottom: 3px solid #70C1B2; + font-weight: bold; +} +h3 small { + font-weight: normal; +} + #top-bar { overflow: visible; padding: 0.5rem; @@ -222,9 +232,30 @@ ul.menu a { flex-grow: 1; display: inline-block; } + + +.book-form textarea { + display: block; + width: 100%; + font-size: 0.9em; +} +.book-form label { + display: inline-block; + width: 8rem; + vertical-align: top; +} +.book-form .row label { + width: max-content; +} form input { flex-grow: 1; } +form div { + margin-bottom: 1em; +} +textarea { + padding: 0.5em; +} .content-container button { border: none; background-color: #247BA0; diff --git a/fedireads/templates/edit_book.html b/fedireads/templates/edit_book.html index 529a2f0c..83ba15c6 100644 --- a/fedireads/templates/edit_book.html +++ b/fedireads/templates/edit_book.html @@ -1,15 +1,54 @@ {% extends 'layout.html' %} +{% load humanize %} {% block content %}

Edit "{{ book.title }}"

- -

{% include 'snippets/book_cover.html' with book=book %}

- -
- {% csrf_token %} - {{ form.as_p }} - -
+
+ {% include 'snippets/book_cover.html' with book=book size="small" %} +

Added: {{ book.created_date | naturaltime }}

+

Updated: {{ book.updated_date | naturaltime }}

+
+ +
+ {% csrf_token %} +

Data sync + If sync is enabled, any changes will be over-written +

+
+
+

+

+
+
+ +

Cover

+
+

{{ form.cover }}

+
+ +

Book Identifiers

+
+

{{ form.fedireads_key }}

+

{{ form.openlibrary_key }}

+

{{ form.librarything_key }}

+

{{ form.goodreads_key }}

+
+ +

Metadata

+
+

{{ form.title }}

+

{{ form.sort_title }}

+

{{ form.subtitle }}

+

{{ form.description }}

+

{{ form.language }}

+

{{ form.series }}

+

{{ form.series_number }}

+

{{ form.first_published_date }}

+

{{ form.published_date }}

+
+ +
+ {% endblock %}