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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Patch: Improves usability of upload form


Go to End


2590 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 :)