Template source: index.html

{% extends "base.html" %} {% block title %}Index{% endblock %} {% block metadata %} <!--suppress HtmlUnknownTarget --> <meta charset="utf-8"> <meta name="description" content="Index"> <!-- other html tags here --> {% endblock %} {% block content %} <script type="application/javascript"> $(window).bind("pageshow", function(event) { if (event.originalEvent.persisted) { window.location.reload(); } }); </script> <h2>Choose the website you'd like to see</h2> <form action="event/website" method="post"> {% csrf_token %} <select multiple size ={{ count }} name="chosen" id="chosen"> # Count makes the multiple list the right size {% for website in website_list %} <!-- For loop shows all the possible websites for user to choose from --> <option value="{{website}}">{{ website }}<br></option> {% endfor %} </select> <p>Hold down the Ctrl (windows) / Command (Mac) button to select multiple options.</p> <input type="submit" value="Save"> </form> <br><br> <p><a href = {% url "list" %}>Display List</a></p> <p><a href="http://127.0.0.1:8000/admin/">Django Admin Hard Drive</a></p> <p><a href="http://www.untangledweb.com/admin/login/?next=/admin/">Django Admin PythonAnywhere</a></p> <p><a href={% url "flush" %}>Flush the Database</a></p> {% endblock content %}