Browse Source

changes to book display

joel
Simon Bowie 1 year ago
parent
commit
ef5a577ff3
2 changed files with 11 additions and 23 deletions
  1. +0
    -1
      web/app/templates/base.html
  2. +11
    -22
      web/app/templates/book.html

+ 0
- 1
web/app/templates/base.html View File

# Bootstrap 5.1.3: https://getbootstrap.com/ # Bootstrap 5.1.3: https://getbootstrap.com/
# Flask-Moment: https://flask-moment.readthedocs.io/en/latest/ # Flask-Moment: https://flask-moment.readthedocs.io/en/latest/
# Boostrap select: https://stackoverflow.com/questions/67942546/bootstrap-5-select-dropdown-with-the-multiple-attribute-collapsed # Boostrap select: https://stackoverflow.com/questions/67942546/bootstrap-5-select-dropdown-with-the-multiple-attribute-collapsed

--> -->


<!DOCTYPE html> <!DOCTYPE html>

+ 11
- 22
web/app/templates/book.html View File

{% if book['desc'] %} {% if book['desc'] %}
<tr> <tr>
<th> <th>
Summary:
Publisher's description:
</th> </th>
<td> <td>
{{ book['desc'] }} {{ book['desc'] }}
</td> </td>
</tr> </tr>
{% else %}
{% if resource['description'] %}
<tr>
<th>
Summary:
</th>
<td>
{{ resource['description'] }}
</td>
</tr>
{% endif %}
{% endif %} {% endif %}
{% else %} {% else %}
<!-- fields for books from database --> <!-- fields for books from database -->
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% if resource['description'] %}
<tr>
<th>
Summary:
</th>
<td>
{{ resource['description'] }}
</td>
</tr>
{% endif %}
{% endif %}
{% if resource['description'] %}
<tr>
<th>
Experimental aspects:
</th>
<td>
{{ resource['description'] }}
</td>
</tr>
{% endif %} {% endif %}
</tbody> </tbody>
</table> </table>

Loading…
Cancel
Save