diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-05 16:59:55 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-05 16:59:55 -0700 |
commit | 4e242b5dc1d84881be542ef890773e771619e429 (patch) | |
tree | 6a16d2f1ef7a48b9f5e42251a83db46b2052578c | |
parent | d036eb0ac95b541c0e4ab65a03acf72bcc8e27a8 (diff) | |
download | freeipa-4e242b5dc1d84881be542ef890773e771619e429.tar.gz freeipa-4e242b5dc1d84881be542ef890773e771619e429.tar.xz freeipa-4e242b5dc1d84881be542ef890773e771619e429.zip |
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
-rw-r--r-- | ipa-server/ipa-gui/ipagui/controllers.py | 2 | ||||
-rw-r--r-- | ipa-server/ipa-gui/ipagui/static/css/style.css | 14 | ||||
-rw-r--r-- | ipa-server/ipa-gui/ipagui/templates/master.kid | 23 | ||||
-rw-r--r-- | ipa-server/ipa-gui/ipagui/templates/usereditform.kid | 6 | ||||
-rw-r--r-- | ipa-server/ipa-gui/ipagui/templates/userlist.kid | 14 | ||||
-rw-r--r-- | ipa-server/ipa-gui/ipagui/templates/usernewform.kid | 8 |
6 files changed, 42 insertions, 25 deletions
diff --git a/ipa-server/ipa-gui/ipagui/controllers.py b/ipa-server/ipa-gui/ipagui/controllers.py index 047b51876..73945fe4c 100644 --- a/ipa-server/ipa-gui/ipagui/controllers.py +++ b/ipa-server/ipa-gui/ipagui/controllers.py @@ -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')) diff --git a/ipa-server/ipa-gui/ipagui/static/css/style.css b/ipa-server/ipa-gui/ipagui/static/css/style.css index cefb63169..d64f6d559 100644 --- a/ipa-server/ipa-gui/ipagui/static/css/style.css +++ b/ipa-server/ipa-gui/ipagui/static/css/style.css @@ -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 { diff --git a/ipa-server/ipa-gui/ipagui/templates/master.kid b/ipa-server/ipa-gui/ipagui/templates/master.kid index 2f39afc41..71412eaa4 100644 --- a/ipa-server/ipa-gui/ipagui/templates/master.kid +++ b/ipa-server/ipa-gui/ipagui/templates/master.kid @@ -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> diff --git a/ipa-server/ipa-gui/ipagui/templates/usereditform.kid b/ipa-server/ipa-gui/ipagui/templates/usereditform.kid index dc61f38c5..4d4269b87 100644 --- a/ipa-server/ipa-gui/ipagui/templates/usereditform.kid +++ b/ipa-server/ipa-gui/ipagui/templates/usereditform.kid @@ -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> diff --git a/ipa-server/ipa-gui/ipagui/templates/userlist.kid b/ipa-server/ipa-gui/ipagui/templates/userlist.kid index de4c4eb2f..1f3e72b00 100644 --- a/ipa-server/ipa-gui/ipagui/templates/userlist.kid +++ b/ipa-server/ipa-gui/ipagui/templates/userlist.kid @@ -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> diff --git a/ipa-server/ipa-gui/ipagui/templates/usernewform.kid b/ipa-server/ipa-gui/ipagui/templates/usernewform.kid index d4863a3df..5f21bde41 100644 --- a/ipa-server/ipa-gui/ipagui/templates/usernewform.kid +++ b/ipa-server/ipa-gui/ipagui/templates/usernewform.kid @@ -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> |