| 1 | {% extends "base.html" %} |
| 2 | {% block title %}{{user.name}} - Movie Recommendation{% endblock %} |
| 3 | {% block content %} |
| 4 | <h1 class="title" style="text-align: center;">{{user.name}} - Movie Recommendation</h1> |
| 5 | |
| 6 | <img height="200" alt="{{ movie.title }}" src="{{ movie.poster }}"> |
| 7 | <ul><li>{{ movie.title }} ({{ movie.year }})</li> |
| 8 | <li>Director: {{ movie.director }}</li> |
| 9 | <li>Imdb: {{ movie.imdb }} </li> |
| 10 | <li>Plot: {{ movie.plot }}</li> |
| 11 | <li>Country: {{ movie.country }}</li> |
| 12 | <li>Genre: {{ movie.genre }}</li> |
| 13 | <li>Reasoning: {{ reasoning }}</li> |
| 14 | </ul> |
| 15 | <button type="submit" class="back_button"><a href="/users/{{user.id}}">Back</a></button> |
| 16 | <form action="/users/{{user.id}}" method="POST"> |
| 17 | <button type="submit" id = "name" name = "name" value="{{ movie.title }}"> |
| 18 | Add to {{user.name}} Movies List</button> |
| 19 | </form> |
| 20 | <form action="/users/{{user.id}}/recommend_movie" method="POST"> |
| 21 | <button type="submit" id = "name" name = "name" value="{{ movie.title }}">Recommend different Movie</button> |
| 22 | </form> |
| 23 | |
| 24 | {% endblock %} |