Changed the UI of creating custom tokens

This commit is contained in:
xemeds
2020-08-26 11:13:50 +03:00
parent 661bfb3e46
commit c2a6e61ea0
3 changed files with 14 additions and 44 deletions
+4 -5
View File
@@ -4,11 +4,10 @@
<form method="POST" action="" class="url-form">
<h1>&#60 URL Shortener &#62</h1>
{{ form.hidden_tag() }}
{{ form.url(placeholder="Enter the URL here", autofocus=true, class="feedback-input") }}
{{ form.token(placeholder="Enter the token (optional)", class="feedback-input") }}
<div class="tooltip">
What's a token?
<span class="tooltiptext"><p>tiny0.cc/token</p><p>Token must be between 6 and 16 characters long</p><p>It can only contain letters, numbers, underscores(_) and dashes(-)</p></span>
{{ 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") }}
</div>
{{ form.submit(class="button") }}
{% if form.errors %}