changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now & notes/blurb save too
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block main_content %}
|
{% block main_content %}
|
||||||
|
|
||||||
<h3>All Books</h1>
|
<h3>All Books</h1>
|
||||||
<table id="book_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
|
<table id="book_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -14,7 +15,7 @@
|
|||||||
<td data-sort="{{book.id}}"><a href="/book/{{book.id}}">{{book.title}}</a></td>
|
<td data-sort="{{book.id}}"><a href="/book/{{book.id}}">{{book.title}}</a></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>{{ book.author[0]['surname'] }}, {{book.author[0]['firstnames']}}</td>
|
<td>{{ book.author[0]['surname'] }}, {{book.author[0]['firstnames']}}</td>
|
||||||
<td>{{ book.publisher[0]['name']}}</td>
|
<td>{{ GetPublisherById(book.publisher)}}</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
{% set cond = GetConditionById(book.condition) %}
|
{% set cond = GetConditionById(book.condition) %}
|
||||||
{% if cond == "Good" %}
|
{% if cond == "Good" %}
|
||||||
|
|||||||
Reference in New Issue
Block a user