-
Notifications
You must be signed in to change notification settings - Fork 40
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
[UX] Replace the classic way of creating select lists/checkboxes/radio buttons with Options Element. #1005
Comments
@quicksketch: I saw a couple of issues in the d.org queue were you mentioned that you'd like to see this in core. Particularly interesting is the Provide a reusable API to convert textarea fields to an options element issue because if that happened, then we could use it in #1006. |
Thanks @klonos. I like options element myself and we obviously have the ability to put it in core now. I think options element is an improvement on the UX, but for a long-time Drupal user I can't tell if it would be a welcome change or not. I'd like to hear other people's thoughts on the usefulness/intuitiveness of options element. This would be a great candidate for a usability study if we had the resources to do so. |
I'm a long-time user and I welcome the change. @docwilmot's opinion coming up too... |
I, too, would welcome the change. |
I welcome this. |
I installed the options_element on the D7 and I did not see the new/promised interface.
Is there configuration required? |
It should be there. Make sure you've installed the latest stable (1.12) or used the 7.x-1.x branch. Apparently there's a master branch that's outdated. |
yep; i was on |
|
Issue #1005: fixing path to js for tabledrag.js and jquery.cookie.js. |
Thanks for the PR @serundeputy! I think this element would make the most sense in options.module itself. Although some modules may wish to also use this element (e.g. Webform), I think it would probably be acceptable to depend upon the options.module for this functionality. Thoughts? |
I don't have preference for where it is or with field/options, but if it is cleaner, better, more efficient to be there I'm glad to move it. Let me know if the above steps seem right; and/or clarify the ones that are questions. thanks, |
aside, not quite on topic, but:
I dont think those fit with the current admin theme aesthetic. Can we change them? |
Our current pattern per #486 is that we leave .inc files in the root, until we establish an official decision in #558. I'd say let's name it "options.element.inc".
These should be in
They should go in field/options/images/* yep. Also I think @docwilmot is right that these don't mesh with our current admin theme, but I think they work fine as generic elements. We should probably add Seven-specific styling in Seven's style.css. |
I would like to "resurrect" this ...and target for 1.4.0 if possible? @serundeputy if you're not busy with Real Life or anything more important for Backdrop core, if you get the chance to update the PR with the suggestions made, I'll make some time to test and review. |
wait; there are things more important than Backdrop? ... |
😄
I meant any other, more important issues in the Backdrop queue you might be working on. |
I ported options_element in support of @jackaponte's webform_civicrm work (which lists options_element as a dependency) but just came across this thread. Options_element is not in core yet, is it? |
Isn't yet. Feel free to continue where @serundeputy left off. :) |
Reviving this with PR. The one thing I haven't addressed was @docwilmot mentioning that the add/remove images don't match the aesthetic. Could that be a follow-up? Oh, and no tests. It being mostly JS I think we can't easily test most of that. Perhaps test to look for HTML that should be there? (Another follow-up: update webform_civicrm to rely on this). |
Took it for a quick spin and it looks good to me from a UI/usage perspective (noting that there may be a follow-up adjustment to the add/remove images). Is there a way to disable the contrib |
Nice work @herbdool
Only UX review, havent checked code yet. |
@laryn maybe we'd have to first make an update to the contrib module to set a dependency of system less than a X version. |
Wow, I love, love LOVE this improvement! I just tried the sandbox, and its implementation is even better than options element was for webform :) Nice work everyone! A few thoughts:
|
|
@jenlampton 3) is now moved to just below the Add item link. I think it works better there otherwise it breaks up the UI for "Add item" and "No default". |
Yes, I LOVE it! |
I really love this too! ...shamelessly plugging #2304 which would be equally cool IMO. |
Ui looks fantastic, all questions on my code review have been resolved. RTBC from me! |
…xes/radio buttons with Options Element. By @herbdool, @docwilmot, @klonos, @jenlampton, @quicksketch, @serundeputy, and @laryn.
I gave this one more code review and it looks great! I've merged this into 1.x for 1.12.0. Thanks @herbdool, @docwilmot, @klonos, @jenlampton, @serundeputy, and @laryn! |
Classic way:
Options Element:
We should get the approval of the maintainer first though 😛
Port of the D7 contrib module by @laryn: https://github.com/backdrop-contrib/options_element
PR by @serundeputy: backdrop/backdrop#972PR by @herbdool: backdrop/backdrop#2204
The text was updated successfully, but these errors were encountered: