Actualizar asignados.html

This commit is contained in:
2026-05-17 16:35:12 +00:00
parent 4517bdfe36
commit 22c0c215bc

View File

@@ -380,12 +380,26 @@
const cp = raw["Código Postal"] || raw["C.P."] || "";
const fullAddress = `${addr}, ${cp} ${pop}`.trim().replace(/^,\s*/, '').replace(/,\s*$/, '');
let guildName = raw["Gremio"] || raw["GREMIO"] || raw["Especialidad"] || "";
const idGremio = req.guild_id || raw.guild_id;
if (!guildName && idGremio) {
const guildObj = systemGuilds.find(g => String(g.id) === String(idGremio));
if (guildObj) guildName = guildObj.name;
}
if (!guildName && req.guild && req.guild.name) {
guildName = req.guild.name;
}
guildName = guildName || "Varios";
reqList.innerHTML += `
<div class="bg-white border-2 border-primary-dynamic p-5 rounded-[2rem] flex flex-col shadow-md relative overflow-hidden gap-3">
<div class="absolute right-0 top-0 w-24 h-24 bg-primary-dynamic rounded-bl-full opacity-10 z-0"></div>
<div class="relative z-10">
<p class="text-[9px] font-black text-primary-dynamic uppercase tracking-widest mb-0.5">Cita Solicitada</p>
<div class="flex justify-between items-center mb-0.5 pr-6">
<p class="text-[9px] font-black text-primary-dynamic uppercase tracking-widest">Cita Solicitada</p>
<span class="text-[8px] font-black text-slate-500 bg-slate-100/80 px-2 py-0.5 rounded-lg uppercase tracking-widest text-center border border-slate-200/50 backdrop-blur-sm">${guildName}</span>
</div>
<h3 class="font-black text-slate-800 text-base leading-tight truncate pr-8">${name}</h3>
<p class="text-[10px] font-bold text-slate-600 mt-1 flex items-center gap-1"><i data-lucide="calendar" class="w-3 h-3 text-primary-dynamic"></i> ${rDate} | ${raw.requested_time} - ${rTime}</p>
<p class="text-[10px] font-bold text-slate-500 mt-1 uppercase flex items-start gap-1"><i data-lucide="map-pin" class="w-3 h-3 text-slate-400 shrink-0 mt-0.5"></i> <span class="leading-tight">${fullAddress}</span></p>
@@ -633,7 +647,7 @@ function renderServices(servicesToRender = localServices) {
</div>
</div>
<div class="shrink-0 pr-2 self-center flex flex-col items-end justify-center gap-1.5 pl-2">
<span class="text-[8px] font-black text-slate-500 bg-slate-100 px-2 py-1 rounded-lg uppercase tracking-widest max-w-[70px] truncate text-center" title="${guildName}">${guildName}</span>
<span class="text-[8px] font-black text-slate-500 bg-slate-100 px-2 py-1 rounded-lg uppercase tracking-widest text-center" title="${guildName}">${guildName}</span>
<i data-lucide="chevron-right" class="text-slate-300"></i>
</div>
</div>