aboutsummaryrefslogtreecommitdiff
path: root/src/templates/index.html
blob: 40610d0fe45b496de5b66bcb8f43bf2002695274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% extends "templates/partials/master.html" %}
{% block content %}
<h1>Shorten a URL</h1>
<form action="/" method="post">
	<label>Title:<input name="title" value="{{ $req.Title }}" minlength="3" maxlength="64" required autofocus type="text" placeholder="Enter a title here"></label>
	<label>URL:<input type="url" placeholder="Enter the URL to shorten here" name="url" value="{{ $req.Url }}" minlength="3" maxlength="512" required></label>
	<label>Expires in:<select name="expires">
		<option value="5">5 minutes</option>
		<option value="10">10 minutes</option>
		<option value="60">1 hour</option>
		<option value="1440">1 day</option>
		<option value="10080" selected>1 week</option>
		<option value="44640">1 month</option>
		<option value="263520">6 months</option>
		<option value="527040">1 year</option>
	</select></label>
	<button type="submit">Shorten</button>
</form>
{% endblock %}