added publisher list in, so publisher in book.html is about done
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% block main_content %}
|
||||
|
||||
|
||||
<h3><center>View/Edit Book</center></h1>
|
||||
{% set keys = [ 'title', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %}
|
||||
<div class="container"><div class="row"><form class="form col-lg-12">
|
||||
@@ -36,8 +37,16 @@
|
||||
<a style="color:inherit" href="{{url_for(key, id=-1)}}"><i class="fas fa-plus"></i></a>
|
||||
</button>
|
||||
</div>
|
||||
<span class="form-control col" id="{{key}}[0]">{{books[key][0].name}}
|
||||
</span>
|
||||
<select class="form-control" id="publisher">
|
||||
{% for pub in publisher_list %}
|
||||
{% set pname=pub.name %}
|
||||
<option id="{{books.publisher[0].id}}" value="{{books.publisher[0].id}}"
|
||||
{% if books.publisher[0].name == pname %}
|
||||
selected
|
||||
{% endif %}
|
||||
>{{pname}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div class="row">
|
||||
</div class="col-lg-10">
|
||||
{% elif key == "author" %}
|
||||
|
||||
Reference in New Issue
Block a user