nextcloud/apps/calendar/templates/part.import.php

18 lines
1.0 KiB
PHP
Raw Normal View History

2012-01-13 16:57:46 +04:00
<div id="calendar_import_dialog" title="<?php echo $l->t("Import a calendar file"); ?>">
2011-10-04 00:50:10 +04:00
<input type="hidden" id="filename" value="<?php echo $_GET["filename"];?>">
<input type="hidden" id="path" value="<?php echo $_GET["path"];?>">
2012-01-13 16:57:46 +04:00
<p style="text-align:center;"><b><?php echo $l->t('Please choose the calendar'); ?></b></h2>
<select style="width:100%;" id="calendar" name="calendar">
2011-10-04 00:50:10 +04:00
<?php
2012-01-13 16:57:46 +04:00
$calendar_options = OC_Calendar_Calendar::allCalendars(OC_User::getUser());
$calendar_options[] = array('id'=>'newcal', 'displayname'=>$l->t('create a new calendar'));
echo html_select_options($calendar_options, $calendar_options[0]['id'], array('value'=>'id', 'label'=>'displayname'));
2011-10-04 00:50:10 +04:00
?>
2012-01-13 16:57:46 +04:00
</select>
<div id="newcalform" style="display: none;">
<input type="text" style="width: 97%;" placeholder="<?php echo $l->t('Name of new calendar'); ?>" id="newcalendar" name="newcalendar">
2011-10-04 00:50:10 +04:00
</div>
2012-01-13 16:57:46 +04:00
<input type="button" value="<?php echo $l->t("Import");?>!" id="startimport">
2011-10-04 00:50:10 +04:00
<br><br>
2012-01-13 16:57:46 +04:00
<div id="progressbar" style="display: none;"></div>
</div>