From 0b2b499e4218c044208b14b40f987d901a9b176c Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Wed, 17 Oct 2007 13:12:43 -0700 Subject: Add print media CSS. Rename delegation edit button to 'update'. --- ipa-server/ipa-gui/ipagui/static/css/style.css | 15 +++++++++++++++ ipa-server/ipa-gui/ipagui/templates/delegateedit.kid | 2 +- ipa-server/ipa-gui/ipagui/templates/delegateform.kid | 4 ++-- ipa-server/ipa-gui/ipagui/templates/master.kid | 2 +- ipa-server/ipa-gui/ipagui/templates/usershow.kid | 10 ++++++---- 5 files changed, 25 insertions(+), 8 deletions(-) (limited to 'ipa-server') diff --git a/ipa-server/ipa-gui/ipagui/static/css/style.css b/ipa-server/ipa-gui/ipagui/static/css/style.css index 625eaa544..2515a4bb6 100644 --- a/ipa-server/ipa-gui/ipagui/static/css/style.css +++ b/ipa-server/ipa-gui/ipagui/static/css/style.css @@ -255,3 +255,18 @@ div.resize-handle { left:0; } + +/* + * Overrides for printing + */ +@media print { + #header { display:none; } + #nav { display:none; } + #sidebar { display:none; } + #footer { display:none; } + #main_content { width: 95%; margin:0; padding:0; border-left-style: none; } + + .submitbutton { display:none; } + .deletebutton { display:none; } +} + diff --git a/ipa-server/ipa-gui/ipagui/templates/delegateedit.kid b/ipa-server/ipa-gui/ipagui/templates/delegateedit.kid index a4235830c..233d1a24e 100644 --- a/ipa-server/ipa-gui/ipagui/templates/delegateedit.kid +++ b/ipa-server/ipa-gui/ipagui/templates/delegateedit.kid @@ -10,7 +10,7 @@

Edit Delegation

${form.display(action=tg.url("/delegate/update"), value=delegate, - actionname='Edit')} + actionname='Update')} diff --git a/ipa-server/ipa-gui/ipagui/templates/delegateform.kid b/ipa-server/ipa-gui/ipagui/templates/delegateform.kid index 26d136531..638394347 100644 --- a/ipa-server/ipa-gui/ipagui/templates/delegateform.kid +++ b/ipa-server/ipa-gui/ipagui/templates/delegateform.kid @@ -71,7 +71,7 @@ value="Cancel ${actionname}"/>

- +           - +
          Your title goes here - diff --git a/ipa-server/ipa-gui/ipagui/templates/usershow.kid b/ipa-server/ipa-gui/ipagui/templates/usershow.kid index 6250fe6d8..319567384 100644 --- a/ipa-server/ipa-gui/ipagui/templates/usershow.kid +++ b/ipa-server/ipa-gui/ipagui/templates/usershow.kid @@ -253,10 +253,12 @@ else:
Direct Reports
-
- ${report.givenname} ${report.sn} -
+
    +
  1. + ${report.givenname} ${report.sn} +
  2. +
Groups
-- cgit From f8a9d2021af4bb0920cd86d565c1ab720ea4b691 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Wed, 17 Oct 2007 13:42:45 -0700 Subject: Sort users by last name. Make labeleduri a link. --- ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py | 8 ++++---- ipa-server/ipa-gui/ipagui/templates/usershow.kid | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'ipa-server') diff --git a/ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py b/ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py index e003ab96d..425df0074 100644 --- a/ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py +++ b/ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py @@ -32,19 +32,19 @@ class IPAController(controllers.Controller): def sort_group_member(self, a, b): """Comparator function used for sorting group members.""" if a.getValue('uid') and b.getValue('uid'): - if a.getValue('givenname') == b.getValue('givenname'): - if a.getValue('sn') == b.getValue('sn'): + if a.getValue('sn') == b.getValue('sn'): + if a.getValue('givenName') == b.getValue('givenName'): if a.getValue('uid') == b.getValue('uid'): return 0 elif a.getValue('uid') < b.getValue('uid'): return -1 else: return 1 - elif a.getValue('sn') < b.getValue('sn'): + elif a.getValue('givenName') < b.getValue('givenName'): return -1 else: return 1 - elif a.getValue('givenname') < b.getValue('givenname'): + elif a.getValue('sn') < b.getValue('sn'): return -1 else: return 1 diff --git a/ipa-server/ipa-gui/ipagui/templates/usershow.kid b/ipa-server/ipa-gui/ipagui/templates/usershow.kid index 319567384..9220b9747 100644 --- a/ipa-server/ipa-gui/ipagui/templates/usershow.kid +++ b/ipa-server/ipa-gui/ipagui/templates/usershow.kid @@ -248,7 +248,9 @@ else: