summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: feaebb9)
raw | patch | inline | side by side (parent: feaebb9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 May 2006 07:59:23 +0000 (07:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 May 2006 07:59:23 +0000 (07:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3484 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/applications/class_applicationGeneric.inc | patch | blob | history | |
plugins/admin/applications/generic.tpl | patch | blob | history |
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index e20dcc26ed4641c3327c0d21f90a0ece193b5555..bf90cea8cb900abbbd1f2e2d5c103a005224abef 100644 (file)
$smarty->assign("namemode", "readonly");
$smarty->assign("selectmode", "disabled");
}
+
+ /* Base select dialog */
+ $once = true;
+ foreach($_POST as $name => $value){
+ if(preg_match("/^chooseBase/",$name) && $once){
+ $once = false;
+ $this->dialog = new baseSelectDialog($this->config);
+ $this->dialog->setCurrentBase($this->base);
+ }
+ }
+
+ /* Dialog handling */
+ if(is_object($this->dialog)){
+ /* Must be called before save_object */
+ $this->dialog->save_object();
+
+ if($this->dialog->isClosed()){
+ $this->dialog = false;
+ }elseif($this->dialog->isSelected()){
+ $this->base = $this->dialog->isSelected();
+ $this->dialog= false;
+ }else{
+ return($this->dialog->execute());
+ }
+ }
/* Get random number for pictures */
srand((double)microtime()*1000000);
$smarty->assign($val, $this->$val);
$smarty->assign($val."ACL", chkacl($this->acl, $val));
}
+ $smarty->assign("baseACL", chkacl($this->acl,"base"));
/* Checkboxes */
foreach (array("G" => "exec_for_groupmembers", "O" => "overwrite_config",
index f0e3eef4a930ab074637aa6d00ea41bbbc5fbce4..7c4128216e8aa8a088279f8d19eaf7928100fed0 100644 (file)
<td><LABEL for="base">{t}Base{/t}{$must}</LABEL></td>
<td>
<select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}"
- {if $isReleaseApplikation} disabled {/if}>
+ {if $isReleaseApplikation} disabled {/if} {$baseACL}>
{html_options options=$bases selected=$base_select}
</select>
+ {if $baseACL == "" && !$isReleaseApplikation}
+ <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+ {else}
+ <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+ {/if}
+
</td>
</tr>
</table>