mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-28 14:48:50 +00:00
52 lines
2.8 KiB
HTML
52 lines
2.8 KiB
HTML
<div th:fragment="direccionCard(direccion)" name="direccion"
|
|
class="card card border mb-3 direccion-card bg-light w-100 mx-2">
|
|
<div class="card-body">
|
|
|
|
<input type="hidden" class="presupuesto-id" th:value="${presupuestoId}" />
|
|
<input type="hidden" class="direccion-id" th:value="${direccion.id}" />
|
|
<input type="hidden" class="direccion-cp" th:value="${direccion.cp}" />
|
|
<input type="hidden" class="direccion-pais-code3" th:value="${direccion.pais.code3}" />
|
|
<input type="hidden" class="item-tirada" th:value="${unidades != null ? unidades : ''}" />
|
|
<input type="hidden" class="is-palets" th:value="${isPalets != null ? isPalets : ''}" />
|
|
|
|
<div class="row g-3 align-items-start flex-nowrap">
|
|
<div class="col">
|
|
<span class="mb-2 fw-semibold d-block text-muted text-uppercase text-break" th:text="${direccion.alias}"></span>
|
|
<span class="fs-14 mb-1 d-block text-break" th:text="${direccion.att}"></span>
|
|
<span class="text-muted fw-normal text-wrap mb-1 d-block text-break" th:text="${direccion.direccion}"></span>
|
|
<span class="text-muted fw-normal d-block text-break" th:text="${pais}"></span>
|
|
<span class="text-muted fw-normal d-block text-break"
|
|
th:text="#{'direcciones.telefono'} + ': ' + ${direccion.telefono}"></span>
|
|
</div>
|
|
<div class="col-auto ms-auto text-end">
|
|
<div th:if="${unidades != null}">
|
|
<span id="units-text" class="mb-2 fw-semibold d-block text-muted text-uppercase" th:if="${unidades == 1}"
|
|
th:text="|${unidades} #{cart.shipping.ud}|"></span>
|
|
|
|
<!-- plural -->
|
|
<span id="units-text" class="mb-2 fw-semibold d-block text-muted text-uppercase" th:unless="${unidades == 1}"
|
|
th:text="|${unidades} #{cart.shipping.uds}|"></span>
|
|
</div>
|
|
<div th:if="${isPalets != null and isPalets==1}">
|
|
<i class="icon-shipment las la-pallet la-3x text-muted"></i>
|
|
</div>
|
|
<div th:if="${isPalets == null or isPalets == 0}">
|
|
<i class="icon-shipment las la-box la-3x text-muted"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex flex-wrap align-items-center gap-2 py-1 bg-light rounded-bottom border-top mt-auto actions-row">
|
|
<a href="javascript:void(0)" class="d-block text-body p-1 px-2 btn-delete-direccion"
|
|
data-id="${this._esc(d.id ?? '')}">
|
|
<i class="ri-delete-bin-fill text-muted align-bottom me-1"></i>
|
|
<span th:text="#{'direcciones.btn.delete'}">Eliminar</span>
|
|
</a>
|
|
<a th:if="${unidades != null}" href="javascript:void(0)" class="d-block text-body p-1 px-2 btn-edit-direccion"
|
|
data-id="${this._esc(d.id ?? '')}">
|
|
<i class="ri-pencil-fill text-muted align-bottom me-1"></i>
|
|
<span th:text="#{'direcciones.btn.edit'}">Editar</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div> |