diff --git a/src/app_modules.js b/src/app_modules.js
index 91900d0..0dbbaf7 100644
--- a/src/app_modules.js
+++ b/src/app_modules.js
@@ -936,7 +936,12 @@ function TS_IndexElement(
// Event handlers are now attached during button creation
break;
case "persona":
- const persona = SC_Personas[data[key.key]] || {};
+ if (key.self == true) {
+ var persona = data
+ } else {
+ var persona = SC_Personas[data[key.key]] || {};
+ }
+
const regco = stringToColour(
(persona.Region || "?").toLowerCase()
);
diff --git a/src/page/personas.js b/src/page/personas.js
index d16e993..c3182b1 100644
--- a/src/page/personas.js
+++ b/src/page/personas.js
@@ -159,21 +159,11 @@ PAGES.personas = {
const config = [
{
- key: "Nombre",
- label: "Nombre",
+ key: "P",
+ label: "Persona",
type: "template",
- template: (data, element) => {
- element.classList.add("TextBorder");
- element.style.backgroundColor = data.SC_Anilla;
- element.style.textAlign = "center";
- element.innerHTML = `
-
-
${data.Nombre || ""}
- `;
- }
+ self: true,
},
- { key: "Region", label: "Zona", type: "text", default: "?" },
- { key: "Puntos", label: "Puntos", type: "text", default: "0" },
//{ key: "Roles", label: "Permisos", type: "text", default: "" }
];