up
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user