summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1810d62)
raw | patch | inline | side by side (parent: 1810d62)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Aug 2007 08:55:51 +0000 (08:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Aug 2007 08:55:51 +0000 (08:55 +0000) |
Moved schedule options out of table.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7085 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7085 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/gotomasses/class_goto_task.inc | patch | blob | history | |
plugins/addons/gotomasses/goto_task.tpl | patch | blob | history |
diff --git a/plugins/addons/gotomasses/class_goto_task.inc b/plugins/addons/gotomasses/class_goto_task.inc
index a4b540561b1477cc5a525677a534f5536841e712..0fd58f422d91c0ba3a9bdd9fb8d1c522f5225946 100644 (file)
var $plDescription = "This does something";
var $parent = NULL;
- var $Expert = FALSE;
var $Minute = "*";
var $Hour = "*";
trigger_error("Missing parameter: '".$attr."' for goto_task contruction.");
}else{
$this->$attr = $data[$attr];
-
- /* Check if given value will be selectable via dropdown menus, else enable expert mode */
- if(in_array($attr, array("Minute","Hour","Day","Month","Weekday")) && !isset($tmp[$attr][$data[$attr]])){
- $this->Expert = TRUE;
- }
}
}
}else{
$smarty->assign("Months" , $tmp['Month']);
$smarty->assign("Weekdays", $tmp['Weekday']);
$smarty->assign("OGroups" , $this->OGroups);
- $smarty->assign("Expert" , $this->Expert);
$smarty->assign("Actions" , $this->Actions);
$smarty->assign("Target_list" , $divlist->DrawList());
$smarty->assign("new" , $this->new);
{
if(isset($_POST['goto_task_posted'])){
plugin::save_object();
-
- if(isset($_POST['ToggleExpertMode'])){
- $this->Expert = !$this->Expert;
- }
}
}
index ccd46024b6cfdf8750f1c3e75e66778a4a0ae507..ee47505d0dfaa12633821b033953673697c8d9f7 100644 (file)
</tr>
<tr>
<td colspan="2">
- {if $Expert}
- <input type='submit' name='ToggleExpertMode' value="{t}Normal mode{/t}">
- <table>
- <tr>
- <td style='width:20%;'>
- {t}Minute{/t}
- {render acl=$MinuteACL}
- <input type='text' name='Minute' value="{$Minute}" style='width:50px;'>
- {/render}
- </td>
- <td style='width:20%;'>
- {render acl=$HourACL}
- {t}Hour{/t}
- <input type='text' name='Hour' value="{$Hour}" style='width:50px;'>
- {/render}
- </td>
- <td style='width:20%;'>
- {t}Day{/t}
- {render acl=$DayACL}
- <input type='text' name='Day' value="{$Day}" style='width:50px;'>
- {/render}
- </td>
- <td style='width:20%;'>
- {t}Month{/t}
- {render acl=$MonthACL}
- <input type='text' name='Month' value="{$Month}" style='width:50px;'>
- {/render}
- </td>
- <td style='width:20%;'>
- {t}Week day{/t}
- {render acl=$WeekdayACL}
- <input type='text' name='Weekday' value="{$Weekday}" style='width:50px;'>
- {/render}
- </td>
- </tr>
- </table>
- {else}
-
- <input type='submit' name='ToggleExpertMode' value="{t}Expert mode{/t}">
- <table>
- <tr>
- <td>{t}Minute{/t}
- </td>
- <td>
- {render acl=$MinuteACL}
- <select name='Minute'>
- {html_options options=$Minutes selected=$Minute}
- </select>
- {/render}
- </td>
- <td>{t}Hour{/t}
- </td>
- <td>
- {render acl=$HourACL}
- <select name='Hour'>
- {html_options options=$Hours selected=$Hour}
- </select>
- {/render}
- </td>
- <td>{t}Day{/t}
- </td>
- <td>
- {render acl=$DayACL}
- <select name='Day'>
- {html_options options=$Days selected=$Day}
- </select>
- {/render}
- </td>
- <td>{t}Month{/t}
- </td>
- <td>
- {render acl=$MonthACL}
- <select name='Month'>
- {html_options options=$Months selected=$Month}
- </select>
- {/render}
- </td>
- <td>{t}Week day{/t}
- </td>
- <td>
- {render acl=$WeekdayACL}
- <select name='Weekday'>
- {html_options options=$Weekdays selected=$Weekday}
- </select>
- {/render}
- </td>
- </tr>
- </table>
- {/if}
-
+ {t}Minute{/t}
+ {render acl=$MinuteACL}
+ <select name='Minute'>
+ {html_options options=$Minutes selected=$Minute}
+ </select>
+ {/render}
+ {t}Hour{/t}
+ {render acl=$HourACL}
+ <select name='Hour'>
+ {html_options options=$Hours selected=$Hour}
+ </select>
+ {/render}
+ {t}Day{/t}
+ {render acl=$DayACL}
+ <select name='Day'>
+ {html_options options=$Days selected=$Day}
+ </select>
+ {/render}
+ {t}Month{/t}
+ {render acl=$MonthACL}
+ <select name='Month'>
+ {html_options options=$Months selected=$Month}
+ </select>
+ {/render}
+ {t}Week day{/t}
+ {render acl=$WeekdayACL}
+ <select name='Weekday'>
+ {html_options options=$Weekdays selected=$Weekday}
+ </select>
+ {/render}
</td>
</tr>
</table>