Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to override form layouts in a simpler way #4116

Merged
merged 26 commits into from
Dec 9, 2019
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
df0512d
Add ability to customize the Edit root component
fzaninotto Dec 5, 2019
c1655ce
Make handleSubmitWithRedirect optional in Toolbar
fzaninotto Dec 5, 2019
2d2f54a
Improve use of screen real estate in Customers detail
fzaninotto Dec 5, 2019
c361776
Use SimpleForm instead of TabbedForm in VisitorCreate
fzaninotto Dec 5, 2019
c22fb29
Document custom form
fzaninotto Dec 5, 2019
adabf9b
Use Box component for responsive layout of VisitorEdit form
fzaninotto Dec 5, 2019
48289c7
Update custom form layout screenshot
fzaninotto Dec 5, 2019
9e0b44f
Minor ui adjustments
fzaninotto Dec 5, 2019
8e7946b
Minor ui adjustments
fzaninotto Dec 5, 2019
ea27a65
introduce FormwithRedirect to ease custom forms
fzaninotto Dec 6, 2019
c74c37a
use FormWithRedirect in SimpleForm
fzaninotto Dec 6, 2019
78fa078
Keep form in child - just like react-final-form
fzaninotto Dec 6, 2019
e170b8a
Use FormWithredirect in TabbedForm
fzaninotto Dec 6, 2019
3faca9f
improve handleSubmitWithRedirect documentation
fzaninotto Dec 7, 2019
4e08459
use FormWithRedirect in custom form examples
fzaninotto Dec 7, 2019
ba93f1a
Reorder list code to be readable from top to bottom
fzaninotto Dec 7, 2019
75b33fb
Reorder Create code to be readable from top to bottom
fzaninotto Dec 7, 2019
c3df202
Reorder Show code to be readable from top to bottom
fzaninotto Dec 7, 2019
b781a02
Reorder Edit code to be readable from top to bottom
fzaninotto Dec 7, 2019
ee79318
Harmonize jsDoc of main view components
fzaninotto Dec 7, 2019
a6aa5a8
Document the component prop in main view components
fzaninotto Dec 7, 2019
c75e9cf
improve custom form documentation
fzaninotto Dec 7, 2019
2015d29
Fix tests
fzaninotto Dec 9, 2019
1211a39
Fix DOM warning
fzaninotto Dec 9, 2019
370d908
review
fzaninotto Dec 9, 2019
dd62ae0
Fix FormWithRedirect swallows som Form props
fzaninotto Dec 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make handleSubmitWithRedirect optional in Toolbar
  • Loading branch information
fzaninotto committed Dec 5, 2019
commit c1655ce4188f1eff8e40751d39383c1237f1e0d8
4 changes: 3 additions & 1 deletion packages/ra-ui-materialui/src/form/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ const Toolbar = ({
{Children.count(children) === 0 ? (
<div className={classes.defaultToolbar}>
<SaveButton
handleSubmitWithRedirect={handleSubmitWithRedirect}
handleSubmitWithRedirect={
handleSubmitWithRedirect || handleSubmit
}
invalid={invalid}
redirect={redirect}
saving={saving}
Expand Down