mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-08 11:59:13 +00:00
Se puede seleccionar como admin el cliente del presupuesto como borrador
This commit is contained in:
@ -18,6 +18,28 @@
|
||||
</div>
|
||||
|
||||
<div class="px-2">
|
||||
<th:block th:if="${presupuesto?.user != null}">
|
||||
<div sec:authorize="isAuthenticated() and hasAnyRole('SUPERADMIN','ADMIN')" class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="mb-3">
|
||||
<label for="user_id" class="form-label" th:text="#{presupuesto.cliente}">
|
||||
>Cliente*</label>
|
||||
<select class="form-select select2 datos-generales-data" id="user_id">
|
||||
<option
|
||||
th:value="${presupuesto?.user.id} ?: ''"
|
||||
th:text="${presupuesto.user != null ? presupuesto.user.fullName + ' (' + presupuesto.user.userName + ')' : ''}"
|
||||
selected>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div sec:authorize="isAuthenticated() and !hasAnyRole('SUPERADMIN','ADMIN')">
|
||||
<input type="hidden" class="datos-generales-data" id="user_id"
|
||||
th:value="${presupuesto?.user.id} ?: ''">
|
||||
</div>
|
||||
</th:block>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="mb-3">
|
||||
|
||||
@ -89,6 +89,8 @@
|
||||
th:src="@{/assets/libs/quill/quill.min.js}"></script>
|
||||
<script sec:authorize="isAuthenticated() and hasAnyRole('SUPERADMIN','ADMIN')"
|
||||
th:src="@{/assets/js/pages/imprimelibros/presupuestador/text-editor.js}"></script>
|
||||
<script sec:authorize="isAuthenticated() and hasAnyRole('SUPERADMIN','ADMIN')"
|
||||
th:src="@{/assets/js/pages/imprimelibros/presupuestos/admin-utils.js}"></script>
|
||||
|
||||
<script type="module" th:src="@{/assets/js/pages/imprimelibros/presupuestos/duplicate-reprint.js}"></script>
|
||||
</th:block>
|
||||
|
||||
Reference in New Issue
Block a user