21 lines
602 B
HTML
21 lines
602 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<h1>Shorten urls</h1>
|
|
<p>Welcome to the URL shortener.</p>
|
|
<form action="{{ url_for("shorten_url") }}" method="post">
|
|
<p>
|
|
<label for="short_code">Short code</label>
|
|
<input type="text" name="short_code" id="short_code">
|
|
</p>
|
|
<p>
|
|
<label for="url">Url to shorten</label>
|
|
<input type="text" name="url" id="url">
|
|
</p>
|
|
<p>
|
|
<button type="submit">Submit</button>
|
|
<button type="reset">Reset</button>
|
|
</p>
|
|
</form>
|
|
{% endblock %}
|