2015-10-05 13:52:19 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
2016-03-15 21:55:30 +00:00
|
|
|
<div class="modal fade" tabindex="-1" role="dialog" id="dataInfo">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title">What information is stored about me?</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>From querying the WaniKani API, this application stores the following information.</p>
|
|
|
|
<ul>
|
|
|
|
<li>API Key</li>
|
|
|
|
<li>Username</li>
|
|
|
|
<li><a href="https://en.gravatar.com/site/implement/images/">Gravatar email hash</a></li>
|
|
|
|
<li>Your WK SRS data for Radicals, Kanji and Vocabulary</li>
|
|
|
|
</ul>
|
|
|
|
<p>This application cannot make alterations in any way to your WaniKani account or any associated data.</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default btn-primary" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
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">
|
2016-02-20 21:19:45 +00:00
|
|
|
<div class="col-md-4 col-xs-12 text-center">
|
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>
|
2016-02-20 21:19:45 +00:00
|
|
|
<div class="col-md-8 col-xs-12">
|
2015-12-24 01:01:31 +00:00
|
|
|
<form id="submissionform" role="form" class="form-group" method="POST" action="/">
|
2015-10-05 13:53:53 +01:00
|
|
|
<div class="input-group">
|
|
|
|
{{ form.csrf_token }}
|
2016-03-15 20:03:01 +00:00
|
|
|
{{ form.api_key(**{'class':'form-control','placeholder':'Insert API Key (or WK Username if you have used this before)'}) }}
|
2015-10-05 13:53:53 +01:00
|
|
|
<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>
|
2016-03-15 21:55:30 +00:00
|
|
|
<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>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<button type="button" class="btn btn-link" data-toggle="modal" data-target="#dataInfo">
|
|
|
|
What information is stored about me?
|
|
|
|
</button>
|
|
|
|
</div>
|
2015-12-24 01:01:31 +00:00
|
|
|
</div>
|
2016-02-20 21:19:45 +00:00
|
|
|
<div class="col-md-8 col-xs-12">
|
2015-10-05 13:53:53 +01:00
|
|
|
{% 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 %}
|