Files
flask_url_shortener/tiny0/templates/index.html
T

27 lines
877 B
HTML
Raw Normal View History

2020-07-18 16:40:51 +00:00
{% extends "layout.html" %}
{% block body %}
<form method="POST" action="" class="url-form">
2020-08-21 12:17:17 +03:00
{% if form.url.errors or form.token.errors %}
<ul class="form-error-message">
2020-08-19 16:31:22 +03:00
{% for error in form.url.errors %}
2020-08-21 12:17:17 +03:00
<li>{{ error }}</li>
{% endfor %}
{% for error in form.token.errors %}
<li>{{ error }}</li>
2020-08-19 16:31:22 +03:00
{% endfor %}
2020-08-21 12:17:17 +03:00
</ul>
{% endif %}
{{ form.hidden_tag() }}
<ul class='input-list'>
<li>{{ form.url(placeholder="Enter the URL here", autofocus=true, class="url") }}</li>
2020-08-21 12:17:17 +03:00
<li>{{ form.token(placeholder="Enter the token here (optional)", autofocus=true, class="token") }}</li>
<ul class="token-explanation">
<li>Token must be between 6 and 16 characters long</li>
<li>It can only contain letters, numbers, underscores(_) and dashes(-)</li>
</ul>
<li>{{ form.submit(class="button") }}</li>
</ul>
</form>
2020-07-18 16:40:51 +00:00
{% endblock %}