You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
929 B
32 lines
929 B
<class>
|
|
<div class="card-header">
|
|
<div id='title'> { dept } { title } </div>
|
|
<div id='prof'> { prof } </div>
|
|
<div id='sem'> { sem } </div>
|
|
</div>
|
|
<div if={ books } class="card-body">
|
|
<button onclick={ makeShow(this) } class="btn btn-primary show-button">
|
|
<strong>Show Textbooks</strong>
|
|
</button>
|
|
<div if={ showBooks }>
|
|
<dl>
|
|
<book each={ books }
|
|
data="{ this }"
|
|
resources=""
|
|
title={ booktitle }
|
|
author={ bookauthor }
|
|
price={ bookprice }>
|
|
</book>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<div class="toast" if={ !books }>
|
|
<p>No books at this time</p>
|
|
<p>Check back later, or verify the course has books</p>
|
|
</div>
|
|
</class>
|
|
|
|
<script>
|
|
this.showBooks = false;
|
|
this.update();
|
|
</script>
|
|
|