{% 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_superuser %}
            <a href="{% url 'crear_pieza' %}" class="btn btn-primary float-left" >Ingresar Referencia</a>
            {% endif %}
                       
        

            <div class="col-md-12">
              <a href="{% url 'inv_equipo' %}" class="btn btn-info float-left" >Inventario</a>
            </div>

            <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"> Sistema de Inventario</p>
                </div>

                <div class="card-body">
                  <form method="POST" action="" class="mt-3" autocomplete="off" >
                    {% csrf_token %}
                    {{ form|crispy }}
                    <button type="submit" class="btn btn-success">Guardar</button>
                  </form>
                </div>


              </div>
            </div>
            
            
          </div>
        </div>
      </div>

      {% endblock content %}

      