[dev] [patches] consistent look for import/export pages

Francois Marier francois at nit.ca
Fri Jul 30 16:24:53 PDT 2004


These three patches make small adjustments to the HTML templates for
the import/export pages of Kronolith, Mnemo and Nag.  This is to have
them look exactly like Turba's.

Francois
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/kronolith/templates/data/export.inc kronolith/templates/data/export.inc
--- ../build/kronolith/templates/data/export.inc	Fri Jul 30 19:17:47 2004
+++ kronolith/templates/data/export.inc	Fri Jul 30 19:04:30 2004
@@ -1,6 +1,7 @@
 <form method="post" name="export" action="<?php echo Horde::downloadUrl(_("events.csv"), null, 'data.php') ?>">
 <?php Util::pformInput() ?>
 <input type="hidden" name="actionID" value="export" />
+<br />
 <table cellspacing="0" cellpadding="0" border="0" width="100%">
 <tr>
   <td>
diff -rpuN -X ../ignorelist ../build/kronolith/templates/data/import.inc kronolith/templates/data/import.inc
--- ../build/kronolith/templates/data/import.inc	Fri Apr  2 22:55:37 2004
+++ kronolith/templates/data/import.inc	Fri Jul 30 19:16:35 2004
@@ -35,7 +35,8 @@
     <?php endif; ?>
     <?php echo _("Select the file to import:") ?><br />
     <input type="file" name="import_file" class="fixed" size="40" />
-    <input type="submit" value="<?php echo _("Import") ?>" class="button" />
+    <br /><br />
+    <input type="submit" value="<?php echo _("Next") ?>" class="button" />
 <?php endif; ?>
   </td></tr></table>
   </td>
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/mnemo/templates/data/export.inc mnemo/templates/data/export.inc
--- ../build/mnemo/templates/data/export.inc	Thu Feb 12 15:04:56 2004
+++ mnemo/templates/data/export.inc	Fri Jul 30 19:10:35 2004
@@ -1,5 +1,6 @@
 <form method="post" name="export" action="<?php echo Horde::downloadUrl(_("notes.csv"), null, Horde::applicationUrl('data.php')) ?>">
 <input type="hidden" name="actionID" value="export" />
+<br />
 <table cellspacing="0" cellpadding="0" border="0" width="100%">
 <tr>
     <td>
diff -rpuN -X ../ignorelist ../build/mnemo/templates/data/import.inc mnemo/templates/data/import.inc
--- ../build/mnemo/templates/data/import.inc	Sat Apr  3 15:53:50 2004
+++ mnemo/templates/data/import.inc	Fri Jul 30 19:11:34 2004
@@ -36,6 +36,7 @@
 
         <?php echo _("Select the file to import:") ?><br />
         <input type="file" name="import_file" class="fixed" size="40" />
+        <br /><br />
         <input type="submit" value="<?php echo _("Next") ?>" class="button" />
     </td></tr></table>
     </td>
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/nag/templates/data/export.inc nag/templates/data/export.inc
--- ../build/nag/templates/data/export.inc	Thu Feb 12 15:04:56 2004
+++ nag/templates/data/export.inc	Fri Jul 30 18:59:15 2004
@@ -12,11 +12,13 @@
 <tr>
   <td class="item">
   <table border="0"><tr><td>
-    <b><?php echo _("Select the format to export to:") ?></b>&nbsp;
+    <?php echo _("Select the format to export to:") ?>&nbsp;
+    <br />
     <select name="exportID">
       <option value="<?php echo EXPORT_CSV ?>">CSV</option>
       <option value="<?php echo EXPORT_ICALENDAR ?>">iCalendar (vTodo)</option>
     </select>
+    <br /><br />
     <input type="submit" value="<?php echo _("Export") ?>" class="button" />
   </td></tr></table>
   </td>
diff -rpuN -X ../ignorelist ../build/nag/templates/data/import.inc nag/templates/data/import.inc
--- ../build/nag/templates/data/import.inc	Sat Apr  3 15:39:51 2004
+++ nag/templates/data/import.inc	Fri Jul 30 18:59:41 2004
@@ -13,14 +13,16 @@
 <tr>
   <td class="item">
   <table border="0"><tr><td>
-    <b><?php echo _("Select the source to import from:") ?></b>&nbsp;
+    <?php echo _("Select the source to import from:") ?>&nbsp;
+    <br />
     <select name="import_format">
       <option value="csv">CSV</option>
       <option value="vtodo">iCalendar (vTodo)</option>
     </select><br />
 
 <?php if (!$prefs->isLocked('default_tasklist') && count($tasklists = Nag::listTasklists(false, PERMS_EDIT))): ?>
-    <b><?php echo _("Which tasklist should the tasks be added to?") ?></b>&nbsp;
+    <?php echo _("Which tasklist should the tasks be added to?") ?>&nbsp;
+    <br />
     <select id="tasklist_target" name="tasklist_target">
     <?php
     $default = Nag::getDefaultTasklist(PERMS_EDIT);
@@ -35,8 +37,9 @@
 <?php endif; ?>
     <br />
 
-    <b><?php echo _("Select the file to import:") ?></b><br />
+    <?php echo _("Select the file to import:") ?><br />
     <input type="file" name="import_file" class="fixed" size="40" />
+    <br /><br />
     <input type="submit" value="<?php echo _("Next") ?>" class="button" />
   </td></tr></table>
   </td>


More information about the dev mailing list