forked from impress-org/givewp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Form Block Data is now converted to Fields API (impress-org#6)
* wip: Convert form block data to fields API. * chore: Remove debugging code * chore: Remove unused class use statements * feature: add support for nested sections on front-end * feature: add crude conditional to preserve form functionality * wip: Add context provider for form settings * wip: Add form title inspector control * refactor: Rename formSettings provider as formTitle * wip: Update form builder storage for formTitle * wip: Integrate form builder with GiveWP admin * wip: Add REST API nonce * fix: Check post type before redirecting * wip: Differentiate between sections and groups * refactor: Use form ID as DonationForm node name * wip: Add todo * wip: Add placeholder Payment Details block * wip: Add payment gateways options to paymentDetails * chore: Build project and packages * wip: Correct warning * chore: Hide form builder page from the menu * fix: Set new forms as published by default * chore: Remove console logs Co-authored-by: Jon Waldstein <jonwaldstein@jons-air.mynetworksettings.com>
- Loading branch information
Showing
17 changed files
with
303 additions
and
135 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,7 @@ | |
margin: 0; | ||
} | ||
} | ||
|
||
.sidebar-panel .active-tab { | ||
border-top: 3px solid #66bb6a; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { createContext } from 'react'; | ||
|
||
export const FormTitleContext = createContext(); | ||
|
||
export const FormTitleProvider = ({formTitle, setFormTitle, children}) => { | ||
|
||
return ( | ||
<FormTitleContext.Provider value={[formTitle, setFormTitle]}> | ||
{children} | ||
</FormTitleContext.Provider> | ||
) | ||
} |
Oops, something went wrong.