summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipagui/templates/delegategroupsearch.kid
blob: f97355f8bc99ddda78de8a6bbce276f8fa99af62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div xmlns:py="http://purl.org/kid/ns#">

<?python
from ipagui.helpers import ipahelper
?>
  <div py:if='(groups != None) and (len(groups) > 0)'>
    <div id="search-results-count">
      ${len(groups)} results returned:
      <span py:if="counter &lt; 0">
        (truncated)
      </span>
    </div>

    <div py:for="group in groups">
      <?python
      group_dn_esc = ipahelper.javascript_string_escape(group.dn)
      group_cn_esc = ipahelper.javascript_string_escape(group.cn)
      which_group_esc = ipahelper.javascript_string_escape(which_group)
      ?>

      ${group.cn}
      <a href=""
        onclick="selectGroup('${which_group_esc}', '${group_dn_esc}', '${group_cn_esc}');
                return false;"
      >select</a>
    </div>
  </div>
  <div py:if='(groups != None) and (len(groups) == 0)'>
    No results found for "${criteria}"
  </div>
</div>