From 357166b159522c3e103e44395a93167356f1fa9f Mon Sep 17 00:00:00 2001
From: naielv <109038805+naielv@users.noreply.github.com>
Date: Sat, 23 Aug 2025 16:50:31 +0200
Subject: [PATCH] update
---
src/page/dataman.js | 25 +++++++++++++++++++++++++
src/page/login.js | 12 ++++++++++--
2 files changed, 35 insertions(+), 2 deletions(-)
diff --git a/src/page/dataman.js b/src/page/dataman.js
index aa52d55..676ff1c 100644
--- a/src/page/dataman.js
+++ b/src/page/dataman.js
@@ -11,10 +11,34 @@ PAGES.dataman = {
case 'import':
PAGES.dataman.__import()
break;
+ case 'config':
+ PAGES.dataman.__config()
+ break;
default:
// Tab to edit
}
},
+ __config: function() {
+ var form = safeuuid();
+ container.innerHTML = `
+
Ajustes
+ No disponible
+
+ `
+ document.getElementById(form).onsubmit = (ev) => {
+ ev.preventDefault()
+ var ford = new FormData(document.getElementById(form))
+ if (ford.get("block_add_account") == "yes") {
+ config["block_add_account"] = true
+ }
+ }
+ },
__export: function() {
var select_type = safeuuid();
var textarea_content = safeuuid();
@@ -155,6 +179,7 @@ PAGES.dataman = {
Administración de datos
Importar datos
Exportar datos
+ Ajustes
`
}
};
\ No newline at end of file
diff --git a/src/page/login.js b/src/page/login.js
index b325818..ec23292 100644
--- a/src/page/login.js
+++ b/src/page/login.js
@@ -1,6 +1,14 @@
PAGES.login = {
Esconder: true,
Title: "Login",
+ edit: function (mid) {
+ container.innerHTML = `
+ Empezar desde cero - No disponible
+ Paso 1: Rellena los credenciales
+ Paso 2: Crea una cuenta administrativa
+ Y ya está!
+ `
+ },
index: function (mid) {
var field_persona = safeuuid();
var btn_guardar = safeuuid();
@@ -15,7 +23,7 @@ PAGES.login = {
- Acceso sin cuenta - No disponible
+ Empezar desde cero
`;
var divact = document.getElementById(div_actions);
addCategory_Personas(
@@ -27,7 +35,7 @@ PAGES.login = {
},
"¿Quién eres?",
true,
- "- Pulsa recargar o rellena los credenciales arriba. -"
+ "- Pulsa recargar o rellena los credenciales arriba, si quieres crear un nuevo grupo, pulsa el boton 'Desde cero' -"
);
document.getElementById(btn_guardar).onclick = () => {
if (document.getElementById(field_persona).value == "") {