Commit Graph

1301 Commits

Author SHA1 Message Date
Sam Minnee
6a08a82c9c MINOR: Removed notice-level errors from form field construction. 2012-01-10 16:58:27 +13:00
Sam Minnee
7c6050b407 Merge remote-tracking branch 'refs/remotes/chillu/formfield-constructors'
Conflicts:
	forms/CountryDropdownField.php
2012-01-10 16:41:02 +13:00
Sam Minnee
489191b44f BUGFIX: Fixed notice-level errors in GridField, exposed by test failures. 2012-01-10 16:39:12 +13:00
Sam Minnee
88f645ef59 Merge remote-tracking branch 'refs/remotes/scienceninjas/pull/gridfield-tests' 2012-01-10 16:02:06 +13:00
Russell Michell
e2661dfac1 MINOR: Fixes for IE<8 2012-01-10 13:05:20 +13:00
Ingo Schommer
a06300f0b4 ENHANCEMENT GridFieldItemEditView (and specific view and behaviour for usage in CMS) 2012-01-09 21:17:56 +01:00
Ingo Schommer
c82bae1def BUGFIX Prepopulating relation list in FormScaffolder 2012-01-09 21:17:55 +01:00
Ingo Schommer
b01b9b9249 MINOR Removed button styling for GridField, as its preliminary and doesn't apply to any action other than "delete" 2012-01-09 21:17:55 +01:00
Ingo Schommer
24a37daa50 MINOR Added GridFieldAction_Delete 2012-01-09 11:37:13 +01:00
Ingo Schommer
d4bde47944 BUGFIX Fixed GridField->setFieldFormatting() 2012-01-09 11:36:50 +01:00
Sam Minnée
ce795b6d8a Merge pull request #154 from silverstripe-scienceninjas/pull/gridfield-bugfixes
BUGFIX GridField_Actions did not work in more complex Forms with tabsets...
2012-01-08 21:52:35 -08:00
Sam Minnee
cb13299cf9 API CHANGE: Added GridField_URLHandler component interface. 2012-01-09 18:47:31 +13:00
Stig Lindqvist
39372497df BUGFIX GridField_Actions did not work in more complex Forms with tabsets (i.e SecurityAdmin) when using GridField_Action
BUGFIX Empty GridState data causes isset error
BUGFIX Last field of GridFieldFilter outputs wrong label
2012-01-09 18:41:23 +13:00
Sam Minnee
740f5014b2 MINOR: Added documentation for the grid field, including information on how to extend it. 2012-01-09 17:39:18 +13:00
Stig Lindqvist
3c516b7b97 API CHANGE: Refactored GridField modifiers into GridField_ColumnProvider, GridField_HTMLProvider, GridField_ActionProvider, and GridField_DataModifier interfaces, all added as components in the config.
API CHANGE: Simplified state handling so that it's just a key store. Affectors are replaced with GridField_ActionProviders. API CHANGE: Removed GridField state manipulation actions instead opting for GridField_ActionProvider actions.
API CHANGE: Removed support for modifiers that add "body" rows, instead having core support for generating the body rows hardcoded into the GridField.
API CHANGE: Allow modification of columns across the whole GridField with the GridField_ColumnProvider interface.
API CHANGE: Renamed GridField_AlterAction to GridField_Action, and added actionName/args parameters, since it can be used for all actions (including batch actions and row actions)
API CHANGE: Removed GridFieldRow class.
2012-01-09 13:30:34 +13:00
Stig Lindqvist
09bfe93c50 MINOR Updated the docblocks for GridField 2012-01-07 05:18:00 +01:00
Stig Lindqvist
ea4b9fe939 MINOR Added tests for GridField with minor changes to support them
MINOR Added docblocks
2012-01-07 04:59:34 +01:00
Ingo Schommer
5ec6aa532c ENHANCEMENT GZipped/combined file loading for TinyMCE, which reduces number of HTTP requests in the standard CMS by a third (and decreases file size due to loading pre-compressed files by default) 2012-01-06 15:34:32 +01:00
Ingo Schommer
095602b958 MINOR TreeDropdownField->setShowInSearch() 2012-01-05 23:17:55 +01:00
Ingo Schommer
98852677d5 ENHANCEMENT Simplified "insert link" interface and logic by reverting to TinyMCE's standard behaviour: Only allow linking on an existing selection, don't allow modifying the link content in the "insert" interface. Now that we're presenting this interface as a dialog rather than persistent sidebar its no longer necessary to have "unselected link creation+insertion". 2012-01-05 00:41:41 +01:00
Ingo Schommer
b5c739e71d ENHANCEMENT Refactored TinyMCE LinkForm from behaviour.js to jQuery.entwine. Fixed clearing of fields when popup is closed. 2012-01-05 00:41:41 +01:00
Ingo Schommer
e4d65ab01b MINOR Adding step indicators to "insert link" dialog 2012-01-03 23:01:05 +01:00
Ingo Schommer
b4b6e5a2db MINOR Cleaned up CMS dialog styling (now works with/without tabs, in iframe and inline markup), removed superfluous SCSS variable declarations 2012-01-03 18:11:21 +01:00
Ingo Schommer
0cf6421afe MINOR Button styling for "insert" dialogs 2012-01-03 09:38:42 +01:00
Ingo Schommer
c0fddf262c MINOR Fixed regression on missing return value in CompositeField->FieldHolder() 2012-01-02 21:32:13 +01:00
Sean Harvey
3d8079c1b5 API CHANGE Removed GeoIP functionality from sapphire. This now belongs in a separate "silverstripe-geoip" GitHub repository: https://github.com/silverstripe-labs/silverstripe-geoip 2012-01-02 18:00:36 +01:00
Ingo Schommer
cc32957414 API CHANGE Don't allow specifying $form as constructor argument in various form fields, use setForm() instead (to achieve a cleaner API with less confusing parameter order) 2012-01-02 17:50:34 +01:00
Ingo Schommer
3c5c04cd75 API CHANGE Removed $maxlength constructor argument from PasswordField, use setMaxlength() instead 2012-01-02 17:45:47 +01:00
Ingo Schommer
27ec98cfce API CHANGE Removed $rightTitle and $folderName constructor arguments for FileField and SimpleImageField, use setRightTitle() and setFolderName() instead 2012-01-02 17:44:28 +01:00
Ingo Schommer
1a10e8bcf5 API CHANGE Removed $rows and $cols constructor arguments on TextareaField and HtmlEditorField, use setRows() and setCols() instead 2012-01-02 17:44:23 +01:00
Ingo Schommer
d678c12ac8 API CHANGE Removed FormAction->extraData() and $extraData constructor argument, use setAttribute() instead 2012-01-02 16:58:46 +01:00
Ingo Schommer
eb5716f471 MINOR Using instanceof rather than is_a in CheckboxSetField 2012-01-02 16:49:33 +01:00
Ingo Schommer
e31851b182 BUGFIX Correctly mark DatetimeField, MoneyField and PhoneNumberField composites as disabled or readonly 2012-01-02 16:49:33 +01:00
Ingo Schommer
72694d8349 ENHANCEMENT Custom form attributes through Form->setAttribute() 2012-01-02 16:49:33 +01:00
Ingo Schommer
b4d7e51da3 API CHANGE Deprecated ImageFormAction, use FormAction with setAttribute('src', 'myimage.png') 2012-01-02 16:48:14 +01:00
Ingo Schommer
d535847f27 MINOR Making $title optional in TreeMultiselectField to comply with parent implementation 2012-01-02 16:48:14 +01:00
Ingo Schommer
b5421d9598 ENHANCEMENT Allowing custom attributes in (most) FormField implementations, which allows for HTML5 data attributes 2012-01-02 16:48:14 +01:00
Ingo Schommer
c77f4e8421 MINOR Allowing usage of FormField->Type() on base implementation 2012-01-02 16:48:14 +01:00
Ingo Schommer
639caea949 MINOR Using FieldList instead of FieldSet on SelectionGroup to comply with parent implementation 2012-01-02 16:48:14 +01:00
Ingo Schommer
475f3764c3 BUGFIX Using separate template for readonly version of Textarea (mainly to avoid SSViewer bugs, but also for more granular customisation) 2012-01-02 16:48:14 +01:00
Ingo Schommer
a6148c33da MERGE Using FormField->template in most fields 2012-01-02 16:48:14 +01:00
Sean Harvey
9e548f501e API CHANGE FormField::Field() and FormField::FieldHolder() now render into templates on each FormField instead of creating HTML from PHP 2012-01-02 16:48:13 +01:00
Ingo Schommer
b3c08dba12 API CHANGE Deprecated FieldSet-specific methods from Form, namely dateFieldByName(), unsetDataFieldByName(), unsetFieldFromTab(), resetField() 2012-01-02 16:47:59 +01:00
ajshort
d692c22ee4 MINOR: Fixed FileField->Value() erroring when files value not set. 2011-12-26 19:08:08 +11:00
ajshort
3478e4f9e6 ENHANCEMENT: Made the form enctype configurable via a method Form->setEncType().
API CHANGE: Deprecated Form->FormEncType() in favour of Form->getEncType().
MINOR: Added enctypes as constants to the Form class.
2011-12-26 18:36:24 +11:00
ajshort
6aa90e6288 MINOR: Replaced is_a with instanceof to fix bugs with the changed is_a behaviour in PHP 5.3.7. 2011-12-26 18:31:32 +11:00
Ingo Schommer
7d245c3803 MINOR Reduced unnecessary autoloading 2011-12-23 10:31:35 +01:00
Ingo Schommer
4d28b79c1b MINOR Reduced HTML validation errors in CMS and FieldGroup 2011-12-18 17:00:01 +01:00
Sam Minnee
70d40cf4df BUGFIX: Removed use of base "Exception" class in order to avoid failures on PHPUnit 3.6. 2011-12-17 11:51:40 +13:00
Ingo Schommer
f2ec8b0d54 BUGFIX Enforcing TinyMCE textarea call on window.load in addition to entwine/DOMReady to ensure TinyMCE.init() has been called and all plugins are loaded. 2011-12-15 00:48:29 +01:00
Ingo Schommer
7e01c40770 MINOR Avoid nesting metadata properties in TreeDropdownField, setting classname in metadata even if no record is pre-selected 2011-10-29 21:56:00 +02:00
Ingo Schommer
96d18efa58 MINOR Replaced calls to deprecated FormField->Name() with getName() 2011-10-29 13:27:11 +02:00
Sam Minnee
ed5f72b055 BUGFIX: Don't use ComplexTableField_Popup.ss to render the form. 2011-10-29 18:07:22 +13:00
Sam Minnee
085598fac0 API CHANGE: Replaced ManyManyList::removeByFilter() with ManyManyList::removeAll(). 2011-10-29 17:36:39 +13:00
Sam Minnee
6a3aac25a7 MINOR: Remove deprecated getCsvQuery() 2011-10-29 17:36:39 +13:00
Sam Minnee
0d683dd8ef MINOR: Removed use of deprecated join() in favour of innerJoin() and leftJoin(). 2011-10-29 17:36:38 +13:00
Sam Minnee
b0b5fea3f5 MINOR: Removed use of deprecated securityTokenEnable. 2011-10-29 17:36:38 +13:00
Sam Minnee
42b8d3da04 MINOR: Use FieldList over deprecated FieldSet 2011-10-29 17:36:38 +13:00
Sam Minnee
22e5617ee2 MINOR: Moved from use of deprecated SQLMap to SS_Map. 2011-10-29 17:36:37 +13:00
Sam Minnee
ff9b9e17af MINOR: Removed use of deprecated Director::redirect* functions. 2011-10-29 17:36:37 +13:00
Sam Minnee
a49b56a348 MINOR: Removed usage of deprecated FormField::Name() 2011-10-29 17:34:32 +13:00
Sam Minnee
e5afa25522 MINOR: Use Deprecation class to indicate deprecated methods in core. 2011-10-29 17:34:31 +13:00
Will Rossiter
01bfdbeb90 MINOR tweaks to SecurityAdmin layout 2011-10-29 15:47:08 +13:00
Stig Lindqvist
83e90aaafe ENHANCEMENT Release of DataGridPagination
This class extends the DataGridPresenter with the behaviour and looks of a paginated Datagrid.
2011-10-28 17:34:15 +13:00
Hamish Friedlander
cf408d766a Merge pull request #80 from silverstripe-scienceninjas/release/datagrid-renaming
API CHANGE: Rename DataGrid to GridField to be more in line with other field class names
2011-10-27 20:55:30 -07:00
Stig Lindqvist
b229c17e1d ENHANCEMENT Renamed DataGrid to GridField 2011-10-28 16:35:39 +13:00
Stig Lindqvist
e38dd08ea5 MINOR: Fix docblocks to reference SS_List instead of (now deprecated) DataObjectSet where appropriate 2011-10-28 15:58:55 +13:00
Hamish Friedlander
0a3e0f15de MINOR: Replace references to FieldSet (now deprecated) with references to FieldList 2011-10-28 15:58:55 +13:00
Hamish Friedlander
4c0105a3c4 MINOR: Fix deprecated notices - change old references to 2.5 from ORM work to 3.0.0, and use new deprecation notice system 2011-10-28 15:58:55 +13:00
Ingo Schommer
a3bcf0c61c MINOR Using Object::create() for sub fields in DatetimeField to allow changing the dependencies globally 2011-10-07 14:12:51 +02:00
Ingo Schommer
7c147fed14 ENHANCEMENT Passing 'timeformat' and other metadata to markup generated in DateField, TimeField and DatetimeField, to allow for easier integration with third party libraries 2011-10-07 14:12:51 +02:00
Ingo Schommer
b807983d09 API CHANGE Using <div> instead of <p> for CheckboxField->FieldHolder() 2011-10-07 14:12:51 +02:00
Ingo Schommer
d93bd49edc ENHANCEMENT Allowing global default configuration for DateField, TimeField and DatetimeField 2011-10-07 14:12:50 +02:00
Ingo Schommer
585a8bc784 API CHANGE Removed 'showdropdown' option from TimeField, use custom libraries instead 2011-10-07 14:12:50 +02:00
Ingo Schommer
aa60201cd1 MINOR Making date/time order and separation configurable through DatetimeField->setConfig('datetimeorder') 2011-10-07 14:12:50 +02:00
Ingo Schommer
c89bdbb268 ENHANCEMENT Added user timezone support to DatetimeField 2011-10-07 14:12:50 +02:00
Ingo Schommer
f37640b493 BUGFIX Added support for array values in LookupField, to ensure it works correctly when used as a readonly representation of ListboxField (AIR-39) 2011-10-07 14:12:49 +02:00
Ingo Schommer
b438a0a095 API CHANGE Removed support for undocumented and only partially implemented FormField->reserveNL flag, which is just the opposite of the documented and more frequently used FormField->dontEscape flag. 2011-10-07 14:12:49 +02:00
Ingo Schommer
6a98615d18 ENHANCEMENT Supporting values not in $source in LookupField, instead of displaying "(none)" (which makes it useable in DataDifferencer) (AIR-24) 2011-10-07 14:12:48 +02:00
Ingo Schommer
6e1013e93b MINOR Allowing HTML values in SimpleImageField_Readonly in order to allow image-based diffs 2011-10-07 14:12:48 +02:00
Ingo Schommer
4d31ac65a0 ENHANCEMENT Allowing array values in ListboxField->setValue(), serialising into comma-separated list of values (AIR-35) 2011-10-07 14:12:47 +02:00
Ingo Schommer
afeccbc9cb ENHANCEMENT Added File::get_class_for_file_extension() instead of hardcoding it in Folder->constructChild(). Allows for custom classes in files uploaded through core functionality like the Upload and FileField logic. 2011-10-07 14:12:45 +02:00
Ingo Schommer
3bd80dfb87 MINOR Requiring behaviour.js for TimeField, and using document.getElementById() instead of $ function alias in TimeField_dropdown.js 2011-10-07 14:12:45 +02:00
Ingo Schommer
df56eb540a MINOR Don't throw deprecation notice on DataObjectSet and FieldSet if there's still over 500 (!) references to them in core, as it basically means that everybody has to suppress PHP NOTICE errors for months, impacting core code quality 2011-10-04 13:23:13 +02:00
Stig Lindqvist
488734e53e ENHANCEMENT Added correct styling of sorting and odd even on grid table 2011-09-30 10:59:52 +13:00
Stig Lindqvist
b1b1615a58 ENHANCEMENT Datagrid renders ArrayList according to Datagrid#setModelClass() 2011-09-29 14:15:02 +13:00
Stig Lindqvist
1811fc2746 MINOR Cleaning up code of Datagrid with related classes with more tests 2011-09-29 12:16:15 +13:00
Jean-Fabien
197913842c ENHANCEMENT First cut at data grid with the data presenter 2011-09-28 17:49:14 +13:00
Stig Lindqvist
7d90aa3c10 MINOR Changed inline documentation to be correct 2011-09-28 12:33:02 +13:00
Stig Lindqvist
85cdb3771c FEATURE Added initial commit of Datagrid with tests 2011-09-28 12:33:02 +13:00
Stig Lindqvist
b6f88036eb API CHANGE Usage of FieldSet is deprecated, use FieldList instead 2011-09-28 12:31:52 +13:00
Will Rossiter
1732a17114 Merged new-orm into datagrid 2011-09-26 16:47:54 +13:00
Will Rossiter
2c17cb2f80 MINOR: spelling fix. 2011-09-19 17:27:26 +02:00
Will Rossiter
7418d28bf3 MINOR: removed trailing newline. 2011-09-19 17:27:26 +02:00
Will Rossiter
4448325ad3 BUGFIX: convert new lines to break tags in unescape mode without reverting the entire behaviour of dontEscape 2011-09-19 17:26:01 +02:00
Will Rossiter
2036354d8d ENHANCEMENT: implemented CMSPageHistoryController with comparsion view, single version view into new CMSMain interface 2011-09-19 17:26:01 +02:00
JayDevlin
b254b6ed3a ENHANCEMENT Pass through jQuery UI options through DateField->setConfig() (if applicable) 2011-09-19 15:46:03 +02:00
Ingo Schommer
168b1ff279 MINOR Allowing to retrieve the whole configuration array in DateField/TimeField/DateetimeField->getConfig() 2011-09-19 15:44:35 +02:00
nicolaas
6a268a8b37 BUGFIX ConfirmedPasswordField::setValue has error (fixes #6387)
http://open.silverstripe.org/ticket/6387
2011-09-18 23:19:34 +02:00
Ingo Schommer
ce8e72cf0e MINOR Removing executable flag from all files (thanks miiihi) 2011-09-18 22:04:02 +02:00