add "loan" to spreadsheet and represent in UI

This commit is contained in:
David 2017-09-03 15:51:54 -04:00
parent 6597e52772
commit 5533ccd17b
2 changed files with 18 additions and 3 deletions

View File

@ -107,6 +107,10 @@
cursor: pointer;
}
.bookTable .onLoan {
color: #bbb;
}
.bookTable .tRow .title {
font-style: italic;
max-width: 600px;
@ -133,4 +137,12 @@
#current .description p {
padding: 20px 0;
}
#current h1.onLoan {
color: #bbb;
}
#current h2.onLoan {
font-weight: bold;
}

View File

@ -141,7 +141,7 @@
<th class="tHeader isbn">ISBN</th>
</tr>
{{#books}}
<tr class="tRow" id="{{rowNumber}}">
<tr class="tRow {{#onLoan}}onLoan{{/onLoan}}" id="{{rowNumber}}">
<td class="title">{{title}}
{{#signed}}<span class="signed" title="Signed by the author"></span>{{/signed}}</td>
<td class="author">{{author}}</td>
@ -156,9 +156,9 @@
<script id="View" type="text/html">
{{#book}}
{{#coverurl}}
<img src="{{coverurl}}"/>
<img src="{{coverurl}}"/>
{{/coverurl}}
<h1>{{title}}</h1>
<h1 {{#onLoan}}class="onLoan" {{/onLoan}}>{{title}}</h1>
<h2>{{author}}</h2>
<span>{{isbn-13}}</span><br/>
<span>{{publisher}}, {{year}}</span><br/>
@ -169,6 +169,9 @@
<span>Signed by the author ✒</span><br/>
{{/signed}}
<span>{{format}}</span>
{{#onLoan}}
<h2 class="onLoan">On loan to {{onLoan}}</h2>
{{/onLoan}}
<div class="description">
<p>{{description}}</p>
{{#notes}}