{% extends "base.html" %}

{% load static %}

{% load crispy_forms_tags %}

{% block content %}


      <!-- End Navbar -->
      <div class="content">
        <div class="container-fluid">
          <div class="row">

            

            {% if user.is_authenticated %}
            <a href="{% url 'index' %}" class="btn btn-info float-right" >Principal</a>
            <a href="{% url 'crear_servrealizado' %}" class="btn btn-info float-right" >Ingresar Servicio a una Orden</a>
            <a href="{% url 'crear_accesorios' %}" class="btn btn-info float-right" >Ingresar Accesorios a una Orden</a>
            {% endif %}
            
            <div class="col-md-12">
              <div class="card">
                <div class="card-header card-header-primary">
                  <h4 class="card-title ">Ingreso</h4>
                  <p class="card-category">Servicios</p>
                </div>

                <div class="card-body">
                  <form method="POST" action="" class="mt-3" autocomplete="off" >
                    {% csrf_token %}
                    <p>Folio</p>
                    <input name="folio" type="text" placeholder="{{ folio }}" class="form-control" value="{{ folio }}" readonly> <br>
                    <p>No Control del Equipo</p>
                    <input name="orden_n_control" type="text" placeholder="No Control del Equipo" class="form-control" > <br>
                    <p>Turno</p>
                    <input name="turno" type="text" placeholder="{{ hora }}" class="form-control" value="{{ hora }}" readonly> <br>
                    {{ form|crispy }}
                    <button type="submit" class="btn btn-success">Guardar</button>
                  </form>
                </div>
              </div>
            </div>
            
            
            
          </div>
        </div>
      </div>




      

      {% endblock content %}

      