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

73 lines
1.9 KiB
HTML

7 years ago
{% extends "base.html" %}
{% block title %}Red link page{% endblock %}
{% block css %}
<style type="text/css">
body{
padding-top: 40px;
}
h1, p{
text-align:center;
}
h1{
font-size:44px;
margin:75px 0 50px;
}
p{
font-size:14px;
margin:15px 0;
}
</style>
{% endblock %}
{% block header %}{% endblock %}
{% block main %}
7 years ago
<h1>We don't have any results for: {{ title }}</h1>
<p><a href="{{ url_for('add_book') }}">upload</a>?</p>
7 years ago
<p><a href="{{ url_for('home') }}">go back home</a>?</p>
7 years ago
<div class="container">
<h1 class="page-header">Add Book</h1>
{% 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 %}
<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>
<br>
<div data-toggle="fieldset" id="phone-fieldset">
{{ form.author.label }} <button type="button" data-toggle="fieldset-add-row"
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 }}</td>
<td><button type="button" data-toggle="fieldset-remove-row" id="phone-{{loop.index0}}-remove">-</button></td>
</tr>
{% endfor %}
</table>
</div>
<br>
7 years ago
<div class="form-group">{{ form.category.label }} {{ form.category(size=20, class="form-control") }}</div>
7 years ago
{{ form.file }}
7 years ago
{{ form.upload }}
{{ form.wish }}
7 years ago
</form>
</div>
7 years ago
{% endblock %}