[Freeipa-devel] [PATCH] print css
Kevin McCarthy
kmccarth at redhat.com
Wed Oct 17 20:15:24 UTC 2007
Add print css statements. Rename delegation edit button.
Also, change the direct reports to be a numbered list (bob's preference,
feel free to send feedback and cc him).
-Kevin
-------------- next part --------------
# HG changeset patch
# User Kevin McCarthy <kmccarth at redhat.com>
# Date 1192651963 25200
# Node ID 8985d3968184535bd1fedab77ac9e09910efc94d
# Parent 4a10c2e709590fec108a37510229e4ea22e5a371
Add print media CSS. Rename delegation edit button to 'update'.
diff -r 4a10c2e70959 -r 8985d3968184 ipa-server/ipa-gui/ipagui/static/css/style.css
--- a/ipa-server/ipa-gui/ipagui/static/css/style.css Wed Oct 17 11:55:39 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/static/css/style.css Wed Oct 17 13:12:43 2007 -0700
@@ -255,3 +255,18 @@ div.resize-handle {
left:0;
}
+
+/*
+ * Overrides for printing
+ */
+ at 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 -r 4a10c2e70959 -r 8985d3968184 ipa-server/ipa-gui/ipagui/templates/delegateedit.kid
--- a/ipa-server/ipa-gui/ipagui/templates/delegateedit.kid Wed Oct 17 11:55:39 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/templates/delegateedit.kid Wed Oct 17 13:12:43 2007 -0700
@@ -10,7 +10,7 @@
<h2>Edit Delegation</h2>
${form.display(action=tg.url("/delegate/update"), value=delegate,
- actionname='Edit')}
+ actionname='Update')}
</body>
</html>
diff -r 4a10c2e70959 -r 8985d3968184 ipa-server/ipa-gui/ipagui/templates/delegateform.kid
--- a/ipa-server/ipa-gui/ipagui/templates/delegateform.kid Wed Oct 17 11:55:39 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/templates/delegateform.kid Wed Oct 17 13:12:43 2007 -0700
@@ -71,7 +71,7 @@
value="Cancel ${actionname}"/>
<br/><br/>
</td>
- <td py:if='actionname == "Edit"'>
+ <td py:if='actionname == "Update"'>
<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/>
<input type="button" class="deletebutton"
diff -r 4a10c2e70959 -r 8985d3968184 ipa-server/ipa-gui/ipagui/templates/master.kid
--- a/ipa-server/ipa-gui/ipagui/templates/master.kid Wed Oct 17 11:55:39 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/templates/master.kid Wed Oct 17 13:12:43 2007 -0700
@@ -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 -r 4a10c2e70959 -r 8985d3968184 ipa-server/ipa-gui/ipagui/templates/usershow.kid
--- a/ipa-server/ipa-gui/ipagui/templates/usershow.kid Wed Oct 17 11:55:39 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/templates/usershow.kid Wed Oct 17 13:12:43 2007 -0700
@@ -253,10 +253,12 @@ else:
</table>
<div class="formsection" py:if='len(user_reports) > 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">
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4054 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20071017/a017e80f/attachment.bin>
More information about the Freeipa-devel
mailing list