Update form UI

This commit is contained in:
Gabriel Augendre 2021-05-29 16:34:01 +02:00
parent 0cadd7e5b3
commit f6912beb59

View file

@ -1,14 +1,20 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1>Welcome!</h1> <h1>Shorten urls</h1>
<p>Welcome to the URL shortener.</p> <p>Welcome to the URL shortener.</p>
<form action="{{ url_for("shorten_url") }}" method="post"> <form action="{{ url_for("shorten_url") }}" method="post">
<label for="short_code">Short code</label> <p>
<input type="text" name="short_code" id="short_code"> <label for="short_code">Short code</label>
<label for="url">Url to shorten</label> <input type="text" name="short_code" id="short_code">
<input type="text" name="url" id="url"> </p>
<button type="submit">Submit</button> <p>
<button type="reset">Reset</button> <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> </form>
{% endblock %} {% endblock %}