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
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
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
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
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
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
Paul Clarke
b9445511b7
Bootstrap GridField
2016-08-03 18:35:18 +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
Damian Mooyman
a809e80d01
API Convert CMS forms to bootstrap
...
NEW Add cms-forms microtheme to cater to bootstrap's needs.
Note that the old SS3 assets section is buggy as a result of this change.
2016-07-25 17:24:26 +12:00
Damian Mooyman
5cb4ab4a82
API Add PopoverField for extra-actions popup in react
2016-07-15 15:46:11 +12:00
Damian Mooyman
6e68f38efb
API Update react sections to use react-router instead of page.js ( #5796 )
...
Fixes #5711
2016-07-14 17:51:01 +12:00
Damian Mooyman
80e5b9149e
API Move dependency on model class from form schema API
...
API Refactor hard-coded dataobject class references from CampaignAdmin
Fixes #5730
2016-06-23 11:04:42 +12:00
David Craig
83308689d5
API Initialise React controllers via routes ( #5436 )
2016-06-16 15:04:14 +12:00
Paul Clarke
b3a96e7e3d
minor linting fix
2016-06-07 12:45:38 +12:00
Paul Clarke
5e634c2a16
Update Form component to just Form
...
Convert form and Textfield styles to use Bootstrap
Split out btn styles a bit more clearly defined (BEM)
Toolbar modifier to improve spacing for smaller screens
Use bootstrap spacer styles .m-t-1 (margin-top-1 x spacer) instead of custom spacer
Added a few typography helpers
Tab styles continued although they are hidden (used on AssetAdmin editor panel)
2016-06-03 15:52:31 +12:00
Ingo Schommer
7c62a6d58d
Bootstrap classes for text field
...
Required to support new "compressed" form style in admin/assets
which puts form field labels on their own line (and requires the bootstrap layout styling for this)
2016-06-03 14:59:40 +12:00
Paul
f4037fe319
Swap out .Actions class for bootstrap .btn-toolbar ( #5581 )
...
* Swap out .Actions class for bootstrap .btn-toolbar
* Converted all south toolbars to use new toolbar component styles, content and preview styles for scrollbars adjusted where required
2016-05-27 13:39:10 +12:00
Christopher Joe
19a1ebe789
add namespace for appBoot, and fix syntax error in GridField
2016-05-25 12:11:46 +12:00
Scott Hutchinson
9ba362065e
Fix loading icon bug on IE
2016-05-14 14:09:50 +12:00
Hamish Friedlander
a61d0a2f0b
FIX Persistant Loading... indicator when no campaigns yet in admin
2016-05-12 13:32:38 +12:00
Ingo Schommer
0838770798
Consistent React event method naming
...
Use "on<event>" for props, same as React's own event naming: https://facebook.github.io/react/docs/forms.html#interactive-props
Use "handle<event>" to delineate internal handlers
2016-05-11 18:08:23 +12:00
Paul Clarke
746c4f7548
Vertically centre title only in breadcrumb
...
Fixes #5508
2016-05-11 16:32:49 +12:00
Paul Clarke
7093224db3
Markup and styles for back button outside of new toolbar
...
Adjust height of north bar to match rest of CMS plus minor positioning
fixes.
2016-05-11 14:39:47 +12:00
Paul Clarke
79d1a0542d
Spacing above forms and of labels and middle column within forms
2016-05-10 22:20:00 +12:00
Paul Clarke
f64de9b667
Move accordion item up slightly
2016-05-10 22:20:00 +12:00
Paul Clarke
25f118657e
Slight adjustment to make sure icons don't effect text
2016-05-10 22:20:00 +12:00
Paul Clarke
e0a7c4fb47
Move the back arrow back slightly for visual alignment
2016-05-10 22:19:31 +12:00
Damian Mooyman
7f03b88e5e
API Add empty campaign layout
2016-05-10 17:34:32 +12:00
Paul Clarke
0321d0868e
Added btn--icon-xl for use within assetAdmin
2016-05-10 16:34:13 +12:00
Paul Clarke
100deada75
Updated markup on Campaign edit and add screen to use newer patterns.
...
Moved role=group up a level as it broke layout.
2016-05-10 16:33:21 +12:00