Commit graph

7 commits

Author SHA1 Message Date
Corey McKrill
c35efea8b7
Re-enable pledge creation during new pledge form processing 2019-10-18 15:28:01 -07:00
Corey McKrill
c520d26527
Pledge Form: Abstract the procedure for getting filtered post input 2019-10-17 16:12:53 -07:00
Corey McKrill
1405ff138a
Pledge Form: Check for unique email
In addition to checking for a unique domain, we need to check for a
unique email address as well.
2019-10-16 16:56:02 -07:00
Kelly Dwan
0f675ae6c3
Create Pledge: Make form functional (#31)
This broadly enables & styles the pledge forms across the frontend and wp-admin.

- Switches field `readonly` control to a variable called `$readonly`
- Create `PledgeMeta\get_pledge_meta()` which will fetch data from `$_POST`, a pledge post, or defaults.
- Add Number of Employees field
- Update form content to match mockup:
  - fields now have help text
  - success message uses content from mockup
  - logo field is moved to the "org info" section
- Style form in theme, add some similar styles to the admin

Fixes #7, fixes #28
2019-10-08 18:29:35 -04:00
Corey McKrill
ded645fabc
Plugin: Refactor to use as foundation for planned pledge workflows (#23)
This starts to address several items in the roadmap, but probably doesn't fully address any of them. It takes the plugin code that was written several months ago, before the scope of this project was fully sorted out, and refactors it to be a starting point for the roadmap.

* Adds template files for form inputs that can be used to both create new pledges and manage existing pledges
* Does some validation and sanitization work on form submissions
* Adds a custom post status for deactivated pledges
2019-10-04 12:35:02 -07:00
Corey McKrill
9bf2f9dd1a
Update company to pledge, some code cleanup 2019-09-30 17:04:49 -07:00
Corey McKrill
697a4b2329
Add 5ftf plugin from https://github.com/coreymckrill/5ftf 2019-09-27 17:41:19 -07:00