2015-10-05 13:52:19 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
2015-10-05 13:53:53 +01:00
|
|
|
<div class="container centered">
|
2015-10-05 13:26:13 +01:00
|
|
|
<div class="row">
|
2015-10-05 15:56:59 +01:00
|
|
|
<div class="col-md-4 text-center"><h2>炎の亀</h2> <span class="label label-primary">BETA</span>
|
2015-10-05 13:26:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-05 13:53:53 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
2015-10-07 03:06:59 +01:00
|
|
|
<img class="padded" src="{{ url_for('static', filename='burned.png')}}" alt="Turtle with fire icon on back">
|
2015-10-05 13:53:53 +01:00
|
|
|
</div>
|
2015-10-07 03:06:59 +01:00
|
|
|
<form id="submissionform" role="form" class="col-md-8 form-group" method="POST" action="/">
|
2015-10-05 13:53:53 +01:00
|
|
|
<div class="input-group">
|
|
|
|
{{ form.csrf_token }}
|
|
|
|
{{ form.api_key(**{'class':'form-control','placeholder':'Insert API Key'}) }}
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button id="submitbutton" class="btn btn-default" type="submit">Go!</button>
|
|
|
|
</span>
|
2015-10-04 02:41:16 +01:00
|
|
|
</div>
|
2015-10-05 13:53:53 +01:00
|
|
|
</form>
|
|
|
|
<div class="col-md-8">
|
|
|
|
{% for error in form.api_key.errors %}
|
|
|
|
<div class="alert alert-warning alert-dismissible" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
{{ error }}
|
2015-10-04 02:41:16 +01:00
|
|
|
</div>
|
2015-10-05 13:53:53 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
|
|
{% if messages %}
|
|
|
|
{% for category, message in messages %}
|
|
|
|
<div class="alert alert-danger alert-dismissible" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
{{ message }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
2015-10-04 02:41:16 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-05 13:53:53 +01:00
|
|
|
</div>
|
2015-10-05 13:52:19 +01:00
|
|
|
{% endblock %}
|