summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui
diff options
context:
space:
mode:
authorKevin McCarthy <kmccarth@redhat.com>2007-10-17 13:12:43 -0700
committerKevin McCarthy <kmccarth@redhat.com>2007-10-17 13:12:43 -0700
commit0b2b499e4218c044208b14b40f987d901a9b176c (patch)
treeec3f58a98506ee4d4732a045c862a5b52bb96917 /ipa-server/ipa-gui
parent1fcc3c66508e1e232768ae6a17396c2e44c669d0 (diff)
downloadfreeipa-0b2b499e4218c044208b14b40f987d901a9b176c.tar.gz
freeipa-0b2b499e4218c044208b14b40f987d901a9b176c.tar.xz
freeipa-0b2b499e4218c044208b14b40f987d901a9b176c.zip
Add print media CSS. Rename delegation edit button to 'update'.
Diffstat (limited to 'ipa-server/ipa-gui')
-rw-r--r--ipa-server/ipa-gui/ipagui/static/css/style.css15
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/delegateedit.kid2
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/delegateform.kid4
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/master.kid2
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/usershow.kid10
5 files changed, 25 insertions, 8 deletions
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 @@
<h2>Edit Delegation</h2>
${form.display(action=tg.url("/delegate/update"), value=delegate,
- actionname='Edit')}
+ actionname='Update')}
</body>
</html>
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}"/>
<br/><br/>
</td>
- <td py:if='actionname == "Edit"'>
+ <td py:if='actionname == "Update"'>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<input type="button" class="deletebutton"
value="Delete Delegation"
@@ -179,7 +179,7 @@
<input type="submit" class="submitbutton" name="submit"
value="Cancel ${actionname}"/>
</td>
- <td py:if='actionname == "Edit"'>
+ <td py:if='actionname == "Update"'>
<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<input type="button" class="deletebutton"
diff --git a/ipa-server/ipa-gui/ipagui/templates/master.kid b/ipa-server/ipa-gui/ipagui/templates/master.kid
index cf359579a..d0c20cfb6 100644
--- a/ipa-server/ipa-gui/ipagui/templates/master.kid
+++ b/ipa-server/ipa-gui/ipagui/templates/master.kid
@@ -6,7 +6,7 @@
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title py:replace="''">Your title goes here</title>
<meta py:replace="item[:]"/>
- <style type="text/css" media="screen">
+ <style type="text/css" media="all">
@import "${tg.url('/static/css/style.css')}";
</style>
<script type="text/javascript" charset="utf-8" src="${tg.url('/static/javascript/prototype.js')}"></script>
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:
</table>
<div class="formsection" py:if='len(user_reports) &gt; 0'>Direct Reports</div>
- <div py:for="report in user_reports">
- <a href="${tg.url('/user/show', uid=report.uid)}"
- >${report.givenname} ${report.sn}</a>
- </div>
+ <ol>
+ <li py:for="report in user_reports">
+ <a href="${tg.url('/user/show', uid=report.uid)}"
+ >${report.givenname} ${report.sn}</a>
+ </li>
+ </ol>
<div class="formsection">Groups</div>
<div py:for="group in user_groups">