diff options
author | Georg Ehrke <ownclouddev@georgswebsite.de> | 2011-11-12 15:09:37 +0100 |
---|---|---|
committer | Georg Ehrke <ownclouddev@georgswebsite.de> | 2011-11-12 15:09:37 +0100 |
commit | e5a3ab8aad0b0deb312a97acb3fc808b497b0544 (patch) | |
tree | 5f7074a651b979cd0c9659de3f8d3fb6066fa37b /apps/calendar/templates | |
parent | 03d9fab3c0cf3a3c50259d6a33439a998628b45c (diff) | |
parent | ef124c3e21ceae49f0f704589a833d1208d99c65 (diff) | |
download | nextcloud-server-e5a3ab8aad0b0deb312a97acb3fc808b497b0544.tar.gz nextcloud-server-e5a3ab8aad0b0deb312a97acb3fc808b497b0544.zip |
Merge branch 'master' into fullcalendar
Diffstat (limited to 'apps/calendar/templates')
-rw-r--r-- | apps/calendar/templates/part.eventform.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/apps/calendar/templates/part.eventform.php b/apps/calendar/templates/part.eventform.php index 8588b9168f7..dfa5fb8c78a 100644 --- a/apps/calendar/templates/part.eventform.php +++ b/apps/calendar/templates/part.eventform.php @@ -13,9 +13,7 @@ <select id="category" name="categories[]" multiple="multiple" title="<?php echo $l->t("Select category") ?>"> <?php if (!isset($_['categories'])) {$_['categories'] = array();} - foreach($_['category_options'] as $category){ - echo '<option value="' . $category . '"' . (in_array($category, $_['categories']) ? ' selected="selected"' : '') . '>' . $category . '</option>'; - } + echo html_select_options($_['category_options'], $_['categories'], array('combine'=>true)); ?> </select></td> <th width="75px"> <?php echo $l->t("Calendar");?>:</th> @@ -23,9 +21,7 @@ <select style="width:140px;" name="calendar"> <?php if (!isset($_['calendar'])) {$_['calendar'] = false;} - foreach($_['calendar_options'] as $calendar){ - echo '<option value="' . $calendar['id'] . '"' . ($_['calendar'] == $calendar['id'] ? ' selected="selected"' : '') . '>' . $calendar['displayname'] . '</option>'; - } + echo html_select_options($_['calendar_options'], $_['calendar'], array('value'=>'id', 'label'=>'displayname')); ?> </select></td> </tr> @@ -66,9 +62,7 @@ <select name="repeat" style="width:350px;"> <?php if (isset($_['repeat_options'])) { - foreach($_['repeat_options'] as $id => $label){ - echo '<option value="' . $id . '"' . ($_['repeat'] == $id ? ' selected="selected"' : '') . '>' . $label . '</option>'; - } + echo html_select_options($_['repeat_options'], $_['repeat']); } ?> </select></td> |