summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55ed6b3)
raw | patch | inline | side by side (parent: 55ed6b3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Jan 2010 10:01:02 +0000 (10:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Jan 2010 10:01:02 +0000 (10:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15077 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/askClassName.tpl | patch | blob | history | |
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/askClassName.tpl b/gosa-plugins/fai/admin/fai/askClassName.tpl
index 7c4329ae709e90d86f0eaa2da912c96dc4268314..e76465ad9c0fbbe88a731c96422ea66d824f8b2f 100644 (file)
</td>
</tr>
</table>
-
-<table summary="">
- <tr>
- <td>
- <input type="submit" name="UseSelectedClass" value="{t}Use{/t}" {$ClassNamesAvailable}>
- </td>
- </tr>
- <tr>
- <td><b>{t}A new class name.{/t}</b>
- </td>
- <td>
- <input type="submit" name="UseNewClass" value="{t}Use{/t}">
- </td>
- </tr>
-</table>
<p class="seperator"> </p>
-
+
+<p style="text-align:right">
+ <input type="submit" name="edit_continue" value="{t}Continue{/t}">
+ <input type="submit" name="edit_cancel" value="{msgPool type='cancelButton'}">
+</p>
+
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!--
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 310f203288d0044d2947cf26ba8a278947dec563..9a9b232e8253083504e49dfc376594ca5adc842c 100644 (file)
$this->registerAction("new_package","newEntry");
$this->registerAction("new_partition","newEntry");
+ $this->registerAction("newClassNameSelected","newClassNameSelected");
+
$this->registerAction("editByGroup","editByGroup");
$this->registerAction("createBranch","createBranch");
$this->registerAction("createFreeze","createFreeze");
}
}elseif(isset($this->dialogObject->objectClass)){
$this->dn = "new" ;
- $a_setup= $this->get_type(array("objectClass"=>array($this->dialogObject->objectClass)));
+ $type= $this->get_type(array("objectClass"=>array($this->dialogObject->objectClass)));
$name = $this->dialogObject->save();
- if(class_exists($a_setup[0])){
- $this->tabObject = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai");
- $this->tabObject->set_acl_base($this->base);
- $this->tabObject->by_object[$a_setup[1]]->cn = $name;
- $this->tabObject->parent = &$this;
+ if(class_exists($type[0])){
+ $this->closeDialogs();
+ management::newEntry('newEntry',array(),array(),$type[0],$type[2],$type[1]);
+ $this->tabObject->set_acl_base($this->acl_base);
+ $this->tabObject->by_object[$type[1]]->cn = $name;
}
}
}
if(isset($_POST['new_package'])) $action['action'] = "new_package";
if(isset($_POST['new_partition'])) $action['action'] = "new_partition";
+ if(isset($_POST['edit_continue'])) $action['action'] = "newClassNameSelected";
+ if(isset($_POST['edit_cancel'])) $action['action'] = "cancel";
+
if(isset($_POST['faiGroupHandle_cancel'])) $action['action'] = "cancel";
if(isset($_POST['CancelBranchName'])) $action['action'] = "cancel";
if(isset($_POST['delete_branch_confirm'])) $action['action'] = "removeBranchConfirmed";