summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/web/static/css/default/style.css21
-rw-r--r--module/web/templates/default/login.html34
2 files changed, 55 insertions, 0 deletions
diff --git a/module/web/static/css/default/style.css b/module/web/static/css/default/style.css
index c4d7dc44e..326111680 100644
--- a/module/web/static/css/default/style.css
+++ b/module/web/static/css/default/style.css
@@ -151,6 +151,27 @@ header .logo {
margin-top: 12px;
font-family: sans-serif
}
+
+/*
+ Login
+*/
+.login {
+ vertical-align: middle;
+ text-align: center;
+ border: 1px;
+ border-color:#000000;
+ border-width:2px;
+ border-style:solid;
+ padding: 15px;
+ -moz-border-radius: 15px;
+ border-radius: 15px;
+}
+
+.login div{
+ vertical-align: middle;
+ text-align: center;
+ padding: 3px;
+}
/*
Footer
diff --git a/module/web/templates/default/login.html b/module/web/templates/default/login.html
new file mode 100644
index 000000000..914ec6f16
--- /dev/null
+++ b/module/web/templates/default/login.html
@@ -0,0 +1,34 @@
+{% extends 'default/base.html' %}
+
+{% block title %}{{_("Login")}} - {{super()}} {% endblock %}
+
+{% block content %}
+
+<div class="login">
+ <div class="login_title">
+ {{_("Login")}}
+ </div>
+ <form action="" method="post" accept-charset="utf-8" id="login">
+ <input type="hidden" name="do" value="login" />
+ <div class="login_user">
+ <span>{{_("Username")}}</span>
+ <input type="text" size="20" name="username" />
+ </div>
+ <div class="login_password">
+ <span>{{_("Password")}}</span>
+ <input type="password" size="20" name="password" />
+ </div>
+ <div class="login_submit">
+ <input type="submit" value="Login" class="button" />
+ </div>
+ </form>
+</div>
+
+
+{% if errors %}
+<p>{{_("Your username and password didn't match. Please try again.")}}</p>
+ {{ _("To reset your login data or add an user run:") }} <b> python pyLoadCore.py -u</b>
+{% endif %}
+
+
+{% endblock %} \ No newline at end of file