Groups
Groups
Sign in
Groups
Groups
rails_admin
Conversations
About
Send feedback
Help
Multi-select enum with checkboxes?
764 views
Skip to first unread message
Neil Ang
unread,
Sep 5, 2012, 8:42:41 PM
9/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rails...@googlegroups.com
Is it possible to create a multi-select enum which renders with checkboxes instead of a standard multi-select control?
Has anyone done this before?
Thanks.
Benoit Bénézech
unread,
Sep 10, 2012, 1:13:06 PM
9/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rails...@googlegroups.com
No this hasn't been done AFAIK.
This shouldn't be too hard to add it here:
https://github.com/sferik/rails_admin/blob/master/app/views/rails_admin/main/_form_enumeration.html.haml
then add an option in
https://github.com/sferik/rails_admin/blob/master/lib/rails_admin/config/fields/types/enum.rb
to control it.
As a sidenote, you should make it a radio-button if their is only one choice possible.
Reply all
Reply to author
Forward
0 new messages