summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 63bc3d8)
raw | patch | inline | side by side (parent: 63bc3d8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Jun 2006 11:09:00 +0000 (11:09 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Jun 2006 11:09:00 +0000 (11:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3763 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/macro/class_divListMacros.inc | patch | blob | history | |
plugins/gofon/macro/class_gofonMacroManagement.inc | patch | blob | history |
diff --git a/plugins/gofon/macro/class_divListMacros.inc b/plugins/gofon/macro/class_divListMacros.inc
index b86f1dce02cc114df87d6410b06c5de1df007228..1ab12136faea67482208af0a8087de8888cdca92 100755 (executable)
/* set Page header */
$this->AddHeader(array("string" => " ", "attach" => "style='text-align:center;width:20px;'"));
- $this->AddHeader(array("string" => _("Username")." / "._("Department"), "attach" => "style=''"));
+ $this->AddHeader(array("string" => _("macro name")." / "._("Department"), "attach" => "style=''"));
$this->AddHeader(array("string" => _("Visible"), "attach" => "style='width:50px;'"));
$this->AddHeader(array("string" => _("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'" ));
{
$action = "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
- name='user_edit_%KEY%' title='"._("Edit user")."'>";
+ name='user_edit_%KEY%' title='"._("Edit macro")."'>";
$action .= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'
- name='user_del_%KEY%' title='"._("Delete user")."'>";
+ name='user_del_%KEY%' title='"._("Delete macro")."'>";
$empty = "<img class='center' src='images/nothing.png' style='width:16px;height:16px;' alt=''>";
$macroimg = "<img class='center' src='images/list_macro.png' alt='"._("Macro")."' title='%s'>";
diff --git a/plugins/gofon/macro/class_gofonMacroManagement.inc b/plugins/gofon/macro/class_gofonMacroManagement.inc
index 23b1720b3a5ed5d3aacc7eccfa8a2e7bbbc03be6..f494bc828a40af5f4f97467cbd40d61542d53036 100755 (executable)
/* Finish mac edit is triggered by the tabulator dialog, so
the user wants to save edited data. Check and save at this
point. */
- if ((isset($_POST['edit_finish'])) && (isset($this->macrotabs->config))){
+ if ((isset($_POST['edit_finish']) || isset($_POST['edit_apply'])) && (isset($this->macrotabs->config))){
/* Check tabs, will feed message array */
$this->macrotabs->last= $this->macrotabs->current;
$this->macrotabs->save();
gosa_log ("Macro object'".$this->dn."' has been saved");
- /* macro has been saved successfully, remove lock from
- LDAP. */
- if ($this->dn != "new"){
- del_lock ($this->dn);
- }
+ if (!isset($_POST['edit_apply'])){
+ /* macro has been saved successfully, remove lock from
+ LDAP. */
+ if ($this->dn != "new"){
+ del_lock ($this->dn);
+ }
- unset ($this->macrotabs);
- $this->macrotabs= NULL;
- unset ($_SESSION['objectinfo']);
+ unset ($this->macrotabs);
+ $this->macrotabs= NULL;
+ unset ($_SESSION['objectinfo']);
+ }
} else {
/* Ok. There seem to be errors regarding to the tab data,
show message and continue as usual. */
/* Don't show buttons if tab dialog requests this */
if (!$this->macrotabs->by_object[$this->macrotabs->current]->dialog){
$display.= "<p style=\"text-align:right\">\n";
- $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Save")."\">\n";
+ $display.= "<input type=\"submit\" name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
$display.= " \n";
+ if ($this->dn != "new"){
+ $display.= "<input type=submit name=\"edit_apply\" value=\""._("Apply")."\">\n";
+ $display.= " \n";
+ }
$display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
$display.= "</p>";
}
$Regex = $this->DivListMacro->Regex;
$Filter = "(&(cn=".$Regex.")(objectClass=goFonMacro))";
$Flags = GL_SIZELIMIT;
- $Attrs = array("cn","description","displayName");
+ $Attrs = array("cn","description","displayName","goFonMacroVisible");
/* Prepare for ls or search*/
if($SubSearch){