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