Blame view

sources/apps/calendar/templates/part.editcalendar.php 1.52 KB
d1bafeea1   Kload   [fix] Upgrade to ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  <?php
  /**
   * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
   * This file is licensed under the Affero General Public License version 3 or
   * later.
   * See the COPYING-README file.
   */
  ?>
  <td id="<?php p($_['new'] ? 'new' : 'edit') ?>calendar_dialog" title="<?php p($_['new'] ? $l->t("New calendar") : $l->t("Edit calendar")); ?>" colspan="6">
  <table width="100%" style="border: 0;">
  <tr>
  	<th><?php p($l->t('Displayname')) ?></th>
  	<td>
  		<input id="displayname_<?php p($_['calendar']['id']) ?>" type="text" value="<?php p(OCP\Util::sanitizeHTML($_['calendar']['displayname'])) ?>">
  	</td>
  </tr>
  <?php if (!$_['new']): ?>
  <?php endif; ?>
  <tr>
  	<th><?php p($l->t('Calendar color')) ?></th>
  	<td>
  		<select id="calendarcolor_<?php p($_['calendar']['id']) ?>" class="colorpicker">
  			<?php
  			if (!isset($_['calendar']['calendarcolor'])) {$_['calendar']['calendarcolor'] = false;}
  			foreach($_['calendarcolor_options'] as $color) {
  				print_unescaped('<option value="' . OC_Util::sanitizeHTML($color) . '"' . ($_['calendar']['calendarcolor'] == $color ? ' selected="selected"' : '') . '>' . OC_Util::sanitizeHTML($color) . '</option>');
  			}
  			?>
  		</select>
  	</td>
  </tr>
  </table>
  <input style="float: left;"  id="editCalendar-submit" type="button" data-id="<?php p($_['new'] ? "new" : $_['calendar']['id']) ?>" value="<?php p($_['new'] ? $l->t("Save") : $l->t("Submit")); ?>">
  <input style="float: left;"  id="editCalendar-cancel"  type="button" data-id="<?php p($_['new'] ? "new" : $_['calendar']['id']) ?>" value="<?php p($l->t("Cancel")); ?>">
  </td>