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

Patch: Improves usability of upload form


Go to End
Reply


2 Posts   2100 Views

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

6 April 2007 at 5:10pm

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

230 Posts

11 April 2007 at 11:31am

Ok, applied. Thanks! :D