Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Patch: Improves usability of upload form


Reply

2 Posts   1972 Views

Avatar
elijahlofgren

6 April 2007 at 5:10pm Google Summer of Code Hacker, 222 Posts

This patch to cms\code\AssetAdmin.php makes the upload form a little easier to understand by adding "Files ready to upload:" before the list of queued files.

It also changes the button text from upload to "Upload Files Listed Below:"

Index: AssetAdmin.php
===================================================================
--- AssetAdmin.php   (revision 2)
+++ AssetAdmin.php   (working copy)
@@ -108,9 +108,9 @@
         new HiddenField("action_doUpload", "", "1"),
         new FileField("Files[0]" , "Choose file "),
         new LiteralField('UploadButton',"
-            <input type='submit' value='Upload' name='action_upload' id='Form_UploadForm_action_upload' class='action' />
+            <input type='submit' value='Upload Files Listed Below' name='action_upload' id='Form_UploadForm_action_upload' class='action' />
         "),
-         new LiteralField('MultifileCode',"
+         new LiteralField('MultifileCode',"<p>Files ready to upload:</p>
            <div id='Form_UploadForm_FilesList'></div>
            <script>
               var multi_selector = new MultiSelector($('Form_UploadForm_FilesList'), null, $('Form_UploadForm_action_upload'));

Hope this helps,

Elijah :)

Avatar
Andy

11 April 2007 at 11:31am 230 Posts

Ok, applied. Thanks! :D