mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-01 00:28:51 +00:00
aceptando ferro
This commit is contained in:
@ -62,10 +62,38 @@
|
||||
</h5>
|
||||
<p class="text-muted mt-4 mb-1" th:text="#{pedido.table.estado}">Estado</p>
|
||||
<h5 class="fs-14 mb-0">
|
||||
<span th:text="${item.estado != null} ?
|
||||
<span class="estado-linea" th:attr="data-linea-id=${item.lineaId}" th:text="${item.estado != null} ?
|
||||
#{__${'pedido.estado.' + item.estado}__} : '-'">
|
||||
</span>
|
||||
</h5>
|
||||
<div class="col-12 d-grid gap-2 mt-2">
|
||||
<button th:if="${item.estado.name == 'esperando_aceptacion_ferro'}" type="button"
|
||||
class="btn btn-secondary w-100 btn-aceptar-ferro" th:text="#{pedido.view.aceptar-ferro}"
|
||||
th:attr="data-linea-id=${item.lineaId}">
|
||||
Aceptar ferro
|
||||
</button>
|
||||
|
||||
<button th:if="${item.estado.priority >= 7 && item.estado.priority < 11 && item.buttons.ferro}"
|
||||
type="button" class="btn btn-light w-100 btn-download-ferro"
|
||||
th:text="#{pedido.view.ferro-download}"
|
||||
th:attr="data-linea-id=${item.lineaId}">
|
||||
Descargar ferro
|
||||
</button>
|
||||
|
||||
<button th:if="${item.estado.priority >= 7 && item.estado.priority < 11 && item.buttons.cub}"
|
||||
type="button" class="btn btn-light w-100 btn-download-cub"
|
||||
th:text="#{pedido.view.cub-download}"
|
||||
th:attr="data-linea-id=${item.lineaId}">
|
||||
Descargar cubierta
|
||||
</button>
|
||||
|
||||
<button th:if="${item.estado.priority >= 7 && item.estado.priority < 11 && item.buttons.tapa}"
|
||||
type="button" class="btn btn-light w-100 btn-download-tapa"
|
||||
th:text="#{pedido.view.tapa-download}"
|
||||
th:attr="data-linea-id=${item.lineaId}">
|
||||
Descargar tapa
|
||||
</button>
|
||||
</div>
|
||||
<th:block th:if="${item.fechaEntrega != null and item.fechaEntrega != ''}">
|
||||
<p class="text-muted mt-4 mb-1" th:text="#{pedido.fecha-entrega}">Fecha de entrega</p>
|
||||
<h5 class="fs-14 mb-0">
|
||||
@ -88,7 +116,8 @@
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="row g-3">
|
||||
<div th:each="direccionEnvio : ${item.direccionesEntrega}" class="mb-3 col-xl-4 col-lg-6 col-md-12 col-sm-12">
|
||||
<div th:each="direccionEnvio : ${item.direccionesEntrega}"
|
||||
class="mb-3 col-xl-4 col-lg-6 col-md-12 col-sm-12">
|
||||
<div th:insert="~{imprimelibros/direcciones/direccionEnvioCard :: direccionEnvioCard(
|
||||
direccion=${direccionEnvio},
|
||||
pais=${direccionEnvio.paisNombre}
|
||||
@ -106,7 +135,7 @@
|
||||
<div class="col-sm">
|
||||
<div class="d-flex flex-wrap my-n1">
|
||||
<!-- Botón cancelar -->
|
||||
<div>
|
||||
<div th:if="${item.estado.name != 'cancelado' && item.estado.name != 'terminado'}">
|
||||
<a href="javascript:void(0);" class="d-block text-body p-1 px-2 cancel-item"
|
||||
th:attr="data-linea-id=${item.lineaId}">
|
||||
<i class="ri-delete-bin-fill text-muted align-bottom me-1"><span
|
||||
@ -114,14 +143,15 @@
|
||||
</a>
|
||||
</div>
|
||||
<!-- Actualizar estado-->
|
||||
<div>
|
||||
<div class="update-estado-button"
|
||||
th:if="${item.estado.name != 'cancelado' && item.estado.name != 'maquetacion' && item.estado.name != 'terminado'}">
|
||||
<a href="javascript:void(0);" class="d-block text-body p-1 px-2 update-status-item"
|
||||
th:attr="data-linea-id=${item.lineaId}">
|
||||
<i class="ri-refresh-line text-muted align-bottom me-1"><span
|
||||
th:text="#{pedido.update-estado}">Cancelar Pedido</span></i>
|
||||
th:text="#{pedido.update-estado}">Actualizar estado</span></i>
|
||||
</a>
|
||||
</div>
|
||||
<div th:if="${item.estado == 'maquetacion'}">
|
||||
<div class="maquetacion-ok-button" th:if="${item.estado.name == 'maquetacion'}">
|
||||
<a href="javascript:void(0);" class="d-block text-body p-1 px-2 maquetacion-ok"
|
||||
th:attr="data-linea-id=${item.lineaId}">
|
||||
<i class="ri-check-double-line text-muted align-bottom me-1"><span
|
||||
|
||||
Reference in New Issue
Block a user