Comments (7)
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.
from pods.
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.
from pods.
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.
from pods.
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.
from pods.
OK so you can see a lot of the form stuff I'm doing here:
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!
from pods.
Notes for a later self: Build out options for boolean field, then follow that structure for other fields when building out
from pods.
Need to add dependency handling into field options, and switch 'values' array to 'data', then determine grouping
from pods.
Related Issues (20)
- Add support for conditional logic in multiple selection field
- The date field input, when the repeatable option is enabled, does not display the input popup HOT 1
- Pods blocks feature (pods_register_block_type) doesn't work with configs from 'get_args()' HOT 2
- [wpvc] The plugin hasn't been tested with the latest version of WordPress
- Constant Uncaught exception error on every request HOT 7
- Pods triggers error on CPT "Incorrect use of <label for=FORM_ELEMENT>" HOT 2
- WP_Query integration for table-based storage
- [wpvc] The plugin hasn't been tested with the latest version of WordPress
- Group Custom Field by Tab HOT 3
- Metaboxes don't seem to respect the WordPress prefix HOT 2
- Ability to have Yoast SEO detect custom fields on taxonomy terms
- Site Health Warning: Undefined array key "data" in .../wp-content/plugins/pods/classes/PodsAdmin.php on line 4771
- Shown language partially stays the same after changing the WordPress language
- Additional CSS Classes don't add CSS Classes to "Row"
- Fix parameter name on pods_field_display HOT 3
- How Can get Data from Pods Item List Randomly
- Access right in Unpublished posts
- Compatibility with WPML: Changes to custom field data not saving in secondary language.
- Pods Rest API sometimes not delivering HOT 1
- Fatal error : Allowed memory size of 134217728 bytes exhausted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pods.