Skip to content

A free open source IT asset/license management system

Migrate Form::checkboxes on asset history import page

Marcus Mooreb937b7e76764
diff --git a/resources/views/hardware/history.blade.php b/resources/views/hardware/history.blade.php
index 9b03802df2..1bb1e80136 100644
--- a/resources/views/hardware/history.blade.php
+++ b/resources/views/hardware/history.blade.php
@@ -87,7 +87,7 @@
<div class="form-group">
<div class="col-sm-10 col-md-offset-2">
<label class="form-control">
- {{ Form::checkbox('match_firstnamelastname', '1', old('match_firstnamelastname')) }}
+ <input type="checkbox" name="match_firstnamelastname" value="1" @checked(old('match_firstnamelastname'))>
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
<span>
{!! trans('admin/hardware/general.csv_import_match_f-l') !!}
@@ -100,7 +100,7 @@
<div class="form-group">
<div class="col-sm-10 col-md-offset-2">
<label class="form-control">
- {{ Form::checkbox('match_flastname', '1', old('match_flastname')) }}
+ <input type="checkbox" name="match_flastname" value="1" @checked(old('match_flastname'))>
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
<span>
{!! trans('admin/hardware/general.csv_import_match_initial_last') !!}
@@ -113,7 +113,7 @@
<div class="form-group">
<div class="col-sm-10 col-md-offset-2">
<label class="form-control">
- {{ Form::checkbox('match_firstname', '1', old('match_firstname')) }}
+ <input type="checkbox" name="match_firstname" value="1" @checked(old('match_firstname'))>
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
<span>
{!! trans('admin/hardware/general.csv_import_match_first') !!}
@@ -126,7 +126,7 @@
<div class="form-group">
<div class="col-sm-10 col-md-offset-2">
<label class="form-control">
- {{ Form::checkbox('match_email', '1', old('match_email')) }}
+ <input type="checkbox" name="match_email" value="1" @checked(old('match_email'))>
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
<span>
{!! trans('admin/hardware/general.csv_import_match_email') !!}
@@ -139,7 +139,7 @@
<div class="form-group">
<div class="col-sm-10 col-md-offset-2">
<label class="form-control">
- {{ Form::checkbox('match_username', '1', old('match_username')) }}
+ <input type="checkbox" name="match_username" value="1" @checked(old('match_username'))>
<!-- enclosing span needed for the checkbox CSS to work properly, since there's HTML in the label text -->
<span>
{!! trans('admin/hardware/general.csv_import_match_username') !!}