Responsive tabla partidas - card proveedores
This commit is contained in:
@@ -48,6 +48,9 @@ include __DIR__ . '/../partials/sidebar_importador.php';
|
||||
width: 100%;
|
||||
z-index: 1050;
|
||||
}
|
||||
.btn-indigo { background-color: #6610f2; color: white;}
|
||||
.btn-indigo:hover { background-color: #520dc2; color: white;}
|
||||
.text-indigo { color: #6610f2;}
|
||||
/* A partir de dispositivos medianos (>=768px), deja espacio lateral */
|
||||
@media (min-width: 768px) {
|
||||
.content {
|
||||
@@ -111,9 +114,19 @@ include __DIR__ . '/../partials/sidebar_importador.php';
|
||||
<p>Inicia nuevas solicitudes de pedimentos.</p>
|
||||
<a href="/IMPORTADORES/solicitud_importacion/crear"
|
||||
class="btn btn-info btn-sm mt-2 <?= str_contains($_SERVER['REQUEST_URI'], '/solicitud_importacion/crear') ? 'active' : '' ?>">
|
||||
Nueva solicitud
|
||||
Nueva solicitud
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="card shadow-sm p-3">
|
||||
<h5 class="text-indigo">Proveedores</h5>
|
||||
<p>Agrega tus proveedores.</p>
|
||||
<a href="/IMPORTADORES/proveedores/crear"
|
||||
class="btn btn-indigo btn-sm mt-2 <?= str_contains($_SERVER['REQUEST_URI'], '/proveedores/crear') ? 'active' : '' ?>">
|
||||
Nuevo proveedor
|
||||
</a>
|
||||
<a href="/IMPORTADORES/solicitudes" class=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -161,48 +161,50 @@
|
||||
<!-- Partidas dinámicas -->
|
||||
<hr>
|
||||
<h5>📦 Partidas</h5>
|
||||
<table class="table table-sm" id="tabla-partidas">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Descripción</th>
|
||||
<th>Cantidad Comercial</th>
|
||||
<th>Cantidad de Tarifa</th>
|
||||
<th>Unidad Comercial</th>
|
||||
<th>Valor Factura</th>
|
||||
<th>Peso Bruto</th>
|
||||
<th>Tasa Preferencial</th>
|
||||
<th class="hide">Precio Unitario</th>
|
||||
<th class="hide">OMA (Factura)</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input name="partidas[0][descripcion]" class="form-control"></td>
|
||||
<td><input name="partidas[0][cantidad_comercial]" type="number" step="0.0001" class="form-control"></td>
|
||||
<td><input name="partidas[0][cantidad_tarifa]" type="number" step="0.0001" class="form-control"></td>
|
||||
<td>
|
||||
<select name="partidas[0][unidad_comercial_id]" class="form-select searchable">
|
||||
<option value="">-- Unidad --</option>
|
||||
<?php foreach($unidades_medida as $um): ?>
|
||||
<option value="<?= htmlspecialchars($um['id']) ?>"><?= htmlspecialchars($um['descripcion']) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><input name="partidas[0][valor_factura]" type="number" step="0.01" class="form-control valor-partida"></td>
|
||||
<td><input name="partidas[0][peso_bruto]" type="number" step="0.0001" class="form-control"></td>
|
||||
<td>
|
||||
<select name="partidas[0][tasa_preferencial]" class="form-select searchable">
|
||||
<option value="">-- Selecciona --</option>
|
||||
<option>General</option><option>TLC</option><option>PROSEC</option><option>ALADI</option><option>COMERCIALIZADORA</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="hide"><input name="partidas[0][precio_unitario]" type="number" class="form-control"></td>
|
||||
<td class="hide"><input name="partidas[0][oma_factura]" class="form-control"></td>
|
||||
<td><button type="button" class="btn btn-danger btn-sm remove-row">✖️</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm" id="tabla-partidas">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Descripción</th>
|
||||
<th>Cantidad Comercial</th>
|
||||
<th>Cantidad de Tarifa</th>
|
||||
<th>Unidad Comercial</th>
|
||||
<th>Valor Factura</th>
|
||||
<th>Peso Bruto</th>
|
||||
<th>Tasa Preferencial</th>
|
||||
<th class="hide">Precio Unitario</th>
|
||||
<th class="hide">OMA (Factura)</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input name="partidas[0][descripcion]" class="form-control w-100"></td>
|
||||
<td><input name="partidas[0][cantidad_comercial]" type="number" step="0.0001" class="form-control w-100"></td>
|
||||
<td><input name="partidas[0][cantidad_tarifa]" type="number" step="0.0001" class="form-control w-100"></td>
|
||||
<td>
|
||||
<select name="partidas[0][unidad_comercial_id]" class="form-select searchable w-100">
|
||||
<option value="">-- Unidad --</option>
|
||||
<?php foreach($unidades_medida as $um): ?>
|
||||
<option value="<?= htmlspecialchars($um['id']) ?>"><?= htmlspecialchars($um['descripcion']) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><input name="partidas[0][valor_factura]" type="number" step="0.01" class="form-control valor-partida w-100"></td>
|
||||
<td><input name="partidas[0][peso_bruto]" type="number" step="0.0001" class="form-control w-100"></td>
|
||||
<td>
|
||||
<select name="partidas[0][tasa_preferencial]" class="form-select searchable w-100">
|
||||
<option value="">-- Selecciona --</option>
|
||||
<option>General</option><option>TLC</option><option>PROSEC</option><option>ALADI</option><option>COMERCIALIZADORA</option><option></option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="hide"><input name="partidas[0][precio_unitario]" type="number" class="form-control w-100"></td>
|
||||
<td class="hide"><input name="partidas[0][oma_factura]" class="form-control w-100"></td>
|
||||
<td><button type="button" class="btn btn-danger btn-sm remove-row">✖️</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<button type="button" class="btn btn-secondary btn-sm" id="add-partida">➕ Agregar partida</button>
|
||||
|
||||
<!-- Activo -->
|
||||
|
||||
Reference in New Issue
Block a user