Ingo Schommer
829c7682e3
BUGFIX Support for multilevel nested GridFieldPopupForm (in CMS only), fixed breadcrumb linkage
2012-03-07 01:23:41 +01:00
Ingo Schommer
b43bdf3781
BUGFIX Allowing to save ListboxField and CheckboxSetField into custom relations (which don't return TRUE for has_many() or many_many())
2012-03-07 01:23:41 +01:00
Andrew O'Neil
58309cb2ec
MINOR: Tests for add and edit forms of GridField
2012-03-07 10:48:09 +13:00
Ingo Schommer
8efaf75375
MINOR jQuery UI icons for GridField buttons (with spriting), added new icon to GridFieldRelationDelete to dustinguish it visually from GridFieldAction_Delete
2012-03-06 21:38:34 +01:00
Ingo Schommer
1c344db339
MINOR More consistent overloading in GridField_Action, using standard getAttributes() method rather than custom template placeholders, removing setButtonIcon() and setButtonLabel() as those features already exist in the base implementation
2012-03-06 21:38:34 +01:00
Ingo Schommer
0b4228231c
MINOR Integrating GridFieldSearch.js in GridField.js (and using entwine for it)
2012-03-06 21:38:34 +01:00
Ingo Schommer
dc83ace928
BUGFIX Fixed CSV exporting on GridFieldExporter (was calling action via ajax, which doesn't allow HTTP download responses)
2012-03-06 15:50:07 +01:00
Ingo Schommer
dca1b0df1c
MINOR GridField docs
2012-03-06 12:39:13 +01:00
Julian Seidenberg
17016273d5
MINOR: SSF-106 documentation
2012-03-06 15:01:17 +13:00
Ingo Schommer
4253950b4c
MINOR Fixed handleRequest() usage in GridFieldPopupForms
2012-03-06 01:23:34 +01:00
Ingo Schommer
1201f6c8bb
BUGFIX Saving records in ListboxField->saveInto() and PermissionCheckboxSetField->saveInto() so we have a database ID to relate to (was previously customised in MemberTableField->saveComplexTableField(), which is now deprecated)
2012-03-06 01:23:34 +01:00
Julian Seidenberg
e0bd5d1070
ENHANCEMENT: SSF-106 adding a "no items found" message when returning an empty grid field
2012-03-06 12:36:59 +13:00
Julian Seidenberg
a715785a42
ENHANCEMENT: SSF-106 adding the ability to turn off and on the "add new" button on the GridFieldTitle
2012-03-06 11:19:46 +13:00
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