Ingo Schommer
fb7008627c
Merge remote-tracking branch 'origin/3.0'
2012-08-09 10:47:44 +02:00
Damian Mooyman
d172e160a8
FIXED: Bug in GridFieldAddExistingAutocompleter.php where an uninitialised variable would occasionally crash searches
...
REMOVED: Unused variable
2012-08-09 15:04:02 +12:00
jean
90b0fe8db7
FIX Only reload data for a item edited through a GridField if the record exists. Fix 7721
2012-08-04 10:53:13 +12:00
Andrew Short
1900842d37
Make the list used for autocomplete search results settable.
...
This is useful if you want to limit the autocomplete results to a subset
of all available objects.
2012-08-02 21:25:45 +12:00
Andrew Short
f5b25d2dff
Make the list used for autocomplete search results settable.
...
This is useful if you want to limit the autocomplete results to a subset
of all available objects.
2012-08-01 17:16:18 +10:00
Hamish Friedlander
3efdb5c981
Merge in changes from 3.0.1 final
2012-07-31 16:51:10 +12:00
Hamish Friedlander
bbb0868227
Merge in changes from 3.0.1-rc3
2012-07-30 11:53:12 +12:00
jakr
13bf61d402
Reformatted GridFieldDataColumns->castValue and added missing assignment.
2012-07-29 21:40:14 +02:00
Hamish Friedlander
9c4e4747c9
BUG 15e2efb55d
broke the Page ListView.
2012-07-28 15:42:39 +12:00
Juerg Rast
4848becf5e
Removed duplicated 'return '
2012-07-28 01:11:03 +02:00
jakr
15e2efb55d
FIX 7590: Image thumbnails broken in gridfield
...
Delay converting the object to a string and escaping its value until the end of getColumnContent. Call formatValue BEFORE castValue, so that formatValue can create raw HTML by casting to HTMLText afterwards.
2012-07-27 14:05:41 +12:00
Ingo Schommer
3ae8b0b665
Merge remote-tracking branch 'origin/3.0'
2012-07-18 15:00:06 +02:00
Ingo Schommer
1a91431d39
Query param searches for GridFieldAddExistingAutocompleter
...
Fixes issues with query construction in JS when the search URL
already contains GET paramters (e.g. when using the 'translatable'
module).
2012-07-17 13:26:33 +02:00
Andrew Short
8d38551297
Don't change track autocompleter fields.
2012-07-17 12:07:53 +02:00
Andrew Short
8c0a8539c7
Limit the results shown in the autocompleter.
2012-07-17 12:07:53 +02:00
Ingo Schommer
b42a76bebc
Fluent interface for ToggleCompositeField
2012-07-15 21:28:09 +02:00
jakr
78038eb75e
FIX 7617: Back button in CMS after Add/Edit/View action in GridField does not work
2012-07-13 16:53:42 +02:00
Ingo Schommer
712f28bc78
Scoped deprecation messages ( fixes #7645 )
2012-07-13 11:37:35 +02:00
Juerg Rast
8d3d3a7229
Typo in the Filename of the CSS-File
2012-07-12 23:09:22 +02:00
Mateusz Uzdowski
7c41ff22ab
BUG Change all shortcodes into the new, comma separated, format.
...
Space delimiter is often confused by browsers, and encoded as %20 which
breaks the shortcode system. Change to comma delimitation has already
been implemented, this is a followup cleanup.
Ref http://open.silverstripe.org/ticket/7337
2012-07-12 16:44:21 +12:00
Ingo Schommer
998b8e048c
Merge pull request #634 from silverstripe-rebelalliance/3.0_7603
...
BUGFIX: open ticket 7603 fixing search filtering - thought I should initialise $dataListClone
2012-07-11 06:59:39 -07:00
Jeremy Bridson
e096c297b8
BUGFIX: open ticket 7603 fixing search filtering - thought I should initialise $dataListClone
2012-07-11 09:19:50 +12:00
Ingo Schommer
0ae20a13f8
Merge pull request #630 from silverstripe-rebelalliance/open/6875
...
BUG: open/6875 removing DataGrid filter fields from track changes
2012-07-10 02:50:00 -07:00
Will Rossiter
6b611c6825
Merge pull request #572 from burnbright/datefield-fix
...
BUGFIX: DateField javascript fails when it is included in a GroupField
2012-07-08 21:50:48 -07:00
Ingo Schommer
64357a4522
Merge branch '3.0'
...
Conflicts:
admin/css/screen.css
admin/scss/_forms.scss
docs/en/changelogs/3.0.0.md
2012-07-05 18:01:09 +02:00
jakr
20696958df
FIX: Ticket #7592 GridFieldDataColumns: Wrong documentation for getFieldCasting Moved documentation to the appropriate function, added note about the two parameter callback function.
2012-07-04 18:08:24 +02:00
Andrew Short
eb733dee60
NEW Add set config method to GridField.
2012-07-04 13:13:23 +10:00
Kirk Mayo
9d88169f3e
BUG: open/6875 removing DataGrid filter fields from track changes
2012-07-04 10:27:42 +12:00
Jeremy Shipman
dbc1edef87
Merge branch 'master' of github.com:silverstripe/sapphire into datefield-fix
2012-06-30 19:13:03 +12:00
Ingo Schommer
aa8dfd127c
FileField->getUpload() and setUpload()
2012-06-28 11:42:27 +02:00
Ingo Schommer
cb145a0094
"dmyplaceholders" setting for DateFields
2012-06-27 10:12:42 +02:00
Ingo Schommer
0dfc82342a
Merge pull request #574 from mightycoco/master
...
Improving oEmbed insertion of direct image urls
2012-06-26 15:43:41 -07:00
Ingo Schommer
218037b8cf
Add .dropdown class to CountryDropdownField to make it use chosen.js
2012-06-26 17:56:07 +02:00
Ingo Schommer
a9fa281723
Form field docs update ( fixes #7521 )
2012-06-26 15:03:11 +02:00
Naomi Guyer
d935a74e31
ENHANCEMENT: Modify GridFieldLevelup to be more reusable
2012-06-26 13:34:49 +02:00
mightycoco
e582935582
BUGFIX insertion of images (trac #7438 )
...
Allow insertion of images via oEmbed dialog using a direct url
2012-06-25 17:19:15 +02:00
Jeremy Shipman
606d86a926
BUGFIX: DateField javascript fails when it is included in a GroupField
2012-06-25 20:32:53 +12:00
Naomi Guyer
e51bf760e9
BUGFIX: Insert link styling broken, and inconsistent with Insert media ( fixes #7528 )
2012-06-25 15:31:39 +12:00
Naomi Guyer
5713a37a32
BUGFIX: Alignment of http label in insert media
2012-06-22 18:11:00 +12:00
Naomi Guyer
f01c1640c7
BUGFIX: Alignment of http label in insert media
2012-06-22 18:04:13 +12:00
Sam Minnee
4aa4cd2c28
Merge branch '3.0'
...
Conflicts:
admin/scss/ie7.scss
2012-06-22 17:20:07 +12:00
Hamish Friedlander
01062c70a1
ENHANCEMENT: Add back CountryDropdownField
...
We removed this because it depended on GeoIP, which was weird, and had its own dependancies.
But Zend_Locale is included in core, and can give us all the data we need for CountryDropdownField
2012-06-22 09:51:33 +12:00
Hamish Friedlander
65030906ad
BUGFIX: Add validation to fix open.silverstripe.org ticket #7494
...
When adding media via the HtmlEditorField dialog, the value of the URL field wasnt being validated. Youd get different errors depending on if the field was empty
or if it had text, but it didnt look like an absolute URL to HtmlEditorField#viewfile.
This adds some javascript validation to make the text field look like a URL field
2012-06-21 14:19:41 +12:00
Ingo Schommer
6af3b076be
MINOR Fixed phpdocs
2012-06-20 23:59:57 +02:00
Ingo Schommer
3a7128d00c
MINOR Fixed phpdocs
2012-06-20 23:59:16 +02:00
unclecheese
e2c1deb4f7
MINOR Chainable Form->loadDataFrom()
2012-06-20 17:01:16 +02:00
Ingo Schommer
5fa1633fe5
MINOR Saving UploadField detail form correctly when nested in GridField
2012-06-15 17:50:18 +02:00
Ingo Schommer
eff93bdd5b
ENHANCEMENT Disable UploadField when handling unsaved relations ( fixes #7187 )
2012-06-15 17:44:34 +02:00
Ingo Schommer
02332da7fb
MINOR GridField compat with ViewableData records ( fixes #7479 )
...
Only use relField() when it exists (usually on DataObject),
otherwise fall back to method or value returns
(same as original GridFieldDataColumns behaviour).
2012-06-15 13:33:34 +02:00
Sean Harvey
b04c199064
MINOR Fixing additional cases where DataList needs to be returned correctly when filtering
2012-06-15 16:09:40 +12:00
Sean Harvey
538bcdc74d
BUGFIX Ensure that the DataList is being used correctly when applying filters in HtmlEditorField and Hierarchy
2012-06-15 15:49:22 +12:00
Sam Minnée
a93dd9459e
Merge pull request #496 from sminnee/dataquery-aggregate
...
Dataquery aggregate
2012-06-14 17:20:35 -07:00
Ingo Schommer
6c1f7997a4
ENHANCEMENT HTML titles in TreeDropdownField
...
HTML in tree nodes is already used to render page icons via SiteTree->TreeTitle.
In order to select the initial value correctly via HTML5 data attributes,
we need to encode any HTML values.
2012-06-13 16:04:14 +02:00
Ingo Schommer
db076c0f02
MINOR Using new setDescription() styling in HtmlEditorField
2012-06-13 13:21:41 +02:00
Andrew Short
9e4b526213
MINOR: Include the title attribute on tree and readonly fields.
2012-06-13 13:19:16 +02:00
Ingo Schommer
666fa7a26e
Merge branch 'togglecompositefield' of https://github.com/ajshort/sapphire into ajshort-togglecompositefield
2012-06-13 10:23:22 +02:00
Will Rossiter
78c15ea882
BUGFIX: Fix correct input type for ImageFormAction replaces.
...
ImageFormAction is deprecated, using the new API results in a submit input rather than an image input being generated. Added hasAttribute helper to FormField as well as test coverage.
2012-06-13 09:57:54 +02:00
Andrew Short
aa67b56b10
ENHANCEMENT: Refactored ToggleCompositeField.
...
* Use jquery ui accordion for the field, and implemented an admin theme.
* Made the setting of configuration consistent with other form fields.
* ToggleComposteField->startClosed() has been deprecated in favour of
setStartClosed().
* Removed public access to the heading level, instead use getHeadingLevel()
or setHeadingLevel().
2012-06-13 14:20:27 +10:00
Naomi Guyer
e96ca5fb9a
ENHANCEMENT: Change media insertion to use button and apply design
...
Conflicts:
css/UploadField.css
scss/UploadField.scss
2012-06-11 10:54:48 +02:00
Sean Harvey
3f68e6f82f
BUGFIX Ensure that a single string value (as opposed to an array of
...
values) is accepted by implode() in CheckboxSetField by casting it
as an array.
2012-06-11 13:41:02 +12:00
Ingo Schommer
210e32d631
MINOR Labeling in HtmlEditorField
2012-06-08 18:40:33 +02:00
Naomi Guyer
7523f98e04
BUGFIXES: File Uploads
...
* Add arrows back to edit-all toggle button
* Don't show dimensions if the item being inserted doesn't have them.
* Set pop-up windows to be a percentage of the window height for better
use of space
* Fix broken fieldholdersmall styling within files edit
* Add placeholder if no preview
*Take out minFileSize so upload will work on Android phones
2012-06-08 18:40:33 +02:00
Sam Minnee
948ca468f6
API CHANGE: Added $value argument as the first argument of a gridfield formattting callback.
2012-06-06 16:13:57 +12:00
Sam Minnee
70d5ffefdd
API CHANGE: Added GridField::addDataFields() to allow the definition of custom callbacks to be used by all GridField components.
...
API CHANGE: Added GridField::getDataFieldValue() to encapsulate field lookup for all components.
API CHANGE: Allow 'callback' key to be specified in a GridFieldDataColumn column info. In this case, title should be put as the 'title' key of a map rather than simply the column info.
2012-06-06 16:12:05 +12:00
Ingo Schommer
12f2e1e176
Merge branch 'pjax-multiple'
2012-06-05 14:01:18 +02:00
Mateusz Uzdowski
64c0d2fb0a
MINOR: add comments to FormField's RightTitle
2012-06-01 15:01:42 +12:00
Sean Harvey
5462cdaab2
MINOR Removing "." from the end of validation messages
2012-06-01 13:13:06 +12:00
Sean Harvey
7fe0858be1
API CHANGE Marked Form::unsetFieldFromTab() as deprecated. Please use
...
Fields() and the FieldList API instead.
2012-05-31 14:29:58 +12:00
Ingo Schommer
5178954311
UNFINISHED Processing multiple PJAX responses on CMS JavaScript, introducing data-pjax-fragment attribute to identify reloadable template parts
2012-05-30 15:07:13 +02:00
Ingo Schommer
21beb86f8f
MINOR Using localized name rather than model class for GridFieldAddNewButton UI (related to 74d444cf
and pull request #452 )
2012-05-29 15:22:28 +02:00
Ingo Schommer
5b03f49245
BUGFIX Respecting server-overrides on X-Pjax responses during ajax redirects. Fixes GridFieldDetailForm redirect after delete, e.g. in ModelAdmin. Partially reverts 8b4b896
. Closes pull request #488
2012-05-29 11:34:47 +02:00
Sean Harvey
d7a8fa9266
BUGFIX If RequiredFields::php() is given any fieldName that is NULL, don't attempt to validate a NULL field.
2012-05-29 14:37:26 +12:00
Sean Harvey
0235a8c0c7
BUGFIX Partially reverting 28e43bdc
which broke media insertion
2012-05-28 22:27:20 +12:00
Sean Harvey
c3eabffcb9
MINOR Use shorthand {class}::get() syntax instead of DataList::create()
...
in core code.
2012-05-28 21:13:42 +12:00
Sean Harvey
71256ea7f8
MINOR Update class docs for OptionsetField to use short DataList query
2012-05-28 21:12:59 +12:00
Sam Minnee
867b9a37d2
Merge branch 'master' of github.com:silverstripe/sapphire
2012-05-28 13:26:06 +12:00
Sam Minnee
7994b73cb7
MINOR: Added i18n to Delete action
2012-05-28 12:05:41 +12:00
Jeremy Bridson
fb78cab8e6
ENHANCEMENT:Trac#7218 - changed delete button on gridfield to cross and added tooltips for both edit and delete.
2012-05-28 12:03:38 +12:00
Sam Minnée
881c186f6d
Merge pull request #493 from halkyon/addnew_button_name
...
ENHANCEMENT Allow calling setButtonName() on a GridFieldAddNewButton to ...
2012-05-27 16:58:49 -07:00
Sean Harvey
0952df49fb
ENHANCEMENT Allow calling setButtonName() on a GridFieldAddNewButton to customise the button name
2012-05-28 11:55:43 +12:00
Naomi Guyer
28e43bdc88
ENHANCEMENT: File/Image UI fixes
...
* Replaced cancel/delete button in files area
* Consolidated Image upload styles with AssetUpload styles
* Changed name of step 2 in image upload
* Made image editing hidden by default, so multiple files can be seen,
and added ability top open and close
* Tweaked styles in on page upload field (status colour and file name
width)
2012-05-28 11:50:34 +12:00
Sean Harvey
74d444cf2f
BUGFIX Ensure "Add [modelClass]" is shown instead of using the field name of the GridField, partially reverts 16982ba17c
which broke breadcrumbs in SecurityAdmin
2012-05-28 11:43:47 +12:00
Sam Minnée
497aa9bfa9
Merge pull request #490 from simonwelsh/cms-oembed
...
BUGFIX: Provide a default width and height of 100px for those endpoints ...
2012-05-24 20:49:54 -07:00
Simon Welsh
15a5dab395
MINOR: Add a fallback thumbnail image for oEmbed inserts
2012-05-25 15:40:17 +12:00
Ingo Schommer
5b0734943f
MINOR Fixed GridFieldAddNewButton label
2012-05-24 23:39:47 +02:00
Ingo Schommer
fa445ad13f
Merge pull request #452 from adrexia/sapphire
...
---
* Added a separate component to grid field to hold buttons.
* Updated templates for changes
* Updated comments
Conflicts:
css/AssetUploadField.css
css/GridField.css
2012-05-24 23:06:46 +02:00
Simon Welsh
30ecb9f531
BUGFIX: Provide a default width and height of 100px for those endpoints that don't provide one.
2012-05-24 18:16:00 +12:00
Mateusz Uzdowski
63ed0cba32
BUGFIX: return a meaningful translatable string when resource is invalid
2012-05-24 17:00:21 +12:00
Simon Welsh
bb29ff3611
FEATURE: Allow adding media to the CMS using oEmbed
2012-05-24 17:00:21 +12:00
Sean Harvey
1ed5e3c9be
Merge pull request #485 from halkyon/deprecate_director_statics_for_controller
...
Deprecate director controller static functions
2012-05-23 15:54:57 -07:00
Sean Harvey
a84ef8d8f3
MINOR Don't use template method Actions internally in Form
2012-05-24 10:49:47 +12:00
Sean Harvey
c7e0cee637
API CHANGE Add Form->getController() and use this instead of Controller::curr() in FileIFrameField
...
API CHANGE Add Form->getName() and deprecate Form->Name(), use getName() instead.
2012-05-24 10:46:57 +12:00
Sean Harvey
60c72c40d9
API CHANGE Use of the DropdownField $emptyString argument is now
...
properly deprecated (has been marked as deprecated since 2.3). Please
use setEmptyString() on the DropdownField instance instead.
2012-05-23 22:59:40 +12:00
Sean Harvey
77c2365b87
MINOR Replacing deprecated static function calls to Director with
...
current Controller instance replacements.
2012-05-23 21:50:02 +12:00
Naomi Guyer
16982ba17c
ENHANCEMENT: Make GridFieldAddNewButton Content more specific
...
* Alter Grid Field "Add New" Button to take the name of the table (i.e.
"Add Member")
* Alter table names in security section to be singular so the button
text makes sense
2012-05-21 17:47:14 +12:00
Naomi Guyer
1747298786
ENHANCEMENT: Make GridFieldButtonRow more adaptable
...
* Add ability to choose where to put buttons (in buttonRow, toolbar
header, etc)
* Adjust styles to take these changes into account
2012-05-21 14:41:46 +12:00
Naomi Guyer
a7336e9dca
ENHANCEMENT: Move GridField buttons out of table (fixes 7213)
...
* Added a separate component to grid field to hold buttons.
* Updated templates for changes
* Updated comments
2012-05-21 14:19:59 +12:00
Sean Harvey
7dc2d61871
MINOR Removing whitespace
2012-05-18 18:05:45 +12:00
Naomi Guyer
a412aa0ce4
BUGFIX: Filter IDs
...
Change ID of action buttons in the filter panel to be unique
2012-05-18 18:01:07 +12:00
Sean Harvey
3f932d6bad
Merge pull request #464 from mateusz/os7299
...
BUGFIX: add capability of redirecting form actions.
2012-05-17 22:44:05 -07:00