working on configuration
This commit is contained in:
23
static/templates/css.st
Normal file
23
static/templates/css.st
Normal file
@@ -0,0 +1,23 @@
|
||||
label {
|
||||
display: block;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
#login form {
|
||||
width: 450px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error{
|
||||
display: block;
|
||||
text-align: center;
|
||||
background: orange;
|
||||
}
|
||||
|
||||
.user{
|
||||
background: lime;
|
||||
}
|
||||
@@ -1,14 +1,13 @@
|
||||
index(data) ::= <<
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<script src="static/jquery"></script>
|
||||
<script src="static/js"></script>
|
||||
<script src="jquery"></script>
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body>
|
||||
<span class="user">Logged in as <em>{data.user.name}</em></span>
|
||||
<span class="user">Logged in as <em>«data.user.name»</em></span>
|
||||
<h2>Users</h2>
|
||||
<h2>Lists</h2>
|
||||
</body>
|
||||
</html>
|
||||
>>
|
||||
</html>
|
||||
@@ -1,30 +1,28 @@
|
||||
login(data) ::= <<
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<script src="/static/jquery"></script>
|
||||
<script src="/static/js"></script>
|
||||
<link rel="stylesheet" href="/static/css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<h1>Widerhall login</h1>
|
||||
{if(data.error)}
|
||||
<span class="error">{data.error}</span>
|
||||
{endif}
|
||||
<form method="POST">
|
||||
<fieldset>
|
||||
<legend>Login-Daten</legend>
|
||||
<label>
|
||||
<input type="text" name="email" value="" id="email" />
|
||||
E-Mail-Adresse
|
||||
</label>
|
||||
<label>
|
||||
<input type="password" name="pass" value="" id="password" />
|
||||
Passwort
|
||||
</label>
|
||||
<button type="submit">Einloggen</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
>>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<script src="jquery"></script>
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<h1>Widerhall login</h1>
|
||||
«if(data.error)»
|
||||
<span class="error">«data.error»</span>
|
||||
«endif»
|
||||
<form method="POST">
|
||||
<fieldset>
|
||||
<legend>Login-Daten</legend>
|
||||
<label>
|
||||
<input type="text" name="email" value="" id="email" />
|
||||
E-Mail-Adresse
|
||||
</label>
|
||||
<label>
|
||||
<input type="password" name="pass" value="" id="password" />
|
||||
Passwort
|
||||
</label>
|
||||
<button type="submit">Einloggen</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user