Commit Graph

85 Commits

Author SHA1 Message Date
colymba
425cf9cffe Added proper visual clues about updated records 2013-12-05 18:29:47 +02:00
colymba
0eab8d9659 Bulk editing is now separated from main logic
Created separate handler and js
2013-12-05 17:48:01 +02:00
colymba
767e151c06 API bulk actions use separate handlers
Bulk actions are now handled by separate classes and should extend
GridFieldBulkActionHandler. Bulk action matching should be defined in
$url_handlers
2013-12-02 00:54:39 +02:00
colymba
f54f0ce223 FIX Refactor JS bulk action handling
JS bulk action handling now works for any custom action
2013-12-01 18:51:30 +02:00
colymba
d01b27c589 API bulk action front-end data are configurable
Bulk action front-end behaviour and style can now be configured via
array( 'isAjax' => true, 'icon' => 'accept', 'isDestructive' => false )
passed to addBulkAction()
2013-12-01 13:31:35 +02:00
colymba
2ee566a99e API bulk manager actions are now editable
Bulk actions can now be added/removed via component's addBulkAction()
and removeBulkAction()
2013-11-30 19:30:32 +02:00
colymba
f58e6c91bc FIX #48 move URL generation before output
handling potential onAfterWrite changes on the record
2013-07-31 20:57:10 +03:00
colymba
cf47c6d69a FIX fileRelationName references 2013-06-26 20:53:24 +03:00
colymba
6a105b9a96 API img field config now fileRelationName FIX 40
parameter is to be passed without 'ID' at the end. Implementation is now
more consistent.
2013-06-26 19:46:46 +03:00
colymba
35bfd865ec FIX $allowed_actions declaration 2013-06-26 19:11:31 +03:00
colymba
8a1eff6839 Added translations (en+fr) 2013-06-23 19:13:59 +03:00
colymba
88cf826322 Added translations (en+fr) 2013-06-23 19:10:22 +03:00
colymba
9bc46687b1 housekeeping, comments and formatting 2013-06-23 18:17:42 +03:00
colymba
8089c14447 added finish button 2013-06-23 17:48:37 +03:00
colymba
7972cef1f1 FIX tmpl.js requirement 2013-06-23 16:22:25 +03:00
colymba
fc61727c3e clean up form attributes + ajax reponse 2013-06-16 17:09:13 +03:00
colymba
3fa751d301 upload is now done by UploadField
UploadField does all the uploading and Image/File object creation.
Record creation and link to gridField relation is done by upload method
2013-06-16 16:35:40 +03:00
colymba
9b4608f3d3 latest SS3.1 branch compatibility 2013-06-02 21:07:00 +03:00
colymba
cdbf3708a0 @a2nt non-ajax loading fix for bulkEditing 2013-05-19 20:01:41 +03:00
Tony Air
5616e02798 Non ajax loading
This small fix let's user to refresh bulk uploading page.
2013-05-07 23:11:57 +07:00
Tom Densham
b0bda93d1d Use populateCMSDataFields to return default DataObject values
I have edited the getRecordHTMLFormFields method to run populateCMSDataFields so that default values set in your DataObject get pulled through.

Let me know if this is submitted to the right branch.
2013-05-07 16:19:17 +02:00
colymba
7828354788 API GridFieldBulkEditingTools component removed
this isn't needed since the HTML Fragment it was creating isn't used anymore
2013-04-29 19:07:58 +03:00
colymba
5d0b844592 Switch to HTML Classes for Select+Btn
Fixes several issues with multiple GridFields on a page with actions
being applied accross all GridFields
2013-04-29 19:01:32 +03:00
colymba
5b79b94496 Move BulkManager commands to header
BulkManager has it's own header and template
2013-04-16 23:38:35 +03:00
colymba
6110d81c94 Add bulkUpload btn template + move to top 2013-04-16 21:33:50 +03:00
colymba
30e6d4bd52 FIX #22 update static variable to private 2013-04-04 22:58:09 +03:00
MattyBalaam
5cbacb40b0 Update GridFieldBulkImageUpload_Request.php
Silverstripe 3.1.0 requires statics to be defined as private

