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 == "") {