Cambio en orden de columnas en tabla de unidades

This commit is contained in:
Aldarien
2020-12-14 15:50:40 -03:00
parent d0237fbfdf
commit aabe4e2e9e

View File

@ -11,13 +11,13 @@
<th>Tipo</th>
<th>Nombre</th>
<th>Abreviaci&oacute;n</th>
<th>#</th>
<th>L&iacute;neas</th>
<th>m&#0178; &Uacute;til</th>
<th>m&#0178; Terraza</th>
<th>m&#0178; Vendible</th>
<th>m&#0178; Total</th>
<th>Descripci&oacute;n</th>
<th>#</th>
<th><a href="{{nUrl('proyectos', 'add_tipo_unidad', ['proyecto' => $proyecto->id])}}"><span class="glyphicon glyphicon-plus"></span></a></th>
</tr>
</thead>
@ -33,6 +33,7 @@
{{$tipo->abreviacion}}
@endif
</td>
<td>{{count($tipo->unidades())}}</td>
<td>{{$tipo->lineas()}}</td>
<td>{{format('m2', $tipo->m2 + $tipo->logia)}}</td>
<td>{{format('m2', $tipo->terraza)}}</td>
@ -45,7 +46,6 @@
{{$tipo->descripcion}}
@endif
</td>
<td>{{count($tipo->unidades())}}</td>
<td><a href="{{nUrl('proyecto_tipo_unidades', 'edit', ['tipo_unidad' => $tipo->id])}}"><span class="glyphicon glyphicon-edit"></span></a></td>
</tr>
<tr class="unidades" data-tipo="{{$tipo->id}}">
@ -55,6 +55,7 @@
<thead>
<tr>
<th>Descripci&oacute;n</th>
<th>#</th>
<th>Piso</th>
<th>L&iacute;nea</th>
<th>Orientaci&oacute;n</th>
@ -72,10 +73,10 @@
<?php $subtipo = $unidad->subtipo; $cnt[$tipo->nombre."-".$subtipo] = 0; $pisos[$tipo->nombre."-".$subtipo] = [] ?>
<tr data-id="{{$tipo->nombre}}-{{$subtipo}}" data-status="closed" class="subtipo">
<th>L&iacute;nea {{$subtipo}}</th>
<th class="cantidad_subtipo" data-subtipo="{{$tipo->nombre}}-{{$subtipo}}"></th>
<th class="pisos_subtipo" data-subtipo="{{$tipo->nombre}}-{{$subtipo}}"></th>
<th>{{$subtipo}}</th>
<th>{{$unidad->orientacion}}</th>
<th class="cantidad_subtipo" data-subtipo="{{$tipo->nombre}}-{{$subtipo}}"></th>
</tr>
@endif
<tr>
@ -85,7 +86,7 @@
<td>{{$unidad->orientacion}}</td>
<td class="text-right">
<a href="{{nUrl('unidades', 'edit', ['unidad' => $unidad->id])}}"><span class="glyphicon glyphicon-edit"></span></a>
<a href="{{nUrl('unidades', 'remove', ['unidad' => $unidad->id, 'proyecto' => $proyecto->id])}}"><span class="glyphicon glyphicon-remove"></span></a>
<a href="{{nUrl('unidades', 'remove', ['unidad' => $unidad->id, 'proyecto' => $proyecto->id])}}"><span class="glyphicon glyphicon-remove"></span></a>
</td>
</tr>
<?php
@ -113,7 +114,7 @@
<thead>
<tr>
<th>Descripci&oacute;n</th>
<th>Piso</th>
<th>Piso</th>
<th>L&iacute;nea</th>
<th>Orientaci&oacute;n</th>
<th>Valor</th>
@ -130,7 +131,7 @@
<td>{{format('ufs', $unidad->valor, null, true)}}</td>
<td>
<a href="{{nUrl('unidades', 'edit', ['unidad' => $unidad->id])}}"><span class="glyphicon glyphicon-edit"></span></a>
<a href="{{nUrl('unidades', 'remove', ['unidad' => $unidad->id, 'proyecto' => $proyecto->id])}}"><span class="glyphicon glyphicon-remove"></span></a>
<a href="{{nUrl('unidades', 'remove', ['unidad' => $unidad->id, 'proyecto' => $proyecto->id])}}"><span class="glyphicon glyphicon-remove"></span></a>
</td>
</tr>
@endforeach