templates/bundles/AccesoBundle/contratos/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Contratos index{% endblock %}
  3. {% block body %}
  4.     <h4>Contratos Registrados</h4>
  5.     <legend></legend>
  6.     <form name="formfiltros" method="POST" action="{{ path('contratos_index') }}">
  7.     <div class="row" style="margin-top: 5px">
  8.         <div class="col-md-12 text-left">
  9.             <label  class="col-md-2 control-label"> Cédula/RIF del Cliente:</label>
  10.               <div class="col-sm-1">
  11.             <select class="form-control" name="tipoid">
  12.                 <option value="-">-</option>
  13.                 <option value="V" {% if tipoid=='V'%} selected="selected" {% endif%} >V</option>
  14.                 <option value="J" {% if tipoid=='J'%} selected="selected" {% endif%} >J</option>
  15.             </select>
  16.         </div>
  17.              <div class="col-md-2">
  18.             <input type="text" name="cedula" value="{{ cedula }}" class="form-control">
  19.             </div>
  20.              <label  class="col-md-2 control-label"> N° del Contrato:</label>
  21.         <div class="col-md-2">
  22.             <input type="text" name="ncontrato" value="{{ ncontrato }}" class="form-control">
  23.             </div>
  24.             <div class="col-md-1">
  25.             <input type="submit" class="btn btn-xs btn-primary"  value="Consultar">
  26.             </div>
  27.             <div class="col-md-1">
  28.                 <a href="{{ path('contratos_index') }}" class="btn btn-xs btn-default" >Limpiar</a>
  29.             </div>
  30.             
  31.         </div>
  32.             </div>
  33.             </form>
  34.     <br>
  35.     <p class="alert-info text-right"><strong> Cantidad de registros que retornó la consulta: ({{ contratos|length }})</strong></p>
  36.     <div class="table-responsive">
  37.         <table class="table table-bordered table-condensed table-hover">
  38.         <thead>
  39.             <tr class="active">
  40.                 <th>N°</th>
  41.                 <th>Tipo</th>
  42.                 <th>Tipo facturación</th>
  43.                 <th>Clientes</th>
  44.                 <th>C.I/RIF</th>
  45.                 <th>Fecha Registro</th>
  46.                 <th>Estatus</th>
  47.                 <th>Fecha Estatus</th>
  48.                 <th>actions</th>
  49.             </tr>
  50.         </thead>
  51.         <tbody>
  52.         {% for contrato in contratos %}
  53.             <tr>
  54.                  <td>{{ contrato.id }} 
  55.                      {% if contrato.vip=='1' %} 
  56.             <i class="glyphicon glyphicon-king"></i> 
  57.             {% endif %} 
  58.                  </td>
  59.                 <td>{{ contrato.tipocontrato }}</td>
  60.                 <td>{{ contrato.tipofacturacion }}</td>
  61.                 <td>{{ contrato.clientes }}</td>
  62.                 <td>{{ contrato.tipoid }}-{{ contrato.numid }}</td>
  63.                 <td>{{ contrato.fecharegistro ? contrato.fecharegistro|date('d-m-Y') : '' }}</td>
  64.                 <td>{{ contrato.estatuscontratos }}</td>
  65.                 <td>{{ contrato.fechaestatus ? contrato.fechaestatus|date('d-m-Y') : '' }}</td>
  66.                 <td>
  67.                         <a href="{{ path('contratos_show', { 'id': contrato.id }) }}"><i class="glyphicon glyphicon-eye-open"></i></a> |
  68.                         <a href="{{ path('contratos_edit', { 'id': contrato.id }) }}"><i class="glyphicon glyphicon-edit"></i></a> |
  69.                         <a  href="{{ path('contratos_indicadores', { 'id': contrato.id }) }}"><i class="glyphicon glyphicon-dashboard"></i></a>
  70.                 </td>
  71.             </tr>
  72.         {% else %}
  73.             <tr>
  74.                 <td colspan="6">no records found</td>
  75.             </tr>
  76.         {% endfor %}
  77.         </tbody>
  78.     </table>
  79.             </div>
  80.        <p class="text-right">
  81.         <a href="{{ path('contratos_new') }}" class="btn btn-large btn-primary">
  82.                 Registrar nuevo Contrato
  83.         </a>
  84.     </p>
  85. {% endblock %}