Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | require_once("core.php"); |
| 3 | security::checkType(security::ADMIN); |
| 4 | |
| 5 | $conf_redacted = $conf; |
| 6 | foreach ($conf_redacted["db"] as &$el) { |
| 7 | $el = "*CENSURADO*"; |
| 8 | } |
| 9 | $conf_redacted["mail"]["password"] = "*CENSURADO*"; |
| 10 | ?> |
| 11 | <!DOCTYPE html> |
| 12 | <html> |
| 13 | <head> |
| 14 | <title><?php echo $conf["appName"]; ?></title> |
| 15 | <?php visual::includeHead(); ?> |
| 16 | <link rel="stylesheet" href="css/dashboard.css"> |
| 17 | |
| 18 | <style> |
| 19 | a { |
| 20 | color: blue; |
| 21 | } |
| 22 | </style> |
| 23 | </head> |
| 24 | <?php visual::printBodyTag(); ?> |
| 25 | <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-drawer"> |
| 26 | <?php visual::includeNav(); ?> |
| 27 | <main class="mdl-layout__content"> |
| 28 | <div class="page-content"> |
| 29 | <div class="main mdl-shadow--4dp"> |
| 30 | <h2>Configuración</h2> |
| 31 | <a class="clicky-container" href="companies.php"> |
| 32 | <div class="clicky mdl-js-ripple-effect"> |
| 33 | <div class="text"> |
| 34 | <span class="title">Empresas</span><br> |
| 35 | <span class="description">Configura las diferentes empresas de la aplicación.</span> |
| 36 | </div> |
| 37 | <div class="mdl-ripple"></div> |
| 38 | </div> |
| 39 | </a> |
| 40 | <a class="clicky-container" href="categories.php"> |
| 41 | <div class="clicky mdl-js-ripple-effect"> |
| 42 | <div class="text"> |
| 43 | <span class="title">Categorías de trabajadores</span><br> |
| 44 | <span class="description">Configura las categorías en las que se pueden clasificar los trabajadores.</span> |
| 45 | </div> |
| 46 | <div class="mdl-ripple"></div> |
| 47 | </div> |
| 48 | </a> |
| 49 | <a class="clicky-container" href="incidenttypes.php"> |
| 50 | <div class="clicky mdl-js-ripple-effect"> |
| 51 | <div class="text"> |
| 52 | <span class="title">Tipos de incidencias</span><br> |
| 53 | <span class="description">Configura los diferentes motivos que se pueden seleccionar al crear una incidencia.</span> |
| 54 | </div> |
| 55 | <div class="mdl-ripple"></div> |
| 56 | </div> |
| 57 | </a> |
| 58 | <a class="clicky-container" href="calendars.php"> |
| 59 | <div class="clicky mdl-js-ripple-effect"> |
| 60 | <div class="text"> |
| 61 | <span class="title">Calendarios</span><br> |
| 62 | <span class="description">Configura los días festivos, lectivos y laborables del año.</span> |
| 63 | </div> |
| 64 | <div class="mdl-ripple"></div> |
| 65 | </div> |
| 66 | </a> |
| 67 | <a class="clicky-container" href="logs.php"> |
| 68 | <div class="clicky mdl-js-ripple-effect"> |
| 69 | <div class="text"> |
| 70 | <span class="title">Logs</span><br> |
| 71 | <span class="description">Ver los logs del programa que registra los horarios diariamente.</span> |
| 72 | </div> |
| 73 | <div class="mdl-ripple"></div> |
| 74 | </div> |
| 75 | </a> |
| 76 | <?php |
| 77 | if (security::isAllowed(security::HYPERADMIN)) { |
| 78 | ?> |
| 79 | <a class="clicky-container" href="help.php"> |
| 80 | <div class="clicky mdl-js-ripple-effect"> |
| 81 | <div class="text"> |
| 82 | <span class="title">Recursos de ayuda</span><br> |
| 83 | <span class="description">Configura los enlaces de ayuda que se ofrecen a los trabajadores en el aplicativo.</span> |
| 84 | </div> |
| 85 | <div class="mdl-ripple"></div> |
| 86 | </div> |
| 87 | </a> |
| 88 | <a class="clicky-container" href="powertools.php"> |
| 89 | <div class="clicky mdl-js-ripple-effect"> |
| 90 | <div class="text"> |
| 91 | <span class="title">Herramientas avanzadas</span><br> |
| 92 | <span class="description">Ver herramientas para hiperadministradores del aplicativo.</span> |
| 93 | </div> |
| 94 | <div class="mdl-ripple"></div> |
| 95 | </div> |
| 96 | </a> |
| 97 | <?php |
| 98 | } |
| 99 | |
| 100 | if ($conf["debug"]) { |
| 101 | ?> |
| 102 | <details class="debug margintop"> |
| 103 | <summary>Ajustes establecidos en el fichero <code>config.php</code>:</summary> |
| 104 | <pre><?=visual::debugJson($conf_redacted); ?></pre> |
| 105 | </details> |
| 106 | <?php |
| 107 | } |
| 108 | ?> |
| 109 | </div> |
| 110 | </div> |
| 111 | </main> |
| 112 | </div> |
| 113 | </body> |
| 114 | </html> |