Created
April 25, 2021 08:23
-
-
Save mmdbalkhi/5670f158c14581a2aed0a3bcb04b95d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html' %} | |
{% block content %} | |
<h1>{% block title %} MozLink! {% endblock %}</h1> | |
<form method="post"> | |
<div class="form-group"> | |
<label for="url">URL</label> | |
<input type="text" name="url" placeholder="URL to shorten" class="form-control" | |
value="{{ request.form['url'] }}" autofocus></input> | |
</div> | |
<div align="center" class="form-group"> | |
<button type="submit" class="btn btn-outline-success">Submit</button> | |
</div> | |
</form> | |
{% if short_url %} | |
<hr> | |
<span>Your short link is {{ short_url }}</span> | |
{% endif %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment