summaryrefslogtreecommitdiffstats
path: root/apps/calendar/templates
diff options
context:
space:
mode:
authorGeorg Ehrke <ownclouddev@georgswebsite.de>2012-01-14 14:22:30 +0100
committerGeorg Ehrke <ownclouddev@georgswebsite.de>2012-01-14 14:22:30 +0100
commit868cf4629051c557312b63acbb3e6facd8f0f86e (patch)
treef8bc9b372a37faaceeead53ea7877804eb215502 /apps/calendar/templates
parentf9c4975a456940bb24cacd6723a37f2857fbc65c (diff)
downloadnextcloud-server-868cf4629051c557312b63acbb3e6facd8f0f86e.tar.gz
nextcloud-server-868cf4629051c557312b63acbb3e6facd8f0f86e.zip
improve import function
Diffstat (limited to 'apps/calendar/templates')
-rw-r--r--apps/calendar/templates/part.import.php19
1 files changed, 14 insertions, 5 deletions
diff --git a/apps/calendar/templates/part.import.php b/apps/calendar/templates/part.import.php
index 13685cfb273..8f46484b42b 100644
--- a/apps/calendar/templates/part.import.php
+++ b/apps/calendar/templates/part.import.php
@@ -1,7 +1,9 @@
<div id="calendar_import_dialog" title="<?php echo $l->t("Import a calendar file"); ?>">
-<input type="hidden" id="filename" value="<?php echo $_GET["filename"];?>">
-<input type="hidden" id="path" value="<?php echo $_GET["path"];?>">
-<p style="text-align:center;"><b><?php echo $l->t('Please choose the calendar'); ?></b></h2>
+<div id="form_container">
+<input type="hidden" id="filename" value="<?php echo $_['filename'];?>">
+<input type="hidden" id="path" value="<?php echo $_['path'];?>">
+<input type="hidden" id="progressfile" value="<?php echo md5(session_id()) . '.txt';?>">
+<p style="text-align:center;"><b><?php echo $l->t('Please choose the calendar'); ?></b>
<select style="width:100%;" id="calendar" name="calendar">
<?php
$calendar_options = OC_Calendar_Calendar::allCalendars(OC_User::getUser());
@@ -13,6 +15,13 @@ echo html_select_options($calendar_options, $calendar_options[0]['id'], array('v
<input type="text" style="width: 97%;" placeholder="<?php echo $l->t('Name of new calendar'); ?>" id="newcalendar" name="newcalendar">
</div>
<input type="button" value="<?php echo $l->t("Import");?>!" id="startimport">
-<br><br>
-<div id="progressbar" style="display: none;"></div>
+</div>
+<div id="progressbar_container" style="display: none">
+<p style="text-align:center;"><b><?php echo $l->t('Importing calendar'); ?></b>
+<div id="progressbar"></div>
+<div id="import_done" style="display: none;">
+<p style="text-align:center;"><b><?php echo $l->t('Calendar imported successfully'); ?></b></p>
+<input type="button" value="<?php echo $l->t('Close Dialog'); ?>" id="import_done_button">
+</div>
+</div>
</div> \ No newline at end of file