mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Small UI tweeks
- Rename buttons - Add fake "logged in as" text - Increase font size and spacing for sidebar - Fix search messages for no results - Open ipa footer link in new window
This commit is contained in:
@@ -108,7 +108,7 @@ class Root(controllers.RootController):
|
||||
def userupdate(self, **kw):
|
||||
"""Updates an existing user"""
|
||||
restrict_post()
|
||||
if kw.get('submit') == 'Cancel':
|
||||
if kw.get('submit') == 'Cancel Edit':
|
||||
turbogears.flash("Edit user cancelled")
|
||||
raise turbogears.redirect('/usershow', uid=kw.get('uid'))
|
||||
|
||||
|
||||
@@ -29,12 +29,20 @@ body {
|
||||
margin:0;
|
||||
}
|
||||
|
||||
#header #logo {
|
||||
}
|
||||
|
||||
#header #login {
|
||||
float:right;
|
||||
}
|
||||
|
||||
|
||||
#nav {
|
||||
background:#cc0000;
|
||||
color:#fff;
|
||||
min-height:3px;
|
||||
max-height:3px;
|
||||
clear:both;
|
||||
}
|
||||
|
||||
#nav ul {
|
||||
@@ -75,7 +83,11 @@ body {
|
||||
float:left;
|
||||
width:10%;
|
||||
padding: 5px;
|
||||
font-size: small;
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
#sidebar p {
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
#sidebar h2 {
|
||||
|
||||
@@ -26,10 +26,15 @@
|
||||
|
||||
<div id="page">
|
||||
<div id="header">
|
||||
<a href="${tg.url('/')}"><img
|
||||
src="${tg.url('/static/images/logo.png')}"
|
||||
border="0"
|
||||
/></a>
|
||||
<div id="login">
|
||||
Logged in as: ace
|
||||
</div>
|
||||
<div id="logo">
|
||||
<a href="${tg.url('/')}"><img
|
||||
src="${tg.url('/static/images/logo.png')}"
|
||||
border="0"
|
||||
/></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="nav"><!--
|
||||
@@ -38,21 +43,25 @@
|
||||
|
||||
<div id="sidebar">
|
||||
<h2>Tasks</h2>
|
||||
<p>
|
||||
<a href="${tg.url('/usernew')}">Add Person</a><br/>
|
||||
<a href="${tg.url('/userlist')}">Find People</a><br/>
|
||||
<br />
|
||||
</p>
|
||||
<p>
|
||||
<a href="${tg.url('/groupindex')}">Add Group</a><br/>
|
||||
<a href="${tg.url('/groupindex')}">Find Groups</a><br/>
|
||||
<br />
|
||||
</p>
|
||||
<p>
|
||||
<a href="${tg.url('/')}">Manage Policy</a><br/>
|
||||
<a href="${tg.url('/')}">Self Service</a><br/>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div py:replace="[item.text]+item[:]"></div>
|
||||
|
||||
|
||||
<div id="footer">
|
||||
<a href="http://www.freeipa.com/">Powered by FreeIPA</a>
|
||||
<a href="http://www.freeipa.com/" target="_blank">Powered by FreeIPA</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -158,11 +158,13 @@
|
||||
<tr>
|
||||
<th>
|
||||
<br />
|
||||
<input type="submit" class="submitbutton" name="submit" value="Submit"/>
|
||||
<input type="submit" class="submitbutton" name="submit"
|
||||
value="Update Person"/>
|
||||
</th>
|
||||
<td>
|
||||
<br />
|
||||
<input type="submit" class="submitbutton" name="submit" value="Cancel" />
|
||||
<input type="submit" class="submitbutton" name="submit"
|
||||
value="Cancel Edit" />
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
@@ -6,20 +6,18 @@
|
||||
<title>Find People</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Find People</h2>
|
||||
<div id="search">
|
||||
<form action="${tg.url('/userlist')}" method="post">
|
||||
Search:
|
||||
<input id="uid" type="text" name="uid" value="${uid}" />
|
||||
<input type="submit" />
|
||||
<input type="submit" value="Find People"/>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
document.getElementById("uid").focus();
|
||||
</script>
|
||||
</div>
|
||||
<div py:if='users != None'>
|
||||
<div py:if='(users != None) and (len(users) > 0)'>
|
||||
<h2>${len(users)} results returned:</h2>
|
||||
<table id="resultstable" py:if='len(users) > 0'>
|
||||
<table id="resultstable">
|
||||
<tr>
|
||||
<th>
|
||||
<label class="fieldlabel" py:content="fields.uid.label" />
|
||||
@@ -61,9 +59,9 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div py:if='len(users) == 0'>
|
||||
No results found.
|
||||
</div>
|
||||
</div>
|
||||
<div py:if='(users != None) and (len(users) == 0)'>
|
||||
<h2>No results found for "${uid}"</h2>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -167,15 +167,11 @@
|
||||
|
||||
<table class="formtable" cellpadding="2" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<th>
|
||||
<br />
|
||||
<input type="submit" class="submitbutton" name="submit" value="Submit"/>
|
||||
</th>
|
||||
<th></th>
|
||||
<td>
|
||||
<br />
|
||||
<input type="submit" class="submitbutton" name="submit" value="Cancel" />
|
||||
<input type="submit" class="submitbutton" name="submit" value="Add Person"/>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user