moviewyrm/fedireads/templates/edit_book.html

74 lines
2.8 KiB
HTML
Raw Normal View History

2020-03-28 22:06:16 +00:00
{% extends 'layout.html' %}
2020-03-30 00:02:17 +00:00
{% load humanize %}
2020-03-28 22:06:16 +00:00
{% block content %}
<div class="content-container">
2020-04-03 19:43:49 +00:00
<h2>
Edit "{{ book.title }}"
2020-05-04 00:53:14 +00:00
<a href="/book/{{ book.id }}">
2020-04-03 19:43:49 +00:00
<span class="edit-link icon icon-close">
<span class="hidden-text">Close</span>
</span>
</a>
</h2>
<div class="book-preview row">
<div class="cover-container">
{% include 'snippets/book_cover.html' with book=book size="small" %}
</div>
<div>
<p>Added: {{ book.created_date | naturaltime }}</p>
<p>Updated: {{ book.updated_date | naturaltime }}</p>
</div>
2020-03-30 00:02:17 +00:00
</div>
</div>
2020-03-28 22:06:16 +00:00
2020-03-30 00:02:17 +00:00
<form class="book-form content-container" name="edit-book" action="/edit_book/{{ book.id }}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<h3>Data sync
<small>If sync is enabled, any changes will be over-written</small>
</h3>
<div>
<div class="row">
<p><label for="id_sync">Sync:</label> <input type="checkbox" name="sync" id="id_sync"></p>
<p><label for="id_sync_cover">Sync cover:</label> <input type="checkbox" name="sync_cover" id="id_sync_cover"></p>
</div>
</div>
<h3>Cover</h3>
<div class="image-form">
<p>{{ form.cover }} </p>
</div>
<h3>Book Identifiers</h2>
<div>
2020-05-04 00:53:14 +00:00
<p><label for="id_isbn_13">ISBN 13:</label> {{ form.isbn_13 }} </p>
<p><label for="id_isbn_10">ISBN 10:</label> {{ form.isbn_10 }} </p>
2020-03-30 00:02:17 +00:00
<p><label for="id_openlibrary_key">Openlibrary key:</label> {{ form.openlibrary_key }} </p>
<p><label for="id_librarything_key">Librarything key:</label> {{ form.librarything_key }} </p>
<p><label for="id_goodreads_key">Goodreads key:</label> {{ form.goodreads_key }} </p>
</div>
2020-04-02 15:44:53 +00:00
<h3>Physical Properties</h3>
<div>
<p><label for="id_physical_format">Format:</label> {{ form.physical_format }} </p>
<p><label for="id_pages">Pages:</label> {{ form.pages }} </p>
</div>
2020-03-30 00:02:17 +00:00
<h3>Metadata</h3>
<div>
<p><label for="id_title">Title:</label> {{ form.title }} </p>
<p><label for="id_sort_title">Sort title:</label> {{ form.sort_title }} </p>
<p><label for="id_subtitle">Subtitle:</label> {{ form.subtitle }} </p>
<p><label for="id_description">Description:</label> {{ form.description }} </p>
<p><label for="id_series">Series:</label> {{ form.series }} </p>
<p><label for="id_series_number">Series number:</label> {{ form.series_number }} </p>
<p><label for="id_first_published_date">First published date:</label> {{ form.first_published_date }} </p>
<p><label for="id_published_date">Published date:</label> {{ form.published_date }} </p>
</div>
<div>
<button type="submit">Save</button>
</div>
2020-03-30 00:02:17 +00:00
</form>
2020-03-28 22:06:16 +00:00
{% endblock %}