mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-29 10:21:18 -06:00
Merge with head.
This commit is contained in:
commit
4718fc6dff
@ -255,3 +255,18 @@ div.resize-handle {
|
|||||||
left:0;
|
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; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -32,19 +32,19 @@ class IPAController(controllers.Controller):
|
|||||||
def sort_group_member(self, a, b):
|
def sort_group_member(self, a, b):
|
||||||
"""Comparator function used for sorting group members."""
|
"""Comparator function used for sorting group members."""
|
||||||
if a.getValue('uid') and b.getValue('uid'):
|
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'):
|
if a.getValue('uid') == b.getValue('uid'):
|
||||||
return 0
|
return 0
|
||||||
elif a.getValue('uid') < b.getValue('uid'):
|
elif a.getValue('uid') < b.getValue('uid'):
|
||||||
return -1
|
return -1
|
||||||
else:
|
else:
|
||||||
return 1
|
return 1
|
||||||
elif a.getValue('sn') < b.getValue('sn'):
|
elif a.getValue('givenName') < b.getValue('givenName'):
|
||||||
return -1
|
return -1
|
||||||
else:
|
else:
|
||||||
return 1
|
return 1
|
||||||
elif a.getValue('givenname') < b.getValue('givenname'):
|
elif a.getValue('sn') < b.getValue('sn'):
|
||||||
return -1
|
return -1
|
||||||
else:
|
else:
|
||||||
return 1
|
return 1
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<h2>Edit Delegation</h2>
|
<h2>Edit Delegation</h2>
|
||||||
|
|
||||||
${form.display(action=tg.url("/delegate/update"), value=delegate,
|
${form.display(action=tg.url("/delegate/update"), value=delegate,
|
||||||
actionname='Edit')}
|
actionname='Update')}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
value="Cancel ${actionname}"/>
|
value="Cancel ${actionname}"/>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
</td>
|
</td>
|
||||||
<td py:if='actionname == "Edit"'>
|
<td py:if='actionname == "Update"'>
|
||||||
|
|
||||||
<input type="button" class="deletebutton"
|
<input type="button" class="deletebutton"
|
||||||
value="Delete Delegation"
|
value="Delete Delegation"
|
||||||
@ -179,7 +179,7 @@
|
|||||||
<input type="submit" class="submitbutton" name="submit"
|
<input type="submit" class="submitbutton" name="submit"
|
||||||
value="Cancel ${actionname}"/>
|
value="Cancel ${actionname}"/>
|
||||||
</td>
|
</td>
|
||||||
<td py:if='actionname == "Edit"'>
|
<td py:if='actionname == "Update"'>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<input type="button" class="deletebutton"
|
<input type="button" class="deletebutton"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
|
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
|
||||||
<title py:replace="''">Your title goes here</title>
|
<title py:replace="''">Your title goes here</title>
|
||||||
<meta py:replace="item[:]"/>
|
<meta py:replace="item[:]"/>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="all">
|
||||||
@import "${tg.url('/static/css/style.css')}";
|
@import "${tg.url('/static/css/style.css')}";
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" charset="utf-8" src="${tg.url('/static/javascript/prototype.js')}"></script>
|
<script type="text/javascript" charset="utf-8" src="${tg.url('/static/javascript/prototype.js')}"></script>
|
||||||
|
@ -248,15 +248,19 @@ else:
|
|||||||
<th>
|
<th>
|
||||||
<label class="fieldlabel" py:content="fields.labeleduri.label" />:
|
<label class="fieldlabel" py:content="fields.labeleduri.label" />:
|
||||||
</th>
|
</th>
|
||||||
<td>${user.get("labeleduri")}</td>
|
<td>
|
||||||
|
<a href="${user.get('labeleduri')}">${user.get('labeleduri')}</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="formsection" py:if='len(user_reports) > 0'>Direct Reports</div>
|
<div class="formsection" py:if='len(user_reports) > 0'>Direct Reports</div>
|
||||||
<div py:for="report in user_reports">
|
<ol>
|
||||||
|
<li py:for="report in user_reports">
|
||||||
<a href="${tg.url('/user/show', uid=report.uid)}"
|
<a href="${tg.url('/user/show', uid=report.uid)}"
|
||||||
>${report.givenname} ${report.sn}</a>
|
>${report.givenname} ${report.sn}</a>
|
||||||
</div>
|
</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
<div class="formsection">Groups</div>
|
<div class="formsection">Groups</div>
|
||||||
<div py:for="group in user_groups">
|
<div py:for="group in user_groups">
|
||||||
|
Loading…
Reference in New Issue
Block a user