Tweak import overwrite warning.
authorJan Schneider <jan@horde.org>
Mon, 15 Mar 2010 23:05:48 +0000 (23:05 +0000)
committerJan Schneider <jan@horde.org>
Mon, 15 Mar 2010 23:14:28 +0000 (00:14 +0100)
kronolith/templates/chunks/calendar.php
kronolith/themes/screen.css

index 5ce3fa1..b4ae289 100644 (file)
@@ -74,10 +74,11 @@ $file_upload = $GLOBALS['browser']->allowFileUploads();
   <div class="kronolithDialogInfo"><?php echo _("iCalendar is a computer file format which allows internet users to send meeting requests and tasks to other internet users, via email, or sharing files with an extension of .ics. Recipients of the iCalendar data file (with supporting software, such as an email client or calendar application) can respond to the sender easily or counter propose another meeting date/time.") ?></div>
   <label for="kronolithCalendarinternalImport"><?php echo _("Import ICS file") ?>:</label>
   <input type="file" id="kronolithCalendarinternalImport" name="import_file" /><br />
-  <input type="checkbox" id="kronolithCalendarinternalImportOver" name="purge" />
-  <label for="kronolithCalendarinternalImportOver"><?php echo _("Replace existing calendar with the imported one?") ?></label>
-  <?php echo _("Warning: This deletes all entries in your current calendar.") ?>
-  <br />
+  <?php printf(_("Importing should %s %sreplace this calendar%s."),
+               '<input type="checkbox" id="kronolithCalendarinternalImportOver" name="purge" />',
+               '<label for="kronolithCalendarinternalImportOver">', '</label>') ?>
+  <span class="kronolithDialogWarning"><?php printf(_("%sWarning:%s also %sdeletes all events%s currently in the calendar."), '<strong>', '</strong>', '<strong>', '</strong>') ?></span>
+  <hr />
   <label><?php echo _("Export ICS file") ?>:</label>
   <a id="kronolithCalendarinternalExport"><?php echo _("Calendar ICS file") ?></a>
 </div>
index a436d4f..78095a8 100644 (file)
@@ -649,8 +649,17 @@ a.kronolithFormCancel {
     text-decoration: underline;
 }
 .kronolithDialogInfo {
+    background: transparent url('graphics/alerts/message.png') 0 0 no-repeat;
+    padding-left: 20px;
     font-style: italic;
 }
+.kronolithDialogWarning {
+    background: transparent url('graphics/alerts/warning.png') 0 0 no-repeat;
+    padding-left: 20px;
+}
+.kronolithDialogWarning strong {
+    color: #f00;
+}
 
 /* Navigation bar */
 #kronolithBar {
@@ -800,6 +809,14 @@ div.kronolithFormActions {
 .kronolithDialog .tabset .kronolithSeparator {
     float: left;
 }
+.kronolithDialog hr {
+   margin: 5px 0;
+   height: 0;
+   line-height: 0;
+   border-width: 1px 0;
+   border-color: #ccc transparent #fff;
+   border-style: solid none;
+}
 
 .kronolithTabsOption {
     position: relative;