2011-09-08 14:29:29 +04:00
|
|
|
<td id="<?php echo $_['new'] ? 'new' : 'edit' ?>calendar_dialog" title="<?php echo $_['new'] ? $l->t("New calendar") : $l->t("Edit calendar"); ?>" colspan="4">
|
2011-08-31 22:20:46 +04:00
|
|
|
<table width="100%" style="border: 0;">
|
|
|
|
<tr>
|
|
|
|
<th><?php echo $l->t('Displayname') ?></th>
|
|
|
|
<td>
|
|
|
|
<input id="displayname_<?php echo $_['calendar']['id'] ?>" type="text" value="<?php echo $_['calendar']['displayname'] ?>">
|
|
|
|
</td>
|
|
|
|
</tr>
|
2011-09-08 14:29:29 +04:00
|
|
|
<?php if (!$_['new']): ?>
|
2011-08-31 22:20:46 +04:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
2011-09-08 14:29:29 +04:00
|
|
|
<input id="active_<?php echo $_['calendar']['id'] ?>" type="checkbox"<?php echo $_['calendar']['active'] ? ' checked="checked"' : '' ?>>
|
2011-08-31 22:20:46 +04:00
|
|
|
<label for="active_<?php echo $_['calendar']['id'] ?>">
|
|
|
|
<?php echo $l->t('Active') ?>
|
|
|
|
</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2011-09-08 14:29:29 +04:00
|
|
|
<?php endif; ?>
|
2011-08-31 22:20:46 +04:00
|
|
|
<tr>
|
|
|
|
<th><?php echo $l->t('Description') ?></th>
|
|
|
|
<td>
|
|
|
|
<textarea id="description_<?php echo $_['calendar']['id'] ?>"><?php echo $_['calendar']['description'] ?></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><?php echo $l->t('Calendar color') ?></th>
|
|
|
|
<td>
|
|
|
|
<input id="calendarcolor_<?php echo $_['calendar']['id'] ?>" type="text" value="<?php echo $_['calendar']['calendarcolor'] ?>">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-09-08 14:29:29 +04:00
|
|
|
<input style="float: left;" type="button" onclick="oc_cal_calendar_submit(this, <?php echo $_['new'] ? "'new'" : $_['calendar']['id'] ?>);" value="<?php echo $_['new'] ? $l->t("Save") : $l->t("Submit"); ?>">
|
|
|
|
<input style="float: left;" type="button" onclick="oc_cal_calendar_cancel(this, <?php echo $_['new'] ? "'new'" : $_['calendar']['id'] ?>);" value="<?php echo $l->t("Cancel"); ?>">
|
2011-08-31 22:20:46 +04:00
|
|
|
</td>
|