Hamish Friedlander
763e644145
BUGFIX: Dont need (and cant call) iteratorProperties calls as workaround any more
2012-03-06 10:18:26 +13:00
Hamish Friedlander
28bb83552a
API-CHANGE: moving iterator support from ViewableData to SSViewer. New set of unit tests for iterator support functions.
2012-03-06 09:31:55 +13:00
Ingo Schommer
e2c21cce8e
MINOR "New <record title>" breadcrumb for GridFieldPopupForm
2012-03-05 18:21:08 +01:00
Ingo Schommer
8da89c6f7c
MINOR Generic .cms-help-toggle implementation to replace MemberDatetimeOptionsetField.js (which also didn't work when loaded via Ajax, and needed a rewrite to jQuery.entwine anyway)
2012-03-05 17:41:50 +01:00
Ingo Schommer
40abab8aec
ENHANCEMENT GridFieldPopupForms->setValidator()
2012-03-05 17:41:50 +01:00
Ingo Schommer
8a4a6efe29
MINOR Moving CMS-specific customisations to GridFieldPopupForms into form getter, so it also applies when the form has validation errors
2012-03-05 17:41:50 +01:00
Ingo Schommer
5d565dcfa3
ENHANCEMENT Added ListboxField->setDisabledItems() and setDefaultItems() (similar to CheckboxSetField API)
2012-03-05 16:11:29 +01:00
Ingo Schommer
ea31e1798a
MINOR Don't duplicate pagination defaults from GridFieldPaginator in GridFieldConfig
2012-03-05 16:11:29 +01:00
Ingo Schommer
6798d40709
MINOR GridField documentation
2012-03-05 12:27:25 +01:00
Ingo Schommer
10a85f4bab
ENHANCEMENT Scaffolding GridFieldRelationAdd->searchFields if required, making constructor argument optional
2012-03-05 12:27:00 +01:00
Ingo Schommer
0762be9927
ENHANCEMENT Renamed GridFieldConfig_ManyManyEditor to GridFieldConfig_RelationEditor, to be more in line with underlying component naming, and more accurate (as it allows editing has_many relations as well). Removed $fieldToSearch argument from its constructor to keep config API consistent, should use getComponentByType() for configuration. Added GridFieldConfig_RecordEditor
2012-03-05 12:26:02 +01:00
Ingo Schommer
375ad464db
ENHANCEMENT GridFieldPaginatior->itemsPerPage accessors
2012-03-05 12:12:36 +01:00
Ingo Schommer
344899ab77
Revert "ENHANCEMENT Support numeric array values in CheckboxSetField (?Field[]=val1&Field[]=val2 instead of ?Field[val1]=1&Field[val2]=1)" - data handling with numeric/associative arrays too clumsy, fixed up ListboxField instead
...
This reverts commit 8fa266462f
.
2012-03-05 10:55:44 +01:00
Ingo Schommer
6e3ceefbb8
ENHANCEMENT Relationship saving in ListboxField (preparing for chosen.js usage), escaping commas in payload when serialising multiple values into a single field
2012-03-05 10:55:09 +01:00
Normann Lou
7a97b52a2e
ENHANCEMENT SSF-53 : add customised icon class for relational 'Export to CSV' button.
2012-03-05 17:30:02 +13:00
Normann Lou
8a56f989ac
MINOR SSF-53 : give "Add New" button an 'add' icon class, give "Link Exisiting" button a 'linkexisting' class
2012-03-05 15:47:36 +13:00
Normann Lou
d26e68c41a
ENHANCEMENT SSF-53 : add customised icon class for relational 'Find' button and 'Link Existing' button
2012-03-05 15:47:35 +13:00
Normann Lou
3ef957b704
APICHANGE SSF-53 : add ability to set an customised class of icons for a GridField_Action button
2012-03-05 15:47:35 +13:00
Andrew O'Neil
929182f818
MINOR Adjust pagination to match design
2012-03-05 15:28:40 +13:00
Sam Minnee
adfdd068e2
Merge branch 'ereg-to-preg' of https://github.com/AngryPHPNerd/sapphire
...
Conflicts:
model/fieldtypes/Date.php
2012-03-05 13:54:20 +13:00
Normann Lou
79d52a2382
ENHANCEMENT SSF-53: put a unlink button in the "Actions" column rather than holding a separate column for easy styling
2012-03-05 12:45:05 +13:00
Sean Harvey
b3d977f0e7
Merge remote-tracking branch 'upstream/master' into file_shortcodes
2012-03-03 10:24:06 +13:00
Ingo Schommer
299bf8b9c6
Merge branch 'integration'
2012-03-02 20:53:06 +01:00
Ingo Schommer
8fa266462f
ENHANCEMENT Support numeric array values in CheckboxSetField (?Field[]=val1&Field[]=val2 instead of ?Field[val1]=1&Field[val2]=1)
2012-03-02 20:46:22 +01:00
Ingo Schommer
b95abeedc6
Revert "MINOR SSF-53 : add ability to add customised class to GridField table" (introduces duplicate '.ss-gridfield' class in different levels of the DOM hierarchy)
...
This reverts commit 7bdc3d13fc
.
2012-03-02 12:28:45 +01:00
Ingo Schommer
783de154b2
MINOR Declaring JS requirements for AjaxUniqueTextField
2012-03-02 11:06:40 +01:00
Normann Lou
1175c693c5
ENHANCEMENT SSF-53 : add ability to use translated button label for 'Add New' and 'Link Existing'
2012-03-02 17:26:36 +13:00
Normann Lou
7bdc3d13fc
MINOR SSF-53 : add ability to add customised class to GridField table
2012-03-02 16:27:34 +13:00
Normann Lou
5548c66a49
ENHANCEMENT SSF-53 reordering the components that added to group GridField in CMS so that it appears same as the landing view of SecurityAdmin
2012-03-02 16:03:23 +13:00
Normann Lou
de75798559
BUGFIX SSF-53 Pass through the parameter $itemsPerPage instead of reassign the default value (15)
2012-03-02 15:59:39 +13:00
Andrew O'Neil
fce5487e59
MINOR: SFF-106 Gridfield changes to make styling easier
2012-03-02 11:06:24 +13:00
Ingo Schommer
aa2e610a20
MINOR Documentation
2012-03-01 21:36:01 +01:00
Ingo Schommer
04698ac295
ENHANCEMENT GridFieldRelationAdd->placeholderText (SSF-53)
2012-03-01 21:35:59 +01:00
Ingo Schommer
a2afe4e4ad
ENHANCEMENT Support multiple search fields in GridFieldRelationAdd, and allowing custom result formatting (SSF-53)
2012-03-01 21:35:45 +01:00
Ingo Schommer
9c95a9ae29
MINOR Removed GridFieldRelationAdd->useAutoSuggestion flag, as the field doesn't work without it (no current ID is being set via JS) (SSF-53)
2012-03-01 17:57:16 +01:00
Ingo Schommer
f8201c48a3
MINOR More generic CSS styles for .cms-file-info: Apply to form.small parent, fixed related UploadField spacing issues
2012-03-01 11:58:16 +01:00
Sean Harvey
f5c4bc0802
ENHANCEMENT Ensure that broken File links receive an "ss-broken" class, just like broken SiteTree links
2012-03-01 23:24:58 +13:00
Sean Harvey
898c8f5497
ENHANCEMENT [file_link id=n] shortcode support for file links in HtmlEditorField
2012-03-01 22:20:58 +13:00
Normann Lou
2dfb4142e0
BUGFIX SSF-53: fixed that raw html source appears for "Export to CSV" button(SSF-243)
2012-03-01 12:35:35 +13:00
Andrew O'Neil
a50fc5180a
MINOR: SSF-106 Dont hide filter buttons when search isnt selected
2012-03-01 10:59:29 +13:00
Ingo Schommer
586ca7374f
Merge pull request #202 from halkyon/date_changes
...
Date changes
2012-02-29 13:02:30 -08:00
Ingo Schommer
da879da940
MINOR Styling and structural fixes for File/Image->getCMSFields() and relates usage in UploadField/HTMLEditorField.
2012-02-29 21:06:43 +01:00
Ingo Schommer
b92676cc86
MINOR Fixed DatetimeField_Readonly config retrieval
2012-02-29 16:59:07 +01:00
Ingo Schommer
726b9cac46
MINOR Create valid HTML attributes in GridFieldDefaultColumns->getColumnAttributes()
2012-02-29 09:53:22 +01:00
Felipe Skroski
bc6ea2ec0e
MINOR: (SSF-106) started on styling the filter bar on the datagrid
2012-02-29 16:42:57 +13:00
Andrew O'Neil
2dffac7398
MINOR: SSF-106 Add classes for gridfield buttons
2012-02-29 14:59:11 +13:00
Andrew O'Neil
98f047ebfa
MINOR: Add asc and desc classes to sorted header
2012-02-29 14:37:48 +13:00
Ingo Schommer
804e2daa71
ENHANCEMENT Breadcrumbs support in GridFieldPopupForms (CMS only)
2012-02-28 18:48:33 +01:00
Ingo Schommer
25d0196b04
MINOR Merge errors
2012-02-28 18:09:30 +01:00
Ingo Schommer
bcc73de85e
Merge branch '106-add-edit-records-rc'
...
Conflicts:
admin/code/LeftAndMain.php
admin/css/screen.css
admin/scss/_style.scss
admin/templates/Includes/LeftAndMain_EditForm.ss
css/GridField.css
filesystem/Folder.php
forms/gridfield/GridField.php
forms/gridfield/GridFieldDefaultColumns.php
forms/gridfield/GridFieldPopupForms.php
2012-02-27 23:58:10 +01:00
Ingo Schommer
f1775b5f84
MINOR Backlinks in CMS edit form template, first defined in GridFieldPopupForms
2012-02-27 23:52:49 +01:00
Ingo Schommer
8ff8d32764
MINOR Adding GridFieldPopupForms to default GridFieldConfig_ManyManyEditor settings
2012-02-27 23:52:49 +01:00
Ingo Schommer
cbfd76dd36
MINOR Documentation
2012-02-27 23:52:49 +01:00
Ingo Schommer
3b53ed1937
MINOR Moved some CMS-specific template config into GridFieldPopupForms, to make the external API easier to use, and make specific configs less dependent on the instanciation context, and more tuned to the actual execution controller context
2012-02-27 23:52:48 +01:00
Ingo Schommer
ba0d1c60cb
MINOR Don't require controller on instanciation of GridFieldPopupForms, as it can't be reliably determined e.g. during a getCMSFields() call. Should use existing FormField/Form API to retrieve controller when its required.
...
MINOR Renamed GridFieldPopupForms->popupFormName to $name to make it clearer that its the component name (which is optional now).
2012-02-27 23:52:48 +01:00
Julian Seidenberg
3936909980
ENHANCEMENT: working delete button
2012-02-27 23:52:48 +01:00
Julian Seidenberg
550f75408e
ENHANCEMENT: File and Image CMSFields styling
2012-02-27 23:52:40 +01:00
AngryPHPNerd
0e2cbb0b88
Replace ereg with preg_*
2012-02-27 22:14:02 +01:00
Sean Harvey
f4a758e500
BUGFIX DatetimeField allows non-US style dates with an empty time component to be saved correctly
2012-02-24 20:52:26 +13:00
Ingo Schommer
3b72f598a2
MINOR Added CSS class for identifying column in GridFieldDefaultColumns
2012-02-23 23:29:58 +01:00
Ingo Schommer
0bc6bffa9b
BUGFIX Changed CSS class structure of GridField to avoid duplication of ".ss-gridfield" selector in different contexts, and make selectors less verbose (no more "fieldset.ss-gridfield"). Added "field" class to GridField container to ensure it displays correctly alongside other form fields (mainly around margins and paddings)
2012-02-23 23:29:58 +01:00
Ingo Schommer
9df1487d8f
ENHANCEMENT Allow to batch-add components via GridFieldConfig->addComponents()
2012-02-23 23:29:57 +01:00
Ingo Schommer
abedf2a4a9
ENHANCEMENT Confirming deletion of records in GridField via JavaScript alert
2012-02-23 23:29:55 +01:00
Ingo Schommer
cbc2891c80
MINOR Metadata for GridField and Folder->getCMSFields() to allow opening folder references in the UI
2012-02-23 18:39:42 +01:00
Felipe Skroski
1ebd83df1a
ENHANCEMENT: styled the header of the datagrid (SSF-106)
2012-02-22 16:29:37 +13:00
Andrew O'Neil
b389138f50
MINOR Move gridfield actions HTML to templates
2012-02-22 16:19:45 +13:00
Andrew O'Neil
0acaf39664
FEATURE "Add" for gridfield
2012-02-20 14:50:53 +13:00
Ingo Schommer
abfa16fa70
ENHANCEMENT Using native jQuery UI buttons and icon styling for a less coupled implementation (e.g. assuming that a "constructive" button always has a specific icon, or one at all). All CMS UI buttons switched to use <button> markup, which allows for inline icons and correctly aligned multi-line button labels.
2012-02-17 15:58:32 +01:00
Ingo Schommer
e28afcacc5
MINOR Added FormAction->setUseButtonTag() and getUseButtonTag()
2012-02-17 13:35:54 +01:00
Ingo Schommer
ad8fe82b37
MINOR Added FormField->getDescription() to complement FormField->describe()
2012-02-17 13:35:54 +01:00
Ingo Schommer
454b89f2bb
BUGFIX Fixed FormAction.ss template when used with <button> tag
2012-02-17 13:35:54 +01:00
Ingo Schommer
a196135089
API CHANGE Replace jQuery.metadata in DateField markup with HTML5 data attributes
2012-02-17 13:35:54 +01:00
Ingo Schommer
9190bc4893
ENHANCEMENT Support for <legend> tags in CompositeField
2012-02-17 13:35:53 +01:00
Ingo Schommer
b417daf7af
ENHANCEMENT Custom tags for CompositeField, which allows for nesting <fieldset> elements (not possible through the toplevel-only FieldList/FieldSet class)
2012-02-17 13:35:53 +01:00
Ingo Schommer
7602d081a2
ENHANCEMENT Fluent interface in Form API by returning instance from all setters
2012-02-17 13:35:26 +01:00
Ingo Schommer
5911abc0f6
API CHANGE Removed prototype.js style $() alias usage for document.getElementById() to avoid confusion with the more common jQuery() alias.
...
API CHANGE Removed several unsed JavaScript globals: sprintf(), Number.prototype.CURRENCIES, Number.prototype.toCurrency(), String.prototype.ucfirst(), jQuery.fn.clearFields(), jQuery.fn.clearInputs()
MINOR Removed prototype_improvements.js and jquery_improvements.js files, now contained in individual component code (or removed altogether)
2012-02-16 12:27:47 +01:00
Ingo Schommer
5220a46fd0
ENHANCEMENT Inserting image via new dialog with ajax field retrieval and GridField file selection. Rewritten to jQuery.entwine and using the new HTML editor abstraction layer.
2012-02-14 13:53:35 +01:00
Ingo Schommer
c422e06b60
MINOR Removed GridField->requireDefaultCSS() idiom, not used elsewhere (or used for JS in the same class), should be handled through Requirements class instead
2012-02-14 13:53:32 +01:00
Ingo Schommer
3866f561f5
ENHANCEMENT Using GridField for file selection in "insert image" dialog
...
API CHANGE Combined HTMLEditorField_Toolbar->FlashForm() and ImageForm() into new MediaForm() to handle both file types
2012-02-14 13:30:52 +01:00
Ingo Schommer
1b42b2afa7
MINOR GridField JS API for updating state
2012-02-14 13:30:51 +01:00
Ingo Schommer
47ac047454
MINOR Setting existing GridState from client during request handling to allow altering it there
...
MINOR Parameter namespacing for GridState to avoid clashes with multiple GridField instances in same form
MINOR GridField->index() to render the field, unify with gridFieldAlterAction() to support state changes
2012-02-14 13:30:51 +01:00
Normann Lou
18e5dec680
MINOR Add forceFullTree param for getting a complete tree (SSF-110)
2012-02-13 09:53:00 +01:00
Fred Condo
d370423825
Clean up trailing ?> per coding standard
...
All sapphire but the lang directory
2012-02-12 12:40:16 -08:00
Will Rossiter
37156b0270
BUGFIX: avoid error accessing Tab ID if TabSet has not been set
2012-02-11 14:01:43 +13:00
Ingo Schommer
5bf79f8146
BUGFIX Removed tinymce-advcode plugin which breaks with new TinyMCE and newer browsers. Both the plugin and the underlying 'codepress' engine are unmaintained. Fall back to standard (non-highlighted) TinyMCE <textarea> editing ( fixes #6779 )
2012-02-11 01:08:04 +01:00
Ingo Schommer
243d4d45aa
MINOR Restored row/col defaults in TextareaField and HtmlEditorField (broken in 1a10e8bc
)
2012-02-10 12:15:41 +01:00
Andrew O'Neil
38bce79fc6
FEATURE Add title component
2012-02-09 16:02:47 +13:00
Andrew O'Neil
23af60633c
BUGFIX Fix edit and delete actions on gridfield
2012-02-09 14:35:33 +13:00
Andrew O'Neil
a76c9c3c5e
BUGFIX Fix checkFieldsForAction() when working with tabs
2012-02-09 11:46:33 +13:00
Ingo Schommer
448c5fd7b9
Merge branch 'story/SSF-28'
2012-02-08 15:35:34 +01:00
Ingo Schommer
c00f0406e9
ENHANCEMENT Attaching files from /assets through UploadField
2012-02-08 15:34:41 +01:00
Ingo Schommer
a0d583291c
MINOR Fixed UploadField->managesRelation() when no record is set
2012-02-08 11:27:10 +01:00
Ingo Schommer
5a3242cab7
MINOR Allowing custom attributes on GridField, adding more CSS classes to support behaviour
2012-02-08 01:04:56 +01:00
Ingo Schommer
1b4dda491a
MINOR Moving File->OwnerID setting to model layer
2012-02-08 01:04:56 +01:00
Ingo Schommer
7718c75e3a
MINOR Removed detection of has_one relationships in UploadField when using the database column name rather than relationship name - too verbose, and not supported by underlying FileField.
2012-02-08 01:04:56 +01:00
Andrew O'Neil
df716eff45
ENHANCEMENT Allow multiple column providers for a single column
2012-02-08 11:21:34 +13:00
Ingo Schommer
9c0a606abf
API CHANGE Deprecated SimpleImageField, use FileField or UploadField with setAllowedExtensions()
2012-02-03 01:00:11 +01:00
Ingo Schommer
c0d187071a
ENHANCEMENT New UploadField class to replace FileIframeField, ImageField and SimpleImageField
2012-02-03 01:00:08 +01:00
Ingo Schommer
b8cc2085b6
API CHANGE Deprecated FileIframeField and ImageField, use UploadField instead
2012-02-03 00:59:04 +01:00
Ingo Schommer
ca047b64b8
MINOR Removed usage of HiddenFieldSet
2012-02-03 00:46:49 +01:00
Stig Lindqvist
c2c0e1b4b6
Merge pull request #173 from chillu/gridfield-config-getcomponents
...
GridFieldConfig->getComponentsByType() and "default config" change
2012-01-30 19:29:23 -08:00
Ingo Schommer
bb5385db3e
Merge pull request #175 from silverstripe-scienceninjas/pull/autosuggestion-class-fix
...
BUGFIX It's not possible to use more than one autosuggestion field from GridFieldRelationAdd per view
2012-01-30 14:29:58 -08:00
Ingo Schommer
a135b7c01d
MINOR Removed GridField->getDefaultConfig() in favour of new GridFieldConfig_Base class (and adjusted its components to remove the "edit" component, and add the "filter" component by default, to match the original getDefaultDefaultConfig())
2012-01-30 15:51:07 +01:00
Ingo Schommer
5fe86be311
ENHANCEMENT Added GridFieldConfig->getComponentsByType() and getComponentByType()
2012-01-30 15:47:26 +01:00
Sam Minnee
2d898cab63
API CHANGE: Added GridFieldExporter, a GridField component that adds export functionality, and added it to the security admin.
2012-01-30 19:49:10 +13:00
Russell Michell
0090009703
BUGFIX: Added default args to GridFieldPopupForms for AssetAdmin which was casing errors
...
BUGFIX: Added GridFieldFilter() to new GridFieldConfig whuch adds filters and fixes the display
MINOR: Added gridfield specific margins to form div to push GridField display down-page (due to GF's sort-fields which will be refactored from new designs)
2012-01-30 09:26:39 +13:00
Stig Lindqvist
9b3af77637
BUGFIX It is not possible to use more than one autosuggestion field from GridFieldRelationAdd per view
2012-01-24 19:15:24 +01:00
Ingo Schommer
008ecf750a
MINOR Fixed GridFieldExporter accessors (undefined $gridField in changed scope)
2012-01-30 17:29:35 +01:00
Ingo Schommer
5faca9ca2f
MINOR Accessors, documentation and i18n for GridFieldExporter
2012-01-30 16:48:15 +01:00
Stig Lindqvist
28906d4b32
MINOR i18n on GridFieldRelationAdd, GridFieldFilter and GridFieldItemEditVIew template
2012-01-24 19:13:12 +01:00
Stig Lindqvist
439ed75ff9
MINOR Removed unused property on GridFieldFilter
2012-01-24 02:46:12 +01:00
Stig Lindqvist
07029138bf
MINOR Updated docblocks for GridFieldPaginator
2012-01-24 02:46:12 +01:00
Stig Lindqvist
ed889529b4
API CHANGE Added two predefined GridFieldConfigs and removal of unsused accessors
...
- GridFieldConfig_ManyManyEditor for default relationship list managment
- GridFieldConfig_Base for basic list managment
2012-01-24 02:46:12 +01:00
Stig Lindqvist
c396c2d2ae
API CHANGE Security admin supports adding, removing and searching for members by relations via gridfield
...
This contains some experimental API's when using GridFieldPopupForms on GridFieldPopupForms.
- GridFieldRelationAdd
- GridFieldRelationDelete
2012-01-24 02:46:07 +01:00
Ingo Schommer
cb74dbccfc
MINOR Removed overzealous value validation in ListboxField, should silently ignore unknown values (lacking better referential integrity measures in the underlying model layer)
2012-01-19 12:13:18 +01:00
Sam Minnee
c0d891cc0b
BUGFIX: Fixed GridField::getModelClass() not to access protected property.
2012-01-10 16:59:28 +13:00
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
Ingo Schommer
654173e46b
ENHANCEMENT Allow usage of custom 'fieldClasses' argument to FormScaffolder for relationships
2011-08-22 08:56:42 +02:00
Ingo Schommer
1b3978095a
MINOR Added FileIframeField->getCanUploadNewFile()
2011-08-14 13:54:13 +02:00
Will Rossiter
e484a230fe
ENHANCEMENT: updated TreeDropdown display. Use jQuery UI provided icon rather than custom
2011-08-01 14:27:52 +12:00
Will Rossiter
aad97ba220
MINOR: added vertical and horizontal grid helpers
2011-07-29 15:10:14 +12:00
Ingo Schommer
ac537ee18d
Merge pull request #35 from marijnkampf/sapphire
...
---
MINOR Updated return types for createTag and describe in documentation
2011-07-04 09:42:52 +02:00
Colby Klein
bb09555cdb
Forgot to remove this line in my last commit.
2011-06-23 19:28:42 -07:00
Colby Klein
1460789817
Fix tabindex being present on read only form fields instead of regular ones.
2011-06-23 19:18:59 -07:00
Marijn Kampf
047d256792
Updated return types for createTag and describe in documentation
2011-06-08 23:29:01 -07:00
Sam Minnee
878b348a0f
Merge branch 'master' into new-orm
...
Conflicts:
docs/en/reference/built-in-page-controls.md
model/SQLQuery.php
2011-05-26 17:08:10 +12:00
Ingo Schommer
3588cefa30
MINOR DateField documentation
2011-05-25 21:24:33 +12:00
Will Rossiter
771e93ef18
BUGFIX: return null data from checkbox field if not set. Fixes issue with validation using str_len() to determine valid field. FIXES: http://open.silverstripe.org/ticket/6231 . Thanks natmchugh
2011-05-23 20:36:20 +12:00
Ingo Schommer
d157e6ec35
MINOR Removing 'text' CSS class from CheckboxField_Disabled to avoid different styling from standard checkbox ( fixes #6636 , thanks theAlien)
2011-05-20 08:08:27 +12:00
Ingo Schommer
fbe4b3fbc9
BUGFIX Form::validate clears whole session incl. 'message' key, instead of overwriting specific keys ( fixes #6607 , thanks netnoise)
2011-05-17 20:51:38 +12:00
ajshort
1f6f7f0862
API CHANGE: Deprecated CompositeField->FieldSet() in favour of CompositeField->FieldList().
...
MINOR: Replaced usage of FieldSet with FieldList.
MINOR: Renamed FieldSetTest to FieldListTest.
2011-05-11 17:51:54 +10:00
Ingo Schommer
7a70b29b9d
ENHANCEMENT Support for record/selection-specific metadata in TreeDropdownField (e.g. useful for limiting available page type option based on a parent node selection)
2011-05-08 23:36:13 +12:00
ajshort
def001566c
API CHANGE: Renamed FieldSet to FieldList.
...
API CHANGE: Renamed HiddenFieldSet to HiddenFieldList.
2011-05-06 08:51:02 +10:00
ajshort
f0676c7d56
API CHANGE: Updated FieldSet to use ArrayList rather then DataObjectSet.
...
MINOR: Updated FieldSetTest since position information is no longer available on iterated objects.
2011-05-06 08:30:54 +10:00
ajshort
16a016b9dc
API CHANGE: Deprecated FormField->Name() in favour of FormField->getName().
2011-05-06 00:48:45 +10:00
ajshort
3f132a105b
API CHANGE: Replaced DataObjectSet instances with ArrayList.
2011-05-05 20:40:24 +10:00
ajshort
bdfff5bee3
MINOR: Updated TableField to use ArrayList rather than DataObjectSet when using a DataList.
2011-05-04 11:40:00 +10:00
ajshort
14c57ae082
MINOR: Updated TableListField to accept any list type, not just a DataObjectSet.
2011-05-03 12:22:18 +10:00
ajshort
04e5dae22e
MINOR: Updated places that expect a DataObjectSet to accept an SS_List instance.
2011-05-02 17:14:05 +10:00
Sam Minnée
15b4c1e281
Merge pull request #26 from ajshort/1ac23f8f676cb986dac679fbf43e4a7b61d0be68.
...
Remove Unused/Deprecated Classes
2011-05-01 17:18:32 -07:00
ajshort
81c0caaddb
API CHANGE: Renamed DataList::filter() and DataQuery::filter() to ::where().
2011-05-01 15:26:30 +12:00
ajshort
fc8d442505
MINOR: Removed useless setPageLimits call from ComplexTableField::Items().
2011-05-01 15:26:29 +12:00
Sam Minnee
4a061fd071
ENHANCEMENT: Refactored MemberTableList field to make better use of DataList and ManyManyList. Refactored ComplexTableField and TableListField to, stripping out as much model logic as possible.
2011-05-01 15:26:28 +12:00
Sam Minnee
319d2f4952
ENHANCEMENT: Refactored TableListField and subclasses to rely on the DataList to handle data manipulatation.
...
API CHANGE: A DataList can be passed as the 2nd argument to the constructor; this is the recommended approach for editing non-relations.
API CHANGE: You can't set a custom query; only a custom DataList.
API CHANGE: You can't have one of these fields editing data that doesn't correspond to a DataList - there must be some kind of DataObject behind it.
API CHANGE: If the field's name corresponds to a relation on the object being edited, then the relation is used as the data set - all the source* parameters are ignored.
API CHANGE: relationAutoSetting only works if your form has had the corresponding data object loaded with $form->loadDataFrom().
API CHANGE: relationAutoSetting can't be turned off; attach a non-relation DataList instead.
2011-05-01 15:25:45 +12:00
Sam Minnee
de1494e3a8
ENHANCEMENT: Implemented DataList as the successor of DataObjectSet. DataList doesn't execute the query until it's actually needed, allowing for a more flexible ORM.
...
API CHANGE: augmentSQL is now passed a DataQuery object from which query parameters can be extracted.
API CHANGE: DataObjectDecorators that manipulate the query can now define augmentDataQueryCreation().
API CHANGE: The container class argument for DataObject::get() is deprecated.
API CHANGE: DataObject::buildSQL() and DataObject::extendedSQL() are deprecated; just use DataObject::get() now.
API CHANGE: DataObject::instance_get() and DataObject::instance_get_one() are deprecated, and can no longer be overloaded.
API CHANGE: DataObject::buildDataObjectSet() is deprecated.
API CHANGE: Cant't call manual manipulation methods on DataList such as insertFirst()
2011-05-01 15:25:45 +12:00
Sam Minnee
2b991629b8
API CHANGE: In FieldSet::removeByName(), only match on field Title() if field Name() isn't set.
2011-05-01 15:25:14 +12:00
Ingo Schommer
79e0634537
Merge branch 'cms-ui-preparation'
2011-04-28 22:48:02 +12:00
ajshort
1ac23f8f67
API CHANGE: Removed deprecated AutocompleteTextField form field.
2011-04-26 11:01:38 +10:00
ajshort
a95e6ebae8
API CHANGE: Removed long deprecated TreeSelectorField form field.
2011-04-26 11:01:38 +10:00
Will Rossiter
14c60c5d9a
Landing pull request 17. Fixes Call to a member function setValue() on a non-object in ConfirmedPasswordField Fixes #????.
2011-04-25 22:44:54 +12:00
Ingo Schommer
43491c2641
MINOR Reducing number of asset downloads by combining files in LeftAndMain->init() and including full jquery.ui.css instead of multiple @import statements
2011-04-25 21:36:51 +12:00