This module allows the default checkbox and radiobutton to be converted to buttons-friendly elements. This module add a widget "Pretty Check boxes/radio buttons" for Boolean and List(text) fields.

How to use:

  1. Go to manage fields of the content type you wish to have a pretty buttons and add Boolean or List(text) field.
  2. Go to manage form display tab and under widget column select 'Pretty Check boxes/radio buttons' for your field.
  3. Finally save the manage form display and you are done. (Clear cache in case you do not see that the elements changed to pretty
    buttons).

Project link

https://www.drupal.org/project/pcr

Git instructions

git clone --branch 8.x-1.x https://git.drupalcode.org/project/pcr.git

PAReview checklist

https://pareview.sh/pareview/http-git.drupal.org-project-pcr.git

CommentFileSizeAuthor
pretty_elements_config.png37.46 KBdmezquia
pretty_elements.png28.35 KBdmezquia

Comments

diosbelmezquia created an issue. See original summary.

dmezquia’s picture

Issue summary: View changes
dmezquia’s picture

Issue summary: View changes
phthlaap’s picture

Status: Needs review » Needs work

Please update this issue, add the project information follow the template on this post:

https://www.drupal.org/node/1011698

dmezquia’s picture

Title: Pretty Checkbox Radio » [D8] Pretty Checkbox Radio
Issue summary: View changes
Status: Needs work » Needs review
er.garg.karan’s picture

Review for the release 8.x-1.x

  1. File: pcr.module, Line: 13, 15
    Make sure you do not exceed max allowed characters per line.
  2. File: src\Plugin\Field\FieldWidget\PrettyOptionsWidget.php
    Remove commented code from the function settingsForm. It is highly recommended to have commented code.
  3. File: css\style.css
    Try not to use the most generic name style.css. Try using a name that matches your module name or the feature for which the file is being used for.
dmezquia’s picture

Thank @er.garg.karan, the adjustments you indicate to me are already ready for 8.x-1.x.

anokr’s picture

Hi,
Review for 8.x-1.x
1. file : PrettyOptionsWidget.php, line 55 comment is not as per Drupal Standard.
and if it is unnecessary code then it can be removed.

Thanks

dmezquia’s picture

Hi @AnokR , thank for the feedback, that code is already removed.
https://git.drupalcode.org/project/pcr/blob/8.x-1.x/src/Plugin/Field/Fie...

avpaderno’s picture

Issue summary: View changes

I added the Git instructions for non-maintainer users.

dmezquia’s picture

Hi @kiamlaluno, has that something to do with passing the module to security coverage?

vuil’s picture

Status: Needs review » Reviewed & tested by the community

Thank you for the contribution!

I have not found any security related issue into the project's code.
Nice module and very good UX / UI implementation!

I set the issue's status to Reviewed and tested by community.

dmezquia’s picture

Thank @ilchovuchkov .

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

dmezquia’s picture

Thank @kiamlaluno

dmezquia’s picture

Hi @kiamlaluno, some update about this?

vuil’s picture

@diosbelmezquia Please read carefully all the mentioned documentation and content pages in #14.

The issue is Fixed, so feel free to edit your project's page and set it up to the security coverage.

dmezquia’s picture

Thank @ilchovuchkov

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

vuil’s picture