summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eadfca6)
raw | patch | inline | side by side (parent: eadfca6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Mar 2010 14:21:04 +0000 (14:21 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Mar 2010 14:21:04 +0000 (14:21 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16530 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/sudo/admin/sudo/sudo-filter.tpl b/gosa-plugins/sudo/admin/sudo/sudo-filter.tpl
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="contentboxh">
- <p class="contentboxh">
- <img src="images/launch.png" align="right" alt="[F]">{t}Filter{/t}
- </p>
-</div>
-
-<div class="contentboxb">
-
- <table summary='{t}Filter options{/t}' style="width:100%;border-top:1px solid #B0B0B0;">
- <tr>
- <td>
- <label for="NAME">
- <img src="images/lists/search.png" align=middle> {t}Name{/t}
- </label>
- </td>
- <td>
- {$NAME}
- </td>
- </tr>
- <tr>
- <td>
- <label for="USER">
- <img src="images/lists/search.png" align=middle> {t}User{/t}
- </label>
- </td>
- <td>
- {$USER}
- </td>
- </tr>
- </table>
-
- <table summary='{t}Filter options{/t}' width="100%" style="background:#EEEEEE;border-top:1px solid #B0B0B0;">
- <tr>
- <td width="100%" align="right">
- {$APPLY}
- </td>
- </tr>
- </table>
-</div>
diff --git a/gosa-plugins/sudo/admin/sudo/sudo-filter.xml b/gosa-plugins/sudo/admin/sudo/sudo-filter.xml
index 43f7ee850e03d47bd2d0e11d21c79692016440d5..4382f380d29183c3b884419980692e4ee79bd48b 100644 (file)
<?xml version="1.0" encoding="UTF-8"?>
<filterdef>
+
<definition>
<category>sudo</category>
- <template>sudo-filter.tpl</template>
<initial>true</initial>
+ <default>default</default>
+ <scope>auto</scope>
+ <attribute>dn</attribute>
+ <attribute>objectClass</attribute>
+ <attribute>cn</attribute>
+ <attribute>description</attribute>
+ <attribute>sudoUser</attribute>
+ <attribute>sudoHost</attribute>
</definition>
<search>
+ <tag>default</tag>
+ <label>Default filter</label>
<query>
<backend>LDAP</backend>
- <filter>(&(objectClass=sudoRole)$NAME$USER)</filter>
- <attribute>dn</attribute>
- <attribute>objectClass</attribute>
- <attribute>cn</attribute>
- <attribute>description</attribute>
- <attribute>sudoUser</attribute>
- <attribute>sudoHost</attribute>
+ <filter>(&(objectClass=sudoRole)(cn=$))</filter>
</query>
- <scope>auto</scope>
- </search>
-
- <element>
- <type>textfield</type>
- <tag>NAME</tag>
- <size>20</size>
- <maxlength>60</maxlength>
- <default></default>
- <unset></unset>
- <set>(|(cn=*$*)(description=*$*))</set>
- <alphabet>true</alphabet>
<autocomplete>
- <backend>LDAP</backend>
- <filter>(&(objectClass=sudoRole)(|(cn=*$NAME*)(description=*$NAME*)))</filter>
<attribute>cn</attribute>
- <attribute>description</attribute>
<frequency>0.5</frequency>
<characters>3</characters>
</autocomplete>
- </element>
+ </search>
- <element>
- <type>textfield</type>
- <tag>USER</tag>
- <size>20</size>
- <maxlength>60</maxlength>
- <default></default>
- <unset></unset>
- <set>(|(sudoHost=*$*)(sudoUser=*$*))</set>
- <alphabet>true</alphabet>
- <autocomplete>
+ <search>
+ <tag>byMember</tag>
+ <label>By member</label>
+ <query>
<backend>LDAP</backend>
- <filter>(&(objectClass=sudoRole)(|(sudoHost=*$USER*)(sudoUser=*$USER*)))</filter>
- <attribute>sudoHost</attribute>
- <attribute>sudoUser</attribute>
+ <filter>(&(objectClass=sudoRole)(|(sudoUser=$)(sudoHost=$)))</filter>
+ </query>
+ <autocomplete>
+ <attribute>cn</attribute>
<frequency>0.5</frequency>
<characters>3</characters>
</autocomplete>
- </element>
+ </search>
</filterdef>
diff --git a/gosa-plugins/sudo/admin/sudo/sudo-list.tpl b/gosa-plugins/sudo/admin/sudo/sudo-list.tpl
index 95283d917bc7114a91553ccc3ae47d52796f30af..a8712ff6fae57bcfab34c229d50d85acf437ff74 100644 (file)
<input type='image' src='images/empty.png' name='no_action_posted' value='do_nothing' alt='' style='width:2px;height:2px;'>
-<table summary="" style="width:100%;height:100%; vertical-align:top; text-align:left;" cellpadding=2>
- <tr>
- <td style="vertical-align:top; width:100%;">
- <div class="contentboxh">
- <p class="contentboxh"> {$HEADLINE} {$SIZELIMIT}</p>
- </div>
-
- <div class="contentboxb">
- <div style='background:white;padding:0px;padding:3px;'>
- <table><tr>
- <td>{$ROOT} </td><td>{$BACK} </td><td>{$HOME} </td><td>{$RELOAD} </td><td>{$SEPARATOR} </td><td><img src='images/rocket.png' alt='' class='center'></td><td> {$ACTIONS}</td>
- </tr></table>
- </div>
- </div>
-
- <div style='height:4px;'>
- </div>
- {$LIST}
- </td>
- <td style='vertical-align:top;min-width:270px'>
- {$FILTER}
- </td>
- </tr>
-</table>
+<div id="mainlist">
+
+ <div class="mainlist-header">
+ <p>{$HEADLINE} {$SIZELIMIT}</p>
+ <div class="mainlist-nav">
+ <table>
+ <tr>
+ <td>{$ROOT}</td>
+ <td>{$BACK}</td>
+ <td>{$HOME}</td>
+ <td>{$RELOAD}</td>
+ <td class="left-border">{t}Base{/t} {$BASE}</td>
+ <td class="left-border">{$ACTIONS}</td>
+ <td class="left-border">{$FILTER}</td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ {$LIST}
+</div>
+
+<div class="clear"></div>
<input type="hidden" name="ignore">