Files
flask_url_shortener/tiny0/templates/index.html
T

25 lines
669 B
HTML
Raw Normal View History

2020-07-18 16:40:51 +00:00
{% extends "layout.html" %}
{% block body %}
2020-08-24 15:25:42 +03:00
<form method="POST" action="" class="url-form">
<h1>&#60 URL Shortener &#62</h1>
{{ form.hidden_tag() }}
2020-08-26 11:13:50 +03:00
{{ form.url(placeholder="Enter the URL here", autofocus=true, class="feedback-input") }}
<div class="token">
<h3>tiny0.cc/</h3>
{{ form.token(placeholder="Use custom alias (optional)", class="feedback-input") }}
2020-08-22 15:36:09 +03:00
</div>
2020-08-24 15:25:42 +03:00
{{ form.submit(class="button") }}
{% if form.errors %}
<div class="form-errors">
{% for error in form.url.errors %}
<h4>{{ error }}</h4>
{% endfor %}
{% for error in form.token.errors %}
<h4>{{ error }}</h4>
{% endfor %}
</div>
{% endif %}
</form>
2020-07-18 16:40:51 +00:00
{% endblock %}