Commit Graph

264 Commits

Author SHA1 Message Date
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
834d7466e7 Merge remote-tracking branch 'origin/0.3' 2012-09-06 19:05:49 +03:00
colymba
caae3c3ad3 Readme update 2012-09-06 19:05:16 +03:00
colymba
0f6ae01bb5 Refresh GridField after unlink/delete 2012-09-06 18:36:07 +03:00
colymba
7230602568 Merge branch 'master' of https://github.com/colymba/GridFieldBulkEditingTools
Conflicts:
	javascript/GridFieldBulkImageUpload.js
2012-09-06 00:01:02 +03:00
colymba
1ba3e0620d Added BulkManager to readme 2012-09-05 23:40:59 +03:00
colymba
ad919af544 Add select option 2012-09-05 21:36:05 +03:00
colymba
2ba88c2108 Prettier hack for avoiding edit navigation 2012-09-05 21:14:44 +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
63f51b4f8b FIX: force editing form height to auto 2012-09-05 20:00:50 +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
colymba
bc10b34df7 changed breadcrumbs title 2012-08-18 01:27:36 +03:00
colymba
e6f7db2044 separate cms fields fetching and populating
created new fn populateCMSDataFields used to populate fields with a
record's data
2012-08-18 01:05:19 +03:00
colymba
5e743abeb9 get a record's fields + fields name escaping
Possibility to get a specific record's pre-populated fields and added
function to escape formFields names when they are not converted ot html
yet
2012-08-16 23:32:03 +03:00
colymba
92d269bac3 Basic operations for bulk editing in place
Create Request_handler edit function returning the form, and JS
manipulation of the UI buttons etc..
2012-08-16 23:29:35 +03:00
colymba
471a1c1331 created unlink routine
record can now be unlinked for the related page
2012-08-15 21:16:41 +03:00
colymba
6dc217c0a0 FIX: cachebuster var was not unique
regenerate cachebuster var for each form its request
2012-08-13 18:07:30 +03:00
colymba
2f778a4214 FIX: cachebuster var was not unique
since we go through each form and send individual requests, cachebuster
var needs to be regenerated for each form
2012-08-13 18:05:14 +03:00
colymba
0d1f0af03a API: created ReqHdlr structure and delete routine
Request_Hanlder created with JS btn call and delete routine
2012-08-12 17:48:34 +03:00
colymba
e4df616474 action button interactive styling
change action button style and icon depending on selected action
2012-08-11 16:21:53 +03:00
colymba
d42fa2f4e3 API: creating GridFieldBulkManager basic elements
Create component's files and initial UI styles and behaviours
2012-08-11 01:19:13 +03:00
colymba
a6fee088c6 GridField button styling
Switch to html and add basic syle consistent with component set
2012-08-11 01:18:00 +03:00
colymba
0d3541b1c4 readme update 2012-08-10 00:55:01 +03:00
colymba
00b8827dca Updated readme
Main components set and individual infos and examples
2012-08-10 00:52:46 +03:00
colymba
079fb7fa36 UI behavior and visual enhancements
Switch Actions to FormActions buttons and add colored visual hints about
items status.
2012-08-10 00:30:50 +03:00
colymba
c67408bb90 Hide edit Form when update completed 2012-08-09 20:50:55 +03:00
colymba
feb39651bf FIX: only remove 'ID' off of imageFieldName
avoid conflict with imageFieldName containing 'ID'/'id' in their name
2012-08-09 20:28:52 +03:00
colymba
4e5271f527 FIX: fix field class detection
using the action function that returns the class...
2012-08-09 20:25:08 +03:00
colymba
b8a0a1e14f API: added forbidden filed classes
Some fields classes break the component. These have been added to a
forbidden list and cannot be removed from the blacklist.
2012-08-09 20:24:33 +03:00
colymba
c916d6ac12 FIX: editable fields list is an object in JSON
JSON output transformed array into object.
2012-08-09 19:38:20 +03:00
colymba
fe8e41aa40 cleaning up the code 2012-08-08 00:02:13 +03:00
colymba
cf0a3262f7 NEW: Defined global path to components folder
defined BULK_EDIT_TOOLS_PATH as root folder for Components, usefull in
Requirements and make install easier.
2012-08-07 23:56:59 +03:00
colymba
a141aba650 API: defined components set's HTML fragment
All bulk edit tools will now use "bulk-edit-tools" HTML fragment,
defined in base component GridFieldBulkEditingTools. Previous
"GridFieldBulkEditingTools" is now GridFieldBulkEditingHelper.
2012-08-07 23:51:54 +03:00
colymba
65d1e7c5cb API: custom upload folder
Possibility to set a custom upload folder through Component $config
2012-08-07 22:40:12 +03:00
colymba
1e260d2b48 API: Request Handler use $config + EditingTools 2012-07-28 14:17:19 +03:00
colymba
bed1372a45 API: Finish up EditingTools Functions
edit fn that returns and filters cms fields
2012-07-28 14:16:05 +03:00
colymba
205ec30778 API: getModelDataFields() uses className as param
passing the whole gridField was useless and probably not future proof
2012-07-25 21:30:43 +03:00
colymba
07f404abf7 API: Removed useless old functions
useless since all is to be done through the config variable
2012-07-25 21:08:31 +03:00
colymba
05d12695f6 FIX: Cancel button always available
Cancel button does not depends on crumbs
2012-07-25 20:59:50 +03:00
colymba
58e348eac1 helper class functions structure 2012-07-20 21:26:34 +03:00
colymba
45e9d34c46 API: switched component to new $config system
removed useless variables and functions
2012-07-20 21:15:53 +03:00
colymba
2baad766c3 New helper class with common functions
for future usage
2012-07-20 21:04:38 +03:00
colymba
bdb3ce7c5e API: Added config vars to component
Switching all component settings to a config variable with getter and
setter
2012-07-20 21:02:45 +03:00
colymba
86e2773663 Test if a field is returned by getCMSFields()
Should not happen unless the field was manually removed within
getCMSFields()
2012-07-19 15:54:19 +03:00