Ingo Schommer
7bc6f3ee9f
Enforce JS var declaration with value ( #5993 )
...
This caught us out recently where code did a strict type check for `myVar === undefined`.
The var was defined as `let myVar;`, without a value - so the check returned false (it's `null`).
To avoid this situation, we've decided to enforce declarations with values.
Note that preference should be given to single, immutable assignments via const where possible.
See http://eslint.org/docs/rules/init-declarations
2016-09-13 11:02:15 +12:00
Ingo Schommer
65718770d6
Update to React v15.0
2016-09-06 21:39:20 +12:00
Ingo Schommer
0cc91d3b38
Use react-bootstrap-ss fork
...
The react-bootstrap project won't update their codebase for TWBS4 compat
until they're out of alpha (https://github.com/react-bootstrap/react-bootstrap/issues/1187 ).
So we have to work in a fork for the meantime.
2016-09-06 21:36:58 +12:00
Ingo Schommer
57d885f406
Updated dist files
2016-09-06 20:40:20 +12:00
Ingo Schommer
f7f1cf0e87
Fix SingleSelectField readonly view
2016-09-06 20:40:14 +12:00
Ingo Schommer
1d3aaf368e
Popover docs
2016-09-06 20:39:41 +12:00
Ingo Schommer
b53ce4c190
FIX Button loading indicator
...
See silverstripe/silverstripe-framework#5941
2016-09-06 20:39:32 +12:00
Damian Mooyman
1eb4e70201
Merge pull request #5945 from open-sausages/pulls/4.0/insert-link
...
Insert link styling adjustments incl. minor text updates
2016-09-05 15:56:23 +12:00
Ingo Schommer
6d0d46b06b
Merge pull request #5946 from robbieaverill/bugfix/5936-show-formatting-help
...
FIX Show formatting help toggle link
2016-09-05 12:10:57 +12:00
Robbie Averill
cbdf3eb725
FIX Show formatting help toggle link
...
* Fixes #5936
2016-09-05 11:59:14 +12:00
Paul Clarke
f2637fc059
Remove additional divider lines, adjust padding
2016-09-02 16:50:52 +12:00
Paul Clarke
c3f4d0cf0b
Add inline forms styles to insert-link modal
2016-09-02 16:37:59 +12:00
Ingo Schommer
ecaed8c08d
Fixed icon regression in <Breadcrumb>
2016-09-01 14:07:02 +12:00
Ingo Schommer
56b249eb23
Field values in FormBuilder action handling
...
Allows actions to make decisions based on the form payload.
For example, a "delete" button can pass the currently edited record ID to its API endpoint.
2016-09-01 07:55:56 +12:00
Ingo Schommer
fa5e6bbd69
Fixed breadcrumb icon spacing
...
Regression from https://github.com/silverstripe/silverstripe-framework/issues/5917
2016-08-31 22:31:39 +12:00
Christopher Joe
c1c20aaafc
Breadcrumbs with new icons generated
2016-08-30 14:46:59 +12:00
Christopher Joe
b509f9199d
Fix Modal response positioning
2016-08-29 10:50:17 +12:00
Ingo Schommer
564ddfa602
Apply .field class to <FieldHolder> react component
...
It keeps styling consistent between Entwine sections (generated by FieldHolder.ss)
and React sections (generated by <FieldHolder> component).
2016-08-28 13:31:17 +12:00
Ingo Schommer
a0d4e363c2
Moved <select> styles to generic _forms.scss
...
Form element styles should be consistent throughout the CMS.
While we still have the ability to create dropdowns (<select>) which aren't based on
Entwine/HTML rather than new components like <SingleSelectField>,
we need to ensure those are rendered the same.
By default, the Entwine-based CMS sections will transform <select>
into a ChosenJS control, but you can still apply .no-chosen.
Hence there's a need for correct height both in React and Entwine sections,
not just in a React component.
2016-08-28 13:30:18 +12:00
Ingo Schommer
79b9bb6f18
React for "Add to campaign" on pages
...
Reuse existing functionality rather than creating "new legacy code" through writing more Entwine
2016-08-28 13:07:32 +12:00
Christopher Joe
b77d21c25a
Fix pages add to campaign, improved FormActions error handling, Popover focus highlight and refactored AddToCampaignModal to FormBuilderModal
...
tweaked tests to suit new generic FormBuilderModal, changed FormAction handler to throw a promise instead
2016-08-28 13:07:32 +12:00
Paul Clarke
a49456df20
Fix for batch actions not postponed under toolbar on open/close
2016-08-28 13:07:32 +12:00
Paul Clarke
b01de98b04
Remove padding override but adjust contents to suit container padding
...
Remove spacing to the right of icon as there is no btn label
2016-08-28 13:07:31 +12:00
Ingo Schommer
5c2e8d1299
Fix form attr merging order
2016-08-28 13:07:31 +12:00
Ingo Schommer
84cdb15a5f
Simplify "add to campaign" dialog
...
Talked to @clarkepaul and simplified to avoid title duplication
2016-08-28 13:07:31 +12:00
Christopher Joe
a9bdf33ca8
Fix SingleSelect styling, added add to campaign documentation
2016-08-28 13:07:31 +12:00
Christopher Joe
b9624994ac
AddToCampaign save message, Submitting indicator on FormAction button
2016-08-28 13:07:31 +12:00
Christopher Joe
d7663e850e
Remove duplicate props for PopoverField, added FormBuilder->handleAction and flattened state data
2016-08-28 13:07:30 +12:00
Christopher Joe
6a4b29d703
Add to campaign modal
2016-08-28 13:07:30 +12:00
Christopher Joe
fb64e27960
Cleanup API for better form schema support
2016-08-28 13:07:30 +12:00
Daniel Hensby
1d1227cc9a
Merge branch '3'
2016-08-23 10:37:47 +01:00
Damian Mooyman
59efd280ad
Fix issues with CMS permission codes
...
Standardise template locations
Move CMSSettingsController class to SiteConfig module
Fix CMSMenu behaviour for namespaced admin sections
Split classes into one per file
Manual fixes and cleanup
2016-08-17 11:19:14 +12:00
Christopher Joe
8a5f8fbc2d
Created FieldHolder HOC for TextField and HtmlReadonlyField
2016-08-16 16:53:17 +12:00
Christopher Joe
0363351ee5
Add React HtmlReadonlyField and fixed TextField id
2016-08-16 11:10:44 +12:00
Christopher Joe
a68ba38478
Improve FormBuilder API and added HeaderField and LiteralField
2016-08-16 11:09:19 +12:00
Ingo Schommer
7322c57fc8
Merge pull request #5882 from open-sausages/pulls/4.0/redux-devtools
...
Switch redux-logger to redux devtools for easier debugging
2016-08-12 16:11:58 +12:00
Christopher Joe
42d36da3fb
Switch redux-logger to redux devtools for easier debugging
2016-08-12 16:11:33 +12:00
Daniel Hensby
988af4582d
Merge pull request #5862 from silverstripe-terraformers/fixes/batch-actions-checkboxes
...
Fix batch action permissions not applied to new nodes loaded
2016-08-11 14:26:27 +01:00
Damian Mooyman
6005a1c2b2
API Upgrade for silverstripe CMS namespace changes
2016-08-11 11:51:02 +12:00
Christopher Joe
7448fb7bae
Fix batch action permissions not applied to new nodes loaded
2016-08-11 11:41:07 +12:00
Paul Clarke
b9445511b7
Bootstrap GridField
2016-08-03 18:35:18 +12:00
Christopher Joe
d93d9bc3c4
Disable datepicker for disabled or readonly fields, they were still editable through the picker
2016-08-01 11:47:48 +12:00
Daniel Hensby
d42826e2ba
Merge pull request #5851 from open-sausages/pulls/4.0/fix-hash-navigation
...
BUG Fix hash link navigation in CMS
2016-07-29 11:26:07 +01:00
Damian Mooyman
06ae50e4f5
BUG Fix hash link navigation in CMS
2016-07-29 15:58:23 +12:00
Oly Su
89508a8f19
Tidy up history panel
2016-07-29 15:54:00 +12:00
Paul
e2826927a7
Adjust width of select dropdown ( #5850 )
2016-07-29 10:48:12 +12:00
Damian Mooyman
d15b19d208
Fix merge regressions in add-link fixes
2016-07-28 17:03:46 +12:00
Damian Mooyman
a868ecdbfa
BUG Correct include paths for legacy JS files
2016-07-28 16:34:28 +12:00
Damian Mooyman
6e74b57c36
BUG Fix issue with gulpfile.js not compiling client/src/legacy dir
...
BUG Make SelectionGroup.ss and SelectionGroup.js work together
BUG Fix for IE visual indentation of composite field
2016-07-28 16:32:40 +12:00
Oly Su
2805baecd3
Added missing bootstrap form messages
...
Align top of selection-group and label
Fix styles for overly nested composite fields
Step label added and new templates for forms
2016-07-28 16:32:40 +12:00