mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-08 11:59:13 +00:00
primera version final del presupuesto
This commit is contained in:
@ -1,57 +1,46 @@
|
||||
<div th:fragment="buttons(appMode, btnClass, showPrev, showNext, showActions, showCart)"
|
||||
class="buttons-bar mt-2">
|
||||
<div th:fragment="buttons(appMode, btnClass, showPrev, showNext, showActions, showCart)" class="buttons-bar mt-2">
|
||||
|
||||
<!-- Fila 1: ACCIONES, centradas -->
|
||||
<div class="buttons-row center" th:if="${showActions}">
|
||||
<button th:if="${appMode == 'add' or appMode == 'edit'}"
|
||||
type="button"
|
||||
class="btn btn-secondary d-flex align-items-center mx-2 guardar-presupuesto">
|
||||
<button th:if="${appMode == 'add' or appMode == 'edit'}" type="button"
|
||||
class="btn btn-secondary d-flex align-items-center mx-2 guardar-presupuesto">
|
||||
<i class="ri-save-3-line me-2"></i>
|
||||
<span th:text="#{presupuesto.guardar}">Guardar</span>
|
||||
</button>
|
||||
|
||||
<button th:if="${appMode == 'add' or appMode == 'edit'}"
|
||||
type="button"
|
||||
class="btn btn-secondary d-flex align-items-center mx-2 add-cart-btn">
|
||||
<i class="ri-shopping-cart-line me-2"></i>
|
||||
<span th:text="#{presupuesto.add-to-cart}">Añadir a la cesta</span>
|
||||
</button>
|
||||
|
||||
<button type="button"
|
||||
class="btn btn-secondary d-flex align-items-center mx-2 btn-imprimir">
|
||||
<button type="button" class="btn btn-secondary d-flex align-items-center mx-2 btn-imprimir">
|
||||
<i class="ri-printer-line me-2"></i>
|
||||
<span th:text="#{app.imprimir}">Imprimir</span>
|
||||
</button>
|
||||
|
||||
<!-- Alternativa cuando no está autenticado -->
|
||||
<button sec:authorize="!isAuthenticated()"
|
||||
type="button"
|
||||
class="btn btn-secondary d-flex align-items-center btn-login-required ms-2">
|
||||
<i class="mdi mdi-login label-icon align-middle fs-16 me-2"></i>
|
||||
<span th:text="#{presupuesto.resumen.inicie-sesion}">Inicie sesión para continuar</span>
|
||||
</button>
|
||||
<button th:if="${appMode == 'add' or appMode == 'edit'}" type="button"
|
||||
class="btn btn-secondary d-flex align-items-center mx-2 add-cart-btn">
|
||||
<i class="ri-shopping-cart-line me-2"></i>
|
||||
<span th:text="#{presupuesto.add-to-cart}">Añadir a la cesta</span>
|
||||
</button>
|
||||
|
||||
<!-- Alternativa cuando no está autenticado -->
|
||||
<button sec:authorize="!isAuthenticated()" type="button"
|
||||
class="btn btn-secondary d-flex align-items-center btn-login-required ms-2">
|
||||
<i class="mdi mdi-login label-icon align-middle fs-16 me-2"></i>
|
||||
<span th:text="#{presupuesto.resumen.inicie-sesion}">Inicie sesión para continuar</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Fila 2: PREV (izq) / NEXT o LOGIN (dcha) -->
|
||||
<div class="buttons-row split">
|
||||
<button th:if="${showPrev}"
|
||||
th:id="|${btnClass}-prev|"
|
||||
data-btn-action="previous"
|
||||
th:class="'btn btn-light ' + ${btnClass}"
|
||||
type="button">
|
||||
<button th:if="${showPrev}" th:id="|${btnClass}-prev|" data-btn-action="previous"
|
||||
th:class="'btn btn-light ' + ${btnClass}" type="button">
|
||||
<i class="ri-arrow-left-circle-line label-icon align-middle fs-16 me-2"></i>
|
||||
<span th:text="#{app.acciones.anterior}">Anterior</span>
|
||||
</button>
|
||||
|
||||
<div class="right-slot d-flex align-items-center">
|
||||
<button th:if="${showNext}"
|
||||
data-btn-action="next"
|
||||
th:id="|${btnClass}-next|"
|
||||
th:class="'btn btn-secondary d-flex align-items-center ' + ${btnClass}"
|
||||
type="button">
|
||||
<button th:if="${showNext}" data-btn-action="next" th:id="|${btnClass}-next|"
|
||||
th:class="'btn btn-secondary d-flex align-items-center ' + ${btnClass}" type="button">
|
||||
<span th:text="#{app.acciones.siguiente}">Siguiente</span>
|
||||
<i class="ri-arrow-right-circle-line fs-16 ms-2"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user