diff --git a/views/tramites.html b/views/tramites.html index f562ce1..367fd12 100644 --- a/views/tramites.html +++ b/views/tramites.html @@ -529,14 +529,24 @@ function buildDetail(dept,r){

Horas Incurridas

${hrs?``:'

Sin horas registradas.

'}
Total: ${totalH} h
-
- ${(r.involucrados&&r.involucrados.length) - ? `` - : ``} - - - -
+ ${(()=>{ + // Opciones del dropdown de Horas: abogado solicitante + todos los involucrados, + // deduplicados por nombre. Si el trámite no tiene ni solicitante ni involucrados, + // el dropdown queda deshabilitado. + const opts = new Set(); + if (r.abogado) opts.add(r.abogado); + (r.involucrados||[]).forEach(u => { if (u.name||u.email) opts.add(u.name||u.email); }); + const list = [...opts]; + const enabled = list.length > 0; + return `
+ ${enabled + ? `` + : ``} + + + +
`; + })()} `;