{% block stylesheets %}
<style>
fieldset
{
border: 1px solid #bbbbbb !important;
margin: 0;
min-width: 0;
padding: 10px;
position: relative;
border-radius:4px;
background-color:#f5f5f5;
}
legend
{
font-size: 15px;
font-weight: bold;
margin-bottom: 0;
width: 35%;
border: 1px solid #bbbbbb;
border-radius: 4px;
padding: 5px 5px 5px 10px;
background-color: #cecece;
}
label {
font-size: 14px;
color: #5C5A5A;
}
</style>
{% endblock %}
{# Plantilla de Twig #}
{% form_theme form 'bootstrap_4_layout.html.twig' %}
<!-- Modal with form -->
<!-- div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true" -->
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content p-4">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"><b>Modificación <small class="text-secondary">de Equipo de coómputo-- {{ equipo.idEqu }}</small></b>
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="card-body">
{{ form_start(form, {'attr': {'class': 'form-horizontal', 'id': 'form-editar-equipo'}}) }}
{# Datos del equipo #}
<fieldset>
<legend>Identificación del equipo</legend>
<div class="control-group">
<div class="row" >
<div class="col-lg">{{ form_row(form.marbete,{
'attr': {
'hidden': false,
}}) }}
</div>
<div class="col-lg">{{ form_row(form.marca) }}</div>
<div class="col-lg">{{ form_row(form.modelo) }}</div>
<div class="col-lg">{{ form_row(form.serie) }}</div>
</div>
<div class="row" disabled>
<div class="col-lg">{{ form_row(form.descripcion) }}</div>
</div>
</div>
<br>
</fieldset>
<br>
{# Hardware #}
<fieldset>
<legend>Hardware</legend>
<div class="row">
<div class="col-lg">{{ form_row(form.procesador) }}</div>
<div class="col-lg">{{ form_row(form.nucleos) }}</div>
<div class="col-lg">{{ form_row(form.cpuVelocidad) }}</div>
<div class="col-lg">{{ form_row(form.ram)}} </div>
</div>
<div class="row">
<div class="col-lg">{{ form_row(form.ip) }}</div>
<div class="col-lg">{{ form_row(form.mac) }}</div>
<div class="col-lg">{{ form_row(form.ssd) }}</div>
<div class="col-lg">{{ form_row(form.hhd) }}</div>
</div>
</fieldset>
<br>
{# Perifericos #}
<fieldset>
{# Monitor #}
<legend>Monitor</legend>
<div class="row">
<div class="col-lg">{{ form_row(form.monitorMarbete) }}</div>
<div class="col-lg">{{ form_row(form.monitorMarca) }}</div>
<div class="col-lg">{{ form_row(form.monitorModelo) }}</div>
</div>
<div class="row">
<div class="col-lg">{{ form_row(form.monitorSerie) }}</div>
<div class="col-lg">{{ form_row(form.monitorTipo) }}</div>
<div class="col-lg">{{ form_row(form.monitorPulgadas) }}</div>
</div>
</fieldset>
<br>
<fieldset>
{# Teclado #}
<legend>Teclado</legend>
<div class="row">
<div class="col-lg">{{ form_row(form.tecladoMarca) }}</div>
<div class="col-lg">{{ form_row(form.tecladoModelo) }}</div>
<div class="col-lg">{{ form_row(form.tecladoSerie) }}</div>
</div>
</fieldset>
<br>
<fieldset>
{# Mouse #}
<legend>Mouse</legend>
<div class="row">
<div class="col-lg">{{ form_row(form.mouseMarca) }}</div>
<div class="col-lg">{{ form_row(form.mouseModelo) }}</div>
<div class="col-lg">{{ form_row(form.mouseSerie) }}</div>
</div>
</fieldset>
<br>
{# Estatus y resguardo #}
<fieldset>
<legend>Estatus y resguardo</legend>
<div class="row">
<div class="col-lg">{{ form_row(form.estatus) }}</div>
<div class="col-lg">{{ form_row(form.uso) }}</div>
</div>
<div class="row">
<div class="col-lg">{{ form_row(form.funcion) }}</div>
<div class="col-lg">{{ form_row(form.funcionDescripcion) }}</div>
</div>
<div class="row">
<div class="col-lg">{{ form_row(form.usuario) }}</div>
{# <div class="col-lg">{{ form_row(form.emhv) }}</div> #}
<div class="col-lg">{{ form_row(form.ubicacion) }}</div>
{% if form.unidad is defined %}
<div class="col-lg">{{ form_row(form.unidad) }}</div>
{% endif %}
</div>
</fieldset>
<br>
<div class="row">
<div class="col text-center">
<button class="btn btn-outline-success" id="btn_equipo_guardar">{{ button_label|default('Guardar') }}</button>
</div>
<div class="col text-center">
<button type="button" class="btn btn-outline-primary" data-dismiss="modal" aria-label="Close">
Cancelar
</button>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
<!-- /div -->