moviewyrm/bookwyrm/templates/edit_book.html

87 lines
4.2 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 %}
2020-09-30 03:36:43 +00:00
<div class="block">
<div class="level">
2020-11-09 20:06:44 +00:00
<h1 class="title level-left">
2020-09-30 03:36:43 +00:00
Edit "{{ book.title }}"
2020-11-09 20:06:44 +00:00
</h1>
2020-09-30 03:36:43 +00:00
<div class="level-right">
<a href="/book/{{ book.id }}">
<span class="edit-link icon icon-close">
2020-09-30 22:10:37 +00:00
<span class="is-sr-only">Close</span>
2020-09-30 03:36:43 +00:00
</span>
</a>
</div>
</div>
<div class="columns">
<div class="column is-narrow">
2020-04-03 19:43:49 +00:00
{% include 'snippets/book_cover.html' with book=book size="small" %}
</div>
2020-09-30 03:36:43 +00:00
<div class="column is-narrow">
2020-04-03 19:43:49 +00:00
<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-09-30 03:36:43 +00:00
<form class="block" name="edit-book" action="/edit_book/{{ book.id }}" method="post" enctype="multipart/form-data">
2020-03-30 00:02:17 +00:00
{% csrf_token %}
2020-09-30 03:36:43 +00:00
<div class="block">
<h3 class="title is-4">Data sync</h3>
<h4 class="subtitle is-5">If sync is enabled, any changes will be over-written</h4>
</h3>
<div class="columns">
<div class="column is-narrow">
<label class="checkbox" for="id_sync"><input class="checkbox" type="checkbox" name="sync" id="id_sync"> Sync</label>
</div>
<div class="column is-narrow">
<label class="checkbox" for="id_sync_cover"><input class="checkbox" type="checkbox" name="sync_cover" id="id_sync_cover"> Sync cover</label>
</div>
2020-03-30 00:02:17 +00:00
</div>
</div>
2020-09-30 03:36:43 +00:00
<div class="columns">
<div class="block column">
<h3 class="title is-4">Book Identifiers</h3>
<p class="fields is-grouped"><label class="label"for="id_isbn_13">ISBN 13:</label> {{ form.isbn_13 }} </p>
<p class="fields is-grouped"><label class="label"for="id_isbn_10">ISBN 10:</label> {{ form.isbn_10 }} </p>
<p class="fields is-grouped"><label class="label"for="id_openlibrary_key">Openlibrary key:</label> {{ form.openlibrary_key }} </p>
<p class="fields is-grouped"><label class="label"for="id_librarything_key">Librarything key:</label> {{ form.librarything_key }} </p>
<p class="fields is-grouped"><label class="label"for="id_goodreads_key">Goodreads key:</label> {{ form.goodreads_key }} </p>
</div>
2020-03-30 00:02:17 +00:00
2020-09-30 03:36:43 +00:00
<div class="column">
<div class="block">
<h3 class="title is-4">Cover</h3>
<p>{{ form.cover }} </p>
</div>
2020-03-30 00:02:17 +00:00
2020-09-30 03:36:43 +00:00
<div class="block">
<h3 class="title is-4">Physical Properties</h3>
<p class="fields is-grouped"><label class="label"for="id_physical_format">Format:</label> {{ form.physical_format }} </p>
<p class="fields is-grouped"><label class="label"for="id_pages">Pages:</label> {{ form.pages }} </p>
</div>
</div>
2020-04-02 15:44:53 +00:00
</div>
2020-09-30 03:36:43 +00:00
<div class="block">
<h3 class="title is-4">Metadata</h3>
<p class="fields is-grouped"><label class="label"for="id_title">Title:</label> {{ form.title }} </p>
<p class="fields is-grouped"><label class="label"for="id_sort_title">Sort title:</label> {{ form.sort_title }} </p>
<p class="fields is-grouped"><label class="label"for="id_subtitle">Subtitle:</label> {{ form.subtitle }} </p>
<p class="fields is-grouped"><label class="label"for="id_description">Description:</label> {{ form.description }} </p>
<p class="fields is-grouped"><label class="label"for="id_series">Series:</label> {{ form.series }} </p>
<p class="fields is-grouped"><label class="label"for="id_series_number">Series number:</label> {{ form.series_number }} </p>
<p class="fields is-grouped"><label class="label"for="id_first_published_date">First published date:</label> {{ form.first_published_date }} </p>
<p class="fields is-grouped"><label class="label"for="id_published_date">Published date:</label> {{ form.published_date }} </p>
2020-03-30 00:02:17 +00:00
</div>
2020-09-30 03:36:43 +00:00
<div class="block">
<button class="button is-primary" type="submit">Save</button>
2020-11-05 20:05:29 +00:00
<a class="button is-danger is-light" href="/book/{{ book.id }}">Cancel</a>
</div>
2020-03-30 00:02:17 +00:00
</form>
2020-03-28 22:06:16 +00:00
{% endblock %}