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

Revamp Form UI #2

Closed
sc0ttkclark opened this issue Sep 1, 2011 · 7 comments
Closed

Revamp Form UI #2

sc0ttkclark opened this issue Sep 1, 2011 · 7 comments
Assignees
Labels
Type: Feature Features that add entirely new functionality that was not there before
Milestone

Comments

@sc0ttkclark
Copy link
Member

No description provided.

@ghost ghost assigned jchristopher Sep 1, 2011
@sc0ttkclark
Copy link
Member Author

Need to put together the form for use on the frontend (publicForm replacement) and the backend (partially completed).

Should use CSS best-practices, follow what Gravity Forms does if you want inspiration. Current publicForm UI is too basic and plain, should have a bit more style to it like Gravity Forms has. New backend form should take it's cue from the WP UI for the post editor, so as much as it can retain that look the better.

@sc0ttkclark
Copy link
Member Author

I'm working on refactoring the Form class, so each field extends a general field class and has more options to hook into from their own custom field types. UI will also be separated out and pulled from the ui folder, which could be made to be hookable so that they could be overridden.

@sc0ttkclark
Copy link
Member Author

Wasn't able to get it to a working point to commit this weekend. I should really find a workflow that has me working from a new branch, now that 2.0 alpha is live lol.

@sc0ttkclark
Copy link
Member Author

Well looky looky, creating a new branch for my commits to go into was super easy. Not sure how that'll work with committing to existing branches, but I'll be working from 2.0-bleeding now and just do pull requests for each real alpha release.

@sc0ttkclark
Copy link
Member Author

OK so you can see a lot of the form stuff I'm doing here:

0a48014

I still have quite a bit of pulling in of each field's data, and then building out the actual field option loop in the setup_edit_field.php, which handles each individual option, setting the defaults for that option, etc. My idea for the form field classes (in /classes/fields/boolean.php) is to make it the one place to modify each field's settings for input, display, saving, and settings. Boolean and Number have been nearly completed, I've been stripping out the actual HTML into the new pods_view function and pulling from the /ui/fields/ folder now.

I should be done soon!

@sc0ttkclark
Copy link
Member Author

Notes for a later self: Build out options for boolean field, then follow that structure for other fields when building out

@sc0ttkclark
Copy link
Member Author

Need to add dependency handling into field options, and switch 'values' array to 'data', then determine grouping

@ghost ghost assigned dontfeedthecode Jul 25, 2012
@sc0ttkclark sc0ttkclark self-assigned this Dec 29, 2015
sc0ttkclark pushed a commit that referenced this issue Jul 11, 2016
…elease

	Merge branch 'feature/#3364-2.7-Feature-Release' into #3364-2.7-Feature-Release
pdclark added a commit to pdclark/pods that referenced this issue Sep 14, 2021
A proposed solution for an error reported in this [Slack thread](https://podswp.slack.com/archives/C02SVLHQF/p1631628235171000).

It appears that `$this->_parent` can contain either an object or a boolean.
This should resolve the error by checking that it's an object before attempting to use the method `->is_anonymous()`.

It looks like `$this->_parent` is used in other places in this class.
Unknown if the `boolean` vs. `object` detail effects any other functionality.

Error:
```
Error Details
=============
An error of type E_ERROR was caused in line 23432 of the file /home/ekhulnac/public_html/destra/plugins/pods/vendor/freemius/wordpress-sdk/includes/class-freemius.php. Error message: Uncaught Error: Call to a member function is_anonymous() on bool in /home/ekhulnac/public_html/destra/plugins/pods/vendor/freemius/wordpress-sdk/includes/class-freemius.php:23432
Stack trace:
#0 /home/ekhulnac/public_html/destra/plugins/pods/vendor/freemius/wordpress-sdk/includes/class-freemius.php(2051): Freemius->_add_tracking_links()
pods-framework#1 /home/ekhulnac/public_html/wp-includes/class-wp-hook.php(303): Freemius->_hook_action_links_and_register_account_hooks('')
pods-framework#2 /home/ekhulnac/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
pods-framework#3 /home/ekhulnac/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
pods-framework#4 /home/ekhulnac/public_html/wp-admin/admin.php(175): do_action('admin_init')
pods-framework#5 /home/ekhulnac/public_html/wp-admin/plugins.php(10): require_once('/home/ekhulnac/...')
pods-framework#6 {main}
```
@what-the-diff what-the-diff bot mentioned this issue Feb 14, 2023
This was referenced May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Features that add entirely new functionality that was not there before
Projects
None yet
Development

No branches or pull requests

6 participants