You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
XPPL/app/templates/red_link.html

77 lines
2.0 KiB
HTML

7 years ago
{% extends "base.html" %}
{% block css %}
<style type="text/css">
h1, p{
text-align:left;
7 years ago
}
h1{
font-size:44px;
margin:40px 0 30px;
7 years ago
}
p{
font-size:14px;
margin:15px 0;
}
</style>
{% endblock %}
{% block main %}
<h1>Nothing in the library yet with: {{ title }}</h1>
<br>
7 years ago
<div class="container">
{% with messages = get_flashed_messages() %}
{% if messages %}
<div class="alert alert-danger">
<ul>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endwith %}
<div style="width: 220px; float: left; padding-right: 40px;">
7 years ago
<img class="no_cover" width="220" src = '/static/img/default_cover.gif';>
</div>
<br>
<div>
<h2>Add this potential book:</h2>
7 years ago
<form method="POST" action="{{ url_for('add_book') }}" enctype=multipart/form-data>
{{ form.csrf_token }}
<div class="form-group">Title: {{ form.title (size=34, class="form-control") }}</div>
7 years ago
<br>
<div data-toggle="fieldset" id="phone-fieldset">
Author(s): <button type="button" data-toggle="fieldset-add-row"
7 years ago
data-target="#phone-fieldset">+</button>
<table>
<tr>
<th></th>
<th></th>
</tr>
{% for author in form.author %}
<tr data-toggle="fieldset-entry">
<td>{{ author.author_name (size=40)}}</td>
7 years ago
<td><button type="button" data-toggle="fieldset-remove-row" id="phone-{{loop.index0}}-remove">-</button></td>
</tr>
{% endfor %}
</table>
</div>
</div>
7 years ago
<div style="padding-left:10px;">
Category: {{ form.category(size=27, class="form-control") }}
<br>
7 years ago
<br>
Year published: {{ form.year_published(size=8, class="form-control") }}
7 years ago
<br>
{{ form.file }}
7 years ago
{{ form.upload }}
{{ form.wish }}
7 years ago
</form>
<br>
<p><a href="{{ url_for('home') }}" style="font-size: 9pt;>go back home</a>?</p>
7 years ago
</div>
7 years ago
{% endblock %}