This commit is contained in:
naielv
2025-12-14 13:43:54 +01:00
parent c946dad334
commit 1bc9aa5295

View File

@@ -1,10 +1,10 @@
PERMS["notas"] = "Noticias" PERMS["notas"] = "Notas"
PERMS["notas:edit"] = "> Editar" PERMS["notas:edit"] = "> Editar"
PAGES.notas = { PAGES.notas = {
navcss: "btn5", navcss: "btn5",
icon: "static/appico/Newspaper.svg", icon: "static/appico/Notepad.svg",
AccessControl: true, AccessControl: true,
Title: "Noticias", Title: "Notas",
edit: function (mid) { edit: function (mid) {
if (!checkRole("notas:edit")) {setUrlHash("notas");return} if (!checkRole("notas:edit")) {setUrlHash("notas");return}
var nameh1 = safeuuid(); var nameh1 = safeuuid();
@@ -15,7 +15,7 @@ PAGES.notas = {
var btn_borrar = safeuuid(); var btn_borrar = safeuuid();
var div_actions = safeuuid(); var div_actions = safeuuid();
container.innerHTML = ` container.innerHTML = `
<h1>Noticia <code id="${nameh1}"></code></h1> <h1>Nota <code id="${nameh1}"></code></h1>
<fieldset style="float: none; width: calc(100% - 40px);max-width: none;"> <fieldset style="float: none; width: calc(100% - 40px);max-width: none;">
<legend>Valores</legend> <legend>Valores</legend>
<div style="max-width: 400px;"> <div style="max-width: 400px;">
@@ -111,8 +111,8 @@ PAGES.notas = {
const tablebody = safeuuid(); const tablebody = safeuuid();
var btn_new = safeuuid(); var btn_new = safeuuid();
container.innerHTML = ` container.innerHTML = `
<h1>Noticias</h1> <h1>Notas</h1>
<button id="${btn_new}">Nueva noticia</button> <button id="${btn_new}">Nueva nota</button>
<div id="cont"></div> <div id="cont"></div>
`; `;
TS_IndexElement( TS_IndexElement(