Styling mit Bootstrap
This commit is contained in:
parent
0d628fc321
commit
b8bce3c740
5 changed files with 46 additions and 37 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue