Add the ability to redirect to the resulting link, some styling
[bigly] / src / bigly / templates / bigly / index.html
1 {% extends 'bigly/_base.html' %}
2 {% load static %}
3
4 {% block body %}
5 <h1>bigly</h1>
6 <h2>make links big again</h2>
7
8 <form action='{% url "embiggen" %}' method='get'>
9   <input type='url' name='link' autofocus></input>
10   <label for='link'>Link</label>
11   <span>
12     <input type='checkbox' name='remove_utm' checked></input>
13     <label for='remove_utm'>Remove UTM Parameters</label>
14   </span>
15   <span>
16     <input type='radio' name='handler' value='display' checked></input>
17     <label for='display'>Display link information</label>
18     <input type='radio' name='handler' value='redirect'></input>
19     <label for='redirect'>Redirect to link</label>
20   </span>
21   <input type='submit' value='Embiggen'></input>
22 </form>
23
24 <script src='{% static "bigly/scripts.js" %}'></script>
25 {% endblock %}
26