- <html>
- <title>MovieLib</title>
- <body>
- <h1>Your Movie list</h1>
- <form method="POST">
- <input name="movie-title" id="input-new-movie" placeholder="Enter a movie title" />
- {% csrf_token %}
- </form>
- <table id="movie-table">
- {% for movie in movies %}
- <tr><td>{{ forloop.counter }}: {{ movie.title }}</td></tr>
- {% endfor %}
- </table>
- </body>
- </html>
|