Skip to content

Commit 27a7c6f

Browse files
authored
Merge pull request #16324 from marcusmoore/chore/migrate-checkbox-helpers-p2
Replace calls to Form::checkbox pt2
2 parents 9d45322 + 4d55a67 commit 27a7c6f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

resources/views/hardware/history.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<div class="form-group">
8888
<div class="col-sm-10 col-md-offset-2">
8989
<label class="form-control">
90-
{{ Form::checkbox('match_firstnamelastname', '1', old('match_firstnamelastname')) }}
90+
<input type="checkbox" name="match_firstnamelastname" value="1" @checked(old('match_firstnamelastname'))>
9191
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
9292
<span>
9393
{!! trans('admin/hardware/general.csv_import_match_f-l') !!}
@@ -100,7 +100,7 @@
100100
<div class="form-group">
101101
<div class="col-sm-10 col-md-offset-2">
102102
<label class="form-control">
103-
{{ Form::checkbox('match_flastname', '1', old('match_flastname')) }}
103+
<input type="checkbox" name="match_flastname" value="1" @checked(old('match_flastname'))>
104104
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
105105
<span>
106106
{!! trans('admin/hardware/general.csv_import_match_initial_last') !!}
@@ -113,7 +113,7 @@
113113
<div class="form-group">
114114
<div class="col-sm-10 col-md-offset-2">
115115
<label class="form-control">
116-
{{ Form::checkbox('match_firstname', '1', old('match_firstname')) }}
116+
<input type="checkbox" name="match_firstname" value="1" @checked(old('match_firstname'))>
117117
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
118118
<span>
119119
{!! trans('admin/hardware/general.csv_import_match_first') !!}
@@ -126,7 +126,7 @@
126126
<div class="form-group">
127127
<div class="col-sm-10 col-md-offset-2">
128128
<label class="form-control">
129-
{{ Form::checkbox('match_email', '1', old('match_email')) }}
129+
<input type="checkbox" name="match_email" value="1" @checked(old('match_email'))>
130130
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
131131
<span>
132132
{!! trans('admin/hardware/general.csv_import_match_email') !!}
@@ -139,7 +139,7 @@
139139
<div class="form-group">
140140
<div class="col-sm-10 col-md-offset-2">
141141
<label class="form-control">
142-
{{ Form::checkbox('match_username', '1', old('match_username')) }}
142+
<input type="checkbox" name="match_username" value="1" @checked(old('match_username'))>
143143
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
144144
<span>
145145
{!! trans('admin/hardware/general.csv_import_match_username') !!}

resources/views/licenses/edit.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</div>
6969
<div class="col-md-7">
7070
<label class="form-control">
71-
{{ Form::Checkbox('reassignable', '1', old('reassignable', $item->id ? $item->reassignable : '1'),array('aria-label'=>'reassignable')) }}
71+
<input type="checkbox" name="reassignable" value="1" aria-label="reassignable" @checked(old('reassignable', $item->id ? $item->reassignable : '1'))>
7272
{{ trans('general.yes') }}
7373
</label>
7474
</div>
@@ -124,7 +124,7 @@
124124
<div class="col-md-3 control-label"><strong>{{ trans('admin/licenses/form.maintained') }}</strong></div>
125125
<div class="col-md-7">
126126
<label class="form-control">
127-
{{ Form::Checkbox('maintained', '1', old('maintained', $item->maintained),array('aria-label'=>'maintained')) }}
127+
<input type="checkbox" name="maintained" value="1" aria-label="maintained" @checked(old('maintained', $item->maintained))>
128128
{{ trans('general.yes') }}
129129
</label>
130130
</div>

0 commit comments

Comments
 (0)