44 lines
2.2 KiB
HTML
44 lines
2.2 KiB
HTML
{% extends "layout.html" %}
|
|
{% block content %}
|
|
<div class="container centered">
|
|
<div class="row">
|
|
<div class="col-md-4 text-center"><h2>炎の亀</h2> <span class="label label-primary">BETA</span>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4 col-xs-12 text-center">
|
|
<img class="padded" src="{{ url_for('static', filename='burned.png')}}" alt="Turtle with fire icon on back">
|
|
</div>
|
|
<div class="col-md-8 col-xs-12">
|
|
<form id="submissionform" role="form" class="form-group" method="POST" action="/">
|
|
<div class="input-group">
|
|
{{ form.csrf_token }}
|
|
{{ form.api_key(**{'class':'form-control','placeholder':'Insert API Key (or WK Username if you have used this before)'}) }}
|
|
<span class="input-group-btn">
|
|
<button id="submitbutton" class="btn btn-default" type="submit">Go!</button>
|
|
</span>
|
|
</div>
|
|
</form>
|
|
<div class="navbar-text"><a href="https://www.wanikani.com/account"><img alt="WaniKani" src="{{ url_for('static', filename='wanikani.png') }}"> WaniKani Account (Get API key from here!)</a></div>
|
|
</div>
|
|
<div class="col-md-8 col-xs-12">
|
|
{% 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 }}
|
|
</div>
|
|
{% 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 %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |