This commit is contained in:
Lizandro Guarnizo
2026-05-15 09:10:26 -05:00
parent e02a4f2141
commit 715d656b2a
5 changed files with 11 additions and 17 deletions
+2 -4
View File
@@ -1,5 +1,3 @@
{{template "layouts/main" .}}
<div x-data="proyectosApp()" x-init="init()" class="p-6">
<!-- Header -->
@@ -47,7 +45,7 @@
<td class="px-4 py-3 font-medium text-slate-800">
<a :href="`/app/proyectos/${p.ID}/detalle`" class="hover:underline text-primary" x-text="p.nombre"></a>
</td>
<td class="px-4 py-3 text-slate-600" x-text="p.cliente?.razon_social || p.cliente?.nombre || '-'"></td>
<td class="px-4 py-3 text-slate-600" x-text="p.cliente?.empresa || p.cliente?.nombre || '-'"></td>
<td class="px-4 py-3">
<span class="badge" :class="{
'badge-green': p.estado==='activo',
@@ -102,7 +100,7 @@
<select x-model="form.cliente_id" class="input-field w-full" required>
<option value="">Seleccionar cliente</option>
<template x-for="c in clientes" :key="c.ID">
<option :value="c.ID" x-text="c.razon_social || c.nombre"></option>
<option :value="c.ID" x-text="c.empresa || c.nombre"></option>
</template>
</select>
</div>