-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix : no permitir duplicados en temporadas altas en hotel #97
- Loading branch information
1 parent
cf5242d
commit 99d96ba
Showing
3 changed files
with
179 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
188 changes: 158 additions & 30 deletions
188
hotel/templates/hotel/modals/modal_temporadaHotel_crear.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,160 @@ | ||
{{formulario.media}} | ||
<div class="modal-xl modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="exampleModalLabel">AÑADIR TEMPORADA</h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span>×</span> | ||
</button> | ||
|
||
|
||
{% load static %} | ||
|
||
<html> | ||
|
||
<head> | ||
<link rel="icon" type="image/png" href="/static/icons/hotelIco.png"> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<!--SWEET ALERT CSS--> | ||
<link rel="stylesheet" href="{% static '/css/sweetalert2.css' %}"> | ||
<!--BOOTSTRAP CSS--> | ||
<link rel="stylesheet" href="{% static '/css/bootstrap.min.css' %}"> | ||
|
||
<!-- Bootstrap CSS para datatable--> | ||
<link rel="stylesheet" href="{% static '/css/bootstrap.css' %}"> | ||
<link rel="stylesheet" href="{% static '/css/dataTables.bootstrap4.min.css' %}"> | ||
<!-- Bootstrap CSS para datatable--> | ||
|
||
<!-- FONTAWESOME --> | ||
<script src="{% static '/js/d91d4c71ff.js' %}"></script> | ||
|
||
<!--CUSTOM CSS--> | ||
<link rel="stylesheet" href="{% static '/css/styleBase.css' %}"> | ||
<link rel="stylesheet" href="{% static '/css/modal.css' %}"> | ||
<link rel="stylesheet" href="{% static '/css/botones.css' %}"> | ||
|
||
|
||
{% block extra_css %} | ||
|
||
{% endblock extra_css %} | ||
</head> | ||
|
||
<body class="bodyComplete"> | ||
|
||
|
||
<!-- HEADER --> | ||
<div class="container-fluid mainHeader p-3 fixed-top"> | ||
<div class="row"> | ||
<div class="col-2"> | ||
{% block header %} | ||
|
||
{% endblock header %} | ||
|
||
</div> | ||
<div class="col-8"> | ||
{% block headerContenido %} | ||
{% endblock headerContenido %} | ||
|
||
{% block carrito %} | ||
{% endblock carrito %} | ||
</div> | ||
<div class="col-2"> | ||
|
||
<button onclick="location.href='/core/logout'" style="text-decoration:none; align-items:right;" | ||
class="rounded-1 btn btn-lg btn-outline-secondary text-white float-center mt-1 "> Cerrar Sesion | ||
</button> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
<form action="{% url 'hotel:modalCrearTemporadaHotel' hotel.pk %}" method="POST"> | ||
<div class="modal-body"> | ||
{% csrf_token %} | ||
{{formulario}} | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="dismiss" class="cerrar" data-dismiss="modal"> | ||
Cerrar | ||
</button> | ||
<button type="submit" name="accion" class="guardar" value="hotel"> | ||
Guardar | ||
</button> | ||
|
||
<!-- opciones + contenido --> | ||
<div class="container-fluid position-fixed" style="top: 100px;"> | ||
<!-- CONTENIDO --> | ||
<div class="col-12 position-relative " id="main" > | ||
<div class="modal-xl modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="exampleModalLabel">AÑADIR TEMPORADA</h5> | ||
<a type="button" class="close" data-dismiss="modal" aria-label="Close" href="{% url 'hotel:temporadaHotel' hotel.pk %}"> | ||
<span aria-hidden="true">×</span> | ||
</a> | ||
</div> | ||
<form action="{% url 'hotel:modalCrearTemporadaHotel' hotel.pk %}" method="POST"> | ||
<div class="modal-body" style="max-height: 400px; overflow-y: auto;"> | ||
{% csrf_token %} | ||
{{formulario}} | ||
</div> | ||
<div class="modal-footer"> | ||
<a href="{% url 'hotel:temporadaHotel' hotel.pk %}">Cerrar</a> | ||
<button type="submit" name="accion" class="guardar" value="hotel"> | ||
Guardar | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('.datepicker').datetimepicker(); | ||
$(".datepicker").datetimepicker({ sideBySide: true, format: 'DD/MM/YYYY'}) | ||
}); | ||
</script> | ||
</div> | ||
|
||
|
||
<!-- Footer --> | ||
<div class="footer text-center mb-0 fixed-bottom"> | ||
<div class="container"> | ||
{% block footer %} | ||
|
||
{% endblock footer %} | ||
<p class="m-0 mbt1 text-white">© UNPSJB - GRUPO 1 - DESARROLLO DE SOFTWARE</p> | ||
</div> | ||
</div> | ||
|
||
|
||
<!--sweet alert2--> | ||
|
||
<script src="{% static '/js/[email protected]' %}"></script> | ||
|
||
<!-- Bootstrap 4.5--> | ||
<script src="{% static '/js/jquery-3.5.1.js' %}"></script> | ||
<script src="{% static '/js/bootstrap.bundle.js' %}"></script> | ||
|
||
<script src="{% static '/js/bootstrap-datetimepicker.min.js' %}"></script> | ||
|
||
<!--dataTable jquery + bootstrap + popper include--> | ||
<script src="{% static 'js/jquery.dataTables.min.js'%}"></script> | ||
<script src="{% static '/js/dataTables.bootstrap4.min.js'%}"></script> | ||
|
||
<!--scripts personalizados--> | ||
<script src="{% static '/js/main.js' %}"></script> | ||
|
||
<!--sweet alert2--> | ||
<script src="{% static '/js/[email protected]' %}"></script> | ||
|
||
|
||
|
||
<!--dataTable jquery + bootstrap + popper include--> | ||
<script src="{% static '/js/jquery.dataTables.min.js'%}"></script> | ||
<script src="{% static '/js/dataTables.bootstrap4.min.js'%}"></script> | ||
|
||
|
||
<!--scripts personalizados--> | ||
|
||
<script src="{% static '/js/main.js' %}"></script> | ||
|
||
<!--CUSTOM CSS--> | ||
<link rel="stylesheet" href="{% static '/css/styleBase.css' %}"> | ||
<link rel="stylesheet" href="{% static '/css/modal.css' %}"> | ||
<link rel="stylesheet" href="{% static '/css/botones.css' %}"> | ||
|
||
{% block extrajs %} | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('.datepicker').datetimepicker(); | ||
$(".datepicker").datetimepicker({ sideBySide: true, format: 'DD/MM/YYYY' }) | ||
}); | ||
</script> | ||
{% endblock %} | ||
|
||
</body> | ||
|
||
|
||
</html> | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters