| 1 | {% extends "base.html" %} |
| 2 | {% block title %}Add Movie{% endblock %} |
| 3 | {% block content %} |
| 4 | <h1>Add new Movie</h1> |
| 5 | {% if success == True %} |
| 6 | <p>Movie: {{ movie_name }} added successfully!</p> |
| 7 | {% elif success == False %} |
| 8 | <p>Failed to add movie. {{ error }}. <br> |
| 9 | Please try again.</p> |
| 10 | {% elif success == None %} |
| 11 | {% endif %} |
| 12 | <form action="/movies/new" method="POST"> |
| 13 | <label for="name">Name:</label> |
| 14 | <input type="text" id="name" name="name" required> |
| 15 | <button type="submit">Add Movie</button> |
| 16 | </form> |
| 17 | {% endblock %} |