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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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


2 Posts   2323 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
Andante

Community Member, 231 Posts

11 April 2007 at 11:31am

Ok, applied. Thanks! :D