CARGA
CARGA
This commit is contained in:
43
templates/crearpreventivo.html
Normal file
43
templates/crearpreventivo.html
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h2 class="modal-title">Crear Equipo</h2>
|
||||
<a href="javascript:location.reload()" class="btn btn-primary">Cerrar</a>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form method="POST" action="crear" class="mt-3" autocomplete="off" >
|
||||
{% csrf_token %}
|
||||
|
||||
{{ form|crispy }}
|
||||
<p>Fecha Inicio</p>
|
||||
<input name="fecha_start" type="date" id="FechaActual" class="form-control" value="" > <br>
|
||||
<p>Fecha Fin</p>
|
||||
<input name="fecha_end" type="date" id="FechaActualend" class="form-control" value="" > <br>
|
||||
|
||||
<button type="submit" class="btn btn-success">Guardar</button>
|
||||
</form>
|
||||
</div>
|
||||
<button class="btn btn-danger" type="button" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% block javascript %}
|
||||
|
||||
<script type="text/javascript">
|
||||
var fecha = new Date();
|
||||
document.getElementById("FechaActual").value = fecha.toJSON().slice(0,10);
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var fecha = new Date();
|
||||
document.getElementById("FechaActualend").value = fecha.toJSON().slice(0,10);
|
||||
</script>
|
||||
|
||||
|
||||
{% endblock javascript %}
|
||||
Reference in New Issue
Block a user