summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e86ddbf)
raw | patch | inline | side by side (parent: e86ddbf)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 12:19:37 +0000 (12:19 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 12:19:37 +0000 (12:19 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16991 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc
index 70ae2244fdc4459bedf1961abb7ee5f36ce86849..31ca651ed79072eea4dc50dbab832c8ff45a50a8 100644 (file)
}
$divlist = new divSelectBox("Kerberos Policies");
- $action = "<input type='image' src='images/lists/edit.png' class='center' name='policy_edit_%id'>";
- $action .= "<input type='image' src='images/lists/trash.png' class='center' name='policy_del_%id'>";
+ $action = image('images/lists/edit.png','policy_edit_%id');
+ $action .= image('images/lists/trash.png','policy_del_%id');
foreach($this->policies as $key => $policy){
if($policy['STATUS'] == "REMOVED") continue;
/* Remove policy requested
*/
if(preg_match("/^policy_del/",$name)){
- $id = preg_replace("/^policy_del_([0-9]*)_.*/i","\\1",$name);
+ $id = preg_replace("/^policy_del_([0-9]*)/i","\\1",$name);
if(isset($this->policies[$id])){
$this->RemovePolicy($id);
}
/* Edit Policy requested
*/
if(preg_match("/^policy_edit/",$name)){
- $id = preg_replace("/^policy_edit_([0-9]*)_.*/i","\\1",$name);
+ $id = preg_replace("/^policy_edit_([0-9]*)/i","\\1",$name);
if(isset($this->policies[$id])){
/* Load policy information, if not done before
diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/goKrbServer.tpl b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/goKrbServer.tpl
index 13de8e40e50b10ea72e630f23a660b0d0b445e47..34c6a589be7a3270d1792f0d89ed3d1fd64b6eeb 100644 (file)
<h3>{t}Kerberos kadmin access{/t}</h3>
- <table style='width:100%;'>
- <tr>
- <td>
- <table>
- <tr>
- <td>{t}Kerberos Realm{/t}{$must}</td>
- {render acl=$goKrbRealmACL}
- <td><input type='text' name="goKrbRealm" id="goKrbRealm" size=30 maxlength=60 value="{$goKrbRealm}"></td>
- {/render}
- </tr>
- </table>
- </td>
- </tr>
-{if $MIT_KRB}
- <tr>
- <td>
- <h3>{t}Policies{/t}</h3>
- <table style="width:100%;">
- <tr>
- <td>
- {render acl=$goKrbPolicyACL}
- {$divlist}
- {/render}
- </td>
- </tr>
- </table>
- <button type='submit' name='policy_add'>{msgPool type=addButton}</button>
+{t}Kerberos Realm{/t}{$must}
+ {render acl=$goKrbRealmACL}
+ <input type='text' name="goKrbRealm" id="goKrbRealm" size=30 maxlength=60 value="{$goKrbRealm}">
+ {/render}
- </td>
- </tr>
+{if $MIT_KRB}
+ <h3>{t}Policies{/t}</h3>
+ {render acl=$goKrbPolicyACL}
+ {$divlist}
+ {/render}
+ <button type='submit' name='policy_add'>{msgPool type=addButton}</button>
{/if}
- </table>
-<hr>
-<div style="width:100%; text-align:right;padding-top:10px;padding-bottom:3px;">
- <button type='submit' name='SaveService'>{msgPool type=saveButton}</button>
-
-
- <button type='submit' name='CancelService'>{msgPool type=cancelButton}</button>
+<hr>
+<div class="plugin-actions">
+ <button type='submit' name='SaveService'>{msgPool type=saveButton}</button>
+ <button type='submit' name='CancelService'>{msgPool type=cancelButton}</button>
</div>
<input type="hidden" name="goKrbServerPosted" value="1">
diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb5_policy.tpl b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb5_policy.tpl
index 254e225e51fecb1685df7069ee2204040bf811c6..4cb5bffc3b580fcff49e2702212b97daa3dff2bb 100644 (file)
<h3>{t}Policy settings{/t}</h3>
-<table style="width:100%">
+
+<table style="width:100%" summary="{t}Kerberos policy{/t}">
<tr>
<td class='right-border'>
- <table>
+ <table style="width:100%" summary="{t}Kerberos policy{/t}">
<tr>
- <td>{t}Policy name{/t}{$must}</td>
- <td><input type="text" name="name" value="{$name}"></td>
+ <td>{t}Policy name{/t}{$must}</td>
+ <td><input type="text" name="name" value="{$name}"></td>
</tr>
<tr>
- <td>{t}Minimum password length{/t}</td>
- <td><input type="text" name="PW_MIN_LENGTH" value="{$PW_MIN_LENGTH}"></td>
+ <td>{t}Minimum password length{/t}</td>
+ <td><input type="text" name="PW_MIN_LENGTH" value="{$PW_MIN_LENGTH}"></td>
</tr>
<tr>
- <td>{t}Required different characters{/t}</td>
- <td><input type="text" name="PW_MIN_CLASSES" value="{$PW_MIN_CLASSES}"></td>
+ <td>{t}Required different characters{/t}</td>
+ <td><input type="text" name="PW_MIN_CLASSES" value="{$PW_MIN_CLASSES}"></td>
</tr>
<tr>
- <td>{t}Password history size{/t}</td>
- <td><input type="text" name="PW_HISTORY_NUM" value="{$PW_HISTORY_NUM}"></td>
+ <td>{t}Password history size{/t}</td>
+ <td><input type="text" name="PW_HISTORY_NUM" value="{$PW_HISTORY_NUM}"></td>
</tr>
</table>
- </td>
- <td>
- <table>
+ </td>
+ <td>
+
+ <table style="width:100%" summary="{t}Kerberos policy{/t}">
+ <tr>
<td>
- <tr>
- <td>{t}Minimum password lifetime{/t}</td>
- <td><input type="text" name="PW_MIN_LIFE" value="{$PW_MIN_LIFE}"> {t}seconds{/t}</td>
- </tr>
- <tr>
- <td>{t}Password lifetime{/t}</td>
- <td><input type="text" name="PW_MAX_LIFE" value="{$PW_MAX_LIFE}"> {t}seconds{/t}</td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2"><br>{$POLICY_REFCNT}</td>
- </tr>
- </table>
-<input type="hidden" name="Policy_Posted" value="1">
-<hr>
+ <td>{t}Minimum password lifetime{/t}</td>
+ <td><input type="text" name="PW_MIN_LIFE" value="{$PW_MIN_LIFE}"> {t}seconds{/t}</td>
+ </tr>
+ <tr>
+ <td>{t}Password lifetime{/t}</td>
+ <td><input type="text" name="PW_MAX_LIFE" value="{$PW_MAX_LIFE}"> {t}seconds{/t}</td>
+ </tr>
+ </table>
-<div style="text-align:right; padding:4px;">
- <button type='submit' name='save_policy'>{msgPool type=okButton}</button>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <br>
+ {$POLICY_REFCNT}
+ </td>
+ </tr>
+</table>
-
- <button type='submit' name='cancel_policy'>{msgPool type=cancelButton}</button>
+<input type="hidden" name="Policy_Posted" value="1">
+<hr>
+<div class="plugin-actions">
+ <button type='submit' name='save_policy'>{msgPool type=okButton}</button>
+ <button type='submit' name='cancel_policy'>{msgPool type=cancelButton}</button>
</div>