corregidos problemas

This commit is contained in:
2025-05-05 10:32:09 +02:00
parent 3f8b7981c7
commit 7a119eb197
3 changed files with 18 additions and 6 deletions

View File

@ -97,6 +97,16 @@
</select>
</div>
<?php if($formAction !== route_to('NewTicket')): ?>
<div class="mb-3 col-3">
<label class="form-label"><?= lang('Tickets.usuario') ?></label>
<input readonly type="text" name="titulo" class="form-control"
value="<?= old('titulo', $ticket->usuario_ticket) ?>">
</div>
<?php endif; ?>
<div class="mb-3 col-3">
<label class="form-label"><?= lang('Tickets.asignarTo') ?></label>
<select id="user_soporte_id" name="user_soporte_id" class="form-control">
@ -125,7 +135,9 @@
<div class="mb-3">
<label class="form-label"><?= lang("Tickets.respuesta") ?></label>
<textarea id="respuestaMensaje" name="respuesta_mensaje" class="form-control"
<?= !auth()->user()->can('tickets.edit') ? "readonly" : "" ?>
<?php if (!in_array(auth()->user()->id, $supportUsers)){
echo "readonly";
} ?>
rows="4"><?= isset($respuesta) ? old('respuestaMensaje', $respuesta->mensaje) : "" ?></textarea>
</div>