Styling mit Bootstrap
This commit is contained in:
parent
0d628fc321
commit
b8bce3c740
5 changed files with 46 additions and 37 deletions
7
htman/static/css/bootstrap.min.css
vendored
Normal file
7
htman/static/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -8,11 +8,17 @@
|
|||
<head/>
|
||||
|
||||
<body>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6 col-md-4 col-sm-offset-3 col-md-offset-4">
|
||||
<form name="show_htpasswd" action="manage" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="name">Wiki:</label>
|
||||
<input type="text" size="30" name="zone" id="name" />
|
||||
<input type="submit" name="submit" value="Show" />
|
||||
<input type="text" name="zone" id="name" class="form-control"/>
|
||||
</div>
|
||||
<button type="submit" name="submit" class="btn btn-primary">Show</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -14,29 +14,14 @@
|
|||
|
||||
<py:match path="body" once="true">
|
||||
<body py:attrs="select('@*')">
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a class="navbar-brand" href="/admin/wikis">Start</a>
|
||||
</nav>
|
||||
|
||||
<div id="header">
|
||||
<table border="0">
|
||||
<tr><td>
|
||||
<a href="/"><img src="/logo.png" alt="sl-logo" style="border:none"/></a>
|
||||
</td>
|
||||
<td><h1><a href="/">systemausfall.org</a> </h1></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="container" style="margin-top:20px;">
|
||||
|
||||
<div id="content">${select('*|text()')}</div>
|
||||
|
||||
<div id="footer">
|
||||
<table width="100%">
|
||||
<tr><td style="width:70%"><div class="text">
|
||||
"A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away." -- Antoine de Saint-Exupéry
|
||||
</div></td>
|
||||
<td style="width:10%"><div class="link">
|
||||
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</py:match>
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<head/>
|
||||
|
||||
<body>
|
||||
<ul>
|
||||
<li py:for="zone_name, admin_url in mapping">
|
||||
<ul class="list-group">
|
||||
<li py:for="zone_name, admin_url in mapping" class="list-group-item">
|
||||
<a href="${admin_url}">${zone_name}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -8,21 +8,26 @@
|
|||
<head/>
|
||||
|
||||
<body>
|
||||
<h2>Manage user access for <i>${zone}</i></h2>
|
||||
<h2>Manage user access for wiki: <a href="https://systemausfall.org/wikis/${zone}" target="_blank">${zone}</a></h2>
|
||||
|
||||
<div py:if="error" class="error">${error}</div>
|
||||
<div py:if="success" class="success">${success}</div>
|
||||
<div py:if="error" class="alert alert-danger" role="alert">${error}</div>
|
||||
<div py:if="success" class="alert alert-success">${success}</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6 col-md-4 col-sm-offset-3 col-md-offset-4">
|
||||
<h3>Add user</h3>
|
||||
<form name="add-passwd" action="" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="username_add">User name:</label>
|
||||
<input type="text" size="20" name="username" id="username_add" />
|
||||
<br/>
|
||||
<input type="text" name="username" id="username_add" class="form-control"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password_add">Password:</label>
|
||||
<input type="password" size="20" name="password" id="password_add" />
|
||||
<input type="password" name="password" id="password_add" class="form-control"/>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="new" />
|
||||
<input type="hidden" name="zone" value="${zone}"/>
|
||||
<input type="submit" name="submit" value="Add user" />
|
||||
<button type="submit" name="submit" class="btn btn-primary">Add user</button>
|
||||
</form>
|
||||
|
||||
<py:if test="usernames">
|
||||
|
@ -30,32 +35,38 @@
|
|||
|
||||
<h3>Change password</h3>
|
||||
<form name="update-passwd" action="" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="username_update">User name:</label>
|
||||
<select name="username" id="username_update" size="1">
|
||||
<select name="username" id="username_update" class="form-control">
|
||||
<option py:for="username in usernames">${username}</option>
|
||||
</select>
|
||||
<br/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password_update">New password:</label>
|
||||
<input type="password" size="20" name="password" id="password_update" />
|
||||
<input type="password" name="password" id="password_update" class="form-control"/>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="update" />
|
||||
<input type="hidden" name="zone" value="${zone}"/>
|
||||
<input type="submit" name="submit" value="Change password" />
|
||||
<button type="submit" name="submit" class="btn btn-primary">Change password</button>
|
||||
</form>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h3>Delete user</h3>
|
||||
<form name="del-passwd" action="" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="username_del">User name:</label>
|
||||
<select name="username" id="username_del" size="1">
|
||||
<select name="username" id="username_del" class="form-control">
|
||||
<option py:for="username in usernames">${username}</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="del" />
|
||||
<input type="hidden" name="zone" value="${zone}"/>
|
||||
<input type="submit" name="submit" value="Delete user" />
|
||||
<button type="submit" name="submit" class="btn btn-primary">Delete user</button>
|
||||
</form>
|
||||
</py:if>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
Loading…
Reference in a new issue