From 1190f6d87f4562b3e08048235362244c60d54580 Mon Sep 17 00:00:00 2001 From: "Franco (nextime) Lanza" <nextime@nexlab.it> Date: Thu, 11 Jan 2018 20:23:39 +0000 Subject: [PATCH] Login GUI --- Web/resources/login.html | 11 +++++------ penguidom/web/web.py | 1 - 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Web/resources/login.html b/Web/resources/login.html index 6a43c39..9affbb6 100644 --- a/Web/resources/login.html +++ b/Web/resources/login.html @@ -17,7 +17,7 @@ body { padding: 0; } -.theme_dmblack { +.tblack { background-color: #000 !important; } @@ -192,11 +192,10 @@ img { </style> @SCRIPT@ </head> -<body class="@THEME@"> -<div id="login" class="@THEME@" > -<img src="/img/logo_login.png"> -<form name="loginform" id="login" class="login @THEME@" action="@PATH@" method="post"> - <h4>Domotika Login</h4> +<body class="tblack"> +<div id="login" class="tblack" > +<form name="loginform" id="login" class="login tblack" action="@PATH@" method="post"> + <h4>Penguidom Login</h4> <p> <label for="user_login">Username<br /> <input type="text" name="username" id="user_login" class="input" value="@USERNAME@" size="20" /></label> diff --git a/penguidom/web/web.py b/penguidom/web/web.py index 499a0d3..e9e69b7 100644 --- a/penguidom/web/web.py +++ b/penguidom/web/web.py @@ -457,7 +457,6 @@ class LoginPage(rend.Page): html = html.replace("@USERNAME@", '') html = html.replace("@PASSWORD@", '') html = html.replace("@SCRIPT@", "") - html = html.replace("@THEME@", str(self.core.configGet('web', 'logintheme'))) html = html.replace("@CHECKED@", "") return html -- 2.18.1