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

Add a clickable label to multiple checkbox #4992

Merged
merged 3 commits into from
Jul 6, 2020

Conversation

moaazmf90
Copy link
Contributor

The multiple checkbox option in the BREAD does not have a label, so if the user will click the name next to the checkbox, it will not be checked, so I added a label to it so the whole thing is clickable, it's much user-friendly.

you can add more styling to it so it will get more spacing between each checkbox.

…he user will click the name next to the checkbox, it will not be checked, so I added a label to it so the whole thing is clickable.
@codecov
Copy link

codecov bot commented Jun 26, 2020

Codecov Report

Merging #4992 into 1.4 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##                1.4    #4992   +/-   ##
=========================================
  Coverage     62.96%   62.96%           
+ Complexity     1373     1372    -1     
=========================================
  Files           194      194           
  Lines          4007     4007           
=========================================
  Hits           2523     2523           
  Misses         1484     1484           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec68bb5...beaa85f. Read the comment docs.

@moaazmf90 moaazmf90 changed the title Add a label to multiple checkbox Add a clickable label to multiple checkbox Jun 26, 2020
@@ -13,7 +13,9 @@
@endif

<input type="checkbox" name="{{ $row->field }}[{{$key}}]"
{!! $checked ? 'checked="checked"' : '' !!} value="{{$key}}" />
{{$label}}
{!! $checked ? 'checked="checked"' : '' !!} value="{{$key}}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you return the formatting back to inline attributes? No need to change that

{{$label}}
{!! $checked ? 'checked="checked"' : '' !!} value="{{$key}}"
id="{{$key}}"/>
{{-- i modified the checkbox and added a label so the user can click the label and have the input checked --}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete this comment.

@emptynick emptynick dismissed fletch3555’s stale review July 6, 2020 10:26

Implemented requested changes

@emptynick emptynick merged commit 5d484e8 into thedevdojo:1.4 Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants