|
|
@ -1,12 +1,8 @@ |
|
|
|
{% extends "base.html" %} |
|
|
|
|
|
|
|
{% block title %}Red link page{% endblock %} |
|
|
|
|
|
|
|
{% block css %} |
|
|
|
<style type="text/css"> |
|
|
|
body{ |
|
|
|
padding-top: 20px; |
|
|
|
} |
|
|
|
h1, p{ |
|
|
|
text-align:left; |
|
|
|
} |
|
|
@ -21,11 +17,9 @@ |
|
|
|
</style> |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block header %}{% endblock %} |
|
|
|
|
|
|
|
{% block main %} |
|
|
|
<h1>Nothing in the library yet with: {{ title }}</h1> |
|
|
|
<h2>Add this potential book:</h2> |
|
|
|
<br> |
|
|
|
<div class="container"> |
|
|
|
{% with messages = get_flashed_messages() %} |
|
|
|
{% if messages %} |
|
|
@ -38,13 +32,19 @@ |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endwith %} |
|
|
|
<div style="width: 200px:" |
|
|
|
<div style="width: 220px; float: left; padding-right: 40px;"> |
|
|
|
<img class="no_cover" width="220" src = '/static/img/default_cover.gif';"> |
|
|
|
</div> |
|
|
|
<br> |
|
|
|
<div> |
|
|
|
<h2>Add this potential book:</h2> |
|
|
|
|
|
|
|
<form method="POST" action="{{ url_for('add_book') }}" enctype=multipart/form-data> |
|
|
|
{{ form.csrf_token }} |
|
|
|
<div class="form-group">{{ form.title.label }} {{ form.title(size=20, class="form-control") }}</div> |
|
|
|
<div class="form-group">Title: {{ form.title (size=34, class="form-control") }}</div> |
|
|
|
<br> |
|
|
|
<div data-toggle="fieldset" id="phone-fieldset"> |
|
|
|
{{ form.author.label }} <button type="button" data-toggle="fieldset-add-row" |
|
|
|
Author(s): <button type="button" data-toggle="fieldset-add-row" |
|
|
|
data-target="#phone-fieldset">+</button> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
@ -53,14 +53,17 @@ |
|
|
|
</tr> |
|
|
|
{% for author in form.author %} |
|
|
|
<tr data-toggle="fieldset-entry"> |
|
|
|
<td>{{ author.author_name }}</td> |
|
|
|
<td>{{ author.author_name (size=40)}}</td> |
|
|
|
<td><button type="button" data-toggle="fieldset-remove-row" id="phone-{{loop.index0}}-remove">-</button></td> |
|
|
|
</tr> |
|
|
|
{% endfor %} |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
<br> |
|
|
|
<div class="form-group">Category: {{ form.category(size=27, class="form-control") }}</div> |
|
|
|
<br> |
|
|
|
<div class="form-group">{{ form.category.label }} {{ form.category(size=20, class="form-control") }}</div> |
|
|
|
{{ form.file }} |
|
|
|
{{ form.upload }} |
|
|
|
{{ form.wish }} |
|
|
|