http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0
2013-03-28 17:24:22 +00:00
colymba
60a5e48979 add max upload file size config
Bulk upload maximum file size can now be set through
setConfig('maxFileSize', Xbytes )
2013-03-26 10:48:12 +02:00
colymba
2bfd2a8309 Removed save+finish btn 2013-03-04 11:50:41 +02:00
colymba
bc8f2bda59 FIX #3, FIX #11 should work with all RelationList 2013-03-04 11:44:53 +02:00
colymba
7546bd08c0 clean up : removed update+finish btn references 2013-03-04 10:56:03 +02:00
colymba
3d3e50e596 FIX disabled button not working in FF + IE
buttons are just visually disabled via JS for now
2013-03-04 10:54:28 +02:00
s-m
c26fae6aaa FIX: Forgot to include the classname that can be derived from the config-option 'imageFieldName'... 2013-02-02 18:26:48 +01:00
Thierry François
381d6a28ad Merge pull request #13 from s-m/create-callback
NEW: Added a callback before writing the record for the first time
2013-02-02 08:19:17 -08:00
Steffen Maaß
09554b27b4 NEW: Added a callback before writing the record for the first time, allowing the corresponding DataObject to execute code related to the current gridField. 2013-02-02 13:45:52 +01:00
Steffen Maaß
c5228ea024 NEW: Subclasses of Image are now instantiated and used, according to the has_one definition of the corresponding DataObject 2013-02-02 13:42:54 +01:00
colymba
67958b4e37 Add ui-state to save and delete buttons
Switch buttons between enabled and disabled as necessary
2013-01-17 23:32:54 +02:00
colymba
a0ebac8f7d Hide that bogus 'save & finish' button 2013-01-17 23:05:46 +02:00
colymba
eb944b6aa8 FIX #8 Add config option for sequential uploads
setting Component option 'sequentialUploads' to true will upload files
one by one in the order they were selected
2013-01-10 19:23:36 +02:00
colymba
efe4e35c9c FIX #7 $has_one config is now inherited
Fixes bug where no default $has_one field would be found if the relation
is on the parent class
2013-01-09 23:28:55 +02:00
Damian Mooyman
c623c95111 BUG Extended previous fix to GridFieldBulkManager 2012-11-22 18:17:16 -08:00
Damian Mooyman
447ab87601 BUG Error setting options
When setting options that have a NULL value by default (such as imageFieldName) the setConfig function would incorrectly assume the option was not available and would silently ignore.

This fix implements a correct option validation mechanism, and throws an error if an incorrect option assignment is attempted.
2012-11-23 15:09:11 +13:00
colymba
ad919af544 Add select option 2012-09-05 21:36:05 +03:00
colymba
7a0b32eafd Removed old useless methode 2012-09-05 20:18:24 +03:00
colymba
e7c7239ada Unescape Form Fields POST data as Helper methode
Moved escaping or sent POST data into the Helper class since it is the
same everywhere.
2012-09-05 20:17:19 +03:00
colymba
861d4128dc FIX: update methode now saves has_ fields 2012-09-05 20:07:55 +03:00
colymba
fd4f046ad5 updated fields can now be saved
changes made in bulk editing are now saved: db fields + relations.
Fixing some DOM elements IDs and URLs
2012-08-26 23:59:25 +03:00
colymba
8f7a753d7f cleaning up and adding comments 2012-08-18 15:51:18 +03:00
colymba
a9519c3528 update handler link and ToggleFields labels 2012-08-18 15:44:09 +03:00
colymba
a99034ff2d Fields value population works with relations
handling has_one, has_many and many_many relations when populating
fileds values. Still needs testing though.
2012-08-18 15:43:31 +03:00