64 lines
3.3 KiB
HTML
64 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
<title>Serie TV - {{ titolo }}</title>
|
|
</head>
|
|
<body>
|
|
{% if titolo %}
|
|
<div class="container mt-4">
|
|
<div class="card">
|
|
<div class="row no-gutters">
|
|
<img class="card-img-top col-4" class="img-fluid" width="300px" height="600px" src="{{ poster }}" alt="Card image cap">
|
|
<div class="card-body col-8">
|
|
<h5 class="card-title text-center">{{ titolo }}</h5>
|
|
<p class="card-text text-center px-3">Descrizione : {{ descrizione }}.</p>
|
|
<p class="card-text text-center">Generi : {{ lista_generi }}</p>
|
|
<div class="text-center">
|
|
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#exampleModal">
|
|
Salva Serie TV / Anime
|
|
</button>
|
|
|
|
<!-- Modal -->
|
|
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="exampleModalLabel">Vuoi Salvare la Serie TV / Anime nel DB?</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
Vuoi Salvare {{ titolo }}?
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">No</button>
|
|
<form action="{% url 'salva_anime' titolo=titolo descrizione=descrizione generi=lista_generi stagioni=stagioni poster=poster %}" method="GET">
|
|
<input type="submit" class="btn btn-success" value="Si,Salva la Serie TV / Anime nel Database">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% elif titolo == None %}
|
|
<div class="container mt-3">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h3>Nessun Film Trovato! Riprova!</h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
|
</body>
|
|
</html> |