update
This commit is contained in:
@@ -936,7 +936,12 @@ function TS_IndexElement(
|
|||||||
// Event handlers are now attached during button creation
|
// Event handlers are now attached during button creation
|
||||||
break;
|
break;
|
||||||
case "persona":
|
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(
|
const regco = stringToColour(
|
||||||
(persona.Region || "?").toLowerCase()
|
(persona.Region || "?").toLowerCase()
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -159,21 +159,11 @@ PAGES.personas = {
|
|||||||
|
|
||||||
const config = [
|
const config = [
|
||||||
{
|
{
|
||||||
key: "Nombre",
|
key: "P",
|
||||||
label: "Nombre",
|
label: "Persona",
|
||||||
type: "template",
|
type: "template",
|
||||||
template: (data, element) => {
|
self: true,
|
||||||
element.classList.add("TextBorder");
|
|
||||||
element.style.backgroundColor = data.SC_Anilla;
|
|
||||||
element.style.textAlign = "center";
|
|
||||||
element.innerHTML = `
|
|
||||||
<img src="${data.Foto || "static/ico/user_generic.png"}" height="50">
|
|
||||||
<br>${data.Nombre || ""}
|
|
||||||
`;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{ key: "Region", label: "Zona", type: "text", default: "?" },
|
|
||||||
{ key: "Puntos", label: "Puntos", type: "text", default: "0" },
|
|
||||||
//{ key: "Roles", label: "Permisos", type: "text", default: "" }
|
//{ key: "Roles", label: "Permisos", type: "text", default: "" }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user