home.html 421 B

12345678910111213141516
  1. <html>
  2. <title>MovieLib</title>
  3. <body>
  4. <h1>Your Movie list</h1>
  5. <form method="POST">
  6. <input name="movie-title" id="input-new-movie" placeholder="Enter a movie title" />
  7. {% csrf_token %}
  8. </form>
  9. <table id="movie-table">
  10. {% for movie in movies %}
  11. <tr><td>{{ forloop.counter }}: {{ movie.title }}</td></tr>
  12. {% endfor %}
  13. </table>
  14. </body>
  15. </html>