From 427615f62714475e33cd95b6522d12c03140bb18 Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 23 Jun 2024 18:24:23 +0100 Subject: [PATCH 1/2] Fiest start at switching to regular html labels Signed-off-by: snipe --- resources/views/accessories/checkin.blade.php | 8 +++-- resources/views/account/profile.blade.php | 4 ++- resources/views/hardware/audit.blade.php | 16 +++++++--- .../views/hardware/bulk-checkout.blade.php | 12 ++++++-- resources/views/hardware/checkout.blade.php | 30 ++++++++++++++----- resources/views/kits/checkout.blade.php | 12 ++++++-- resources/views/setup/user.blade.php | 9 ++++-- 7 files changed, 68 insertions(+), 23 deletions(-) diff --git a/resources/views/accessories/checkin.blade.php b/resources/views/accessories/checkin.blade.php index 58ac76b36..23c7a44a0 100755 --- a/resources/views/accessories/checkin.blade.php +++ b/resources/views/accessories/checkin.blade.php @@ -37,7 +37,9 @@ @if ($accessory->name)
- +

{{ $accessory->name }}

@@ -54,7 +56,9 @@
- {{ Form::label('checkin_at', trans('admin/hardware/form.checkin_date'), array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php index a42c91e7a..96ea7cc43 100755 --- a/resources/views/account/profile.blade.php +++ b/resources/views/account/profile.blade.php @@ -61,7 +61,9 @@ @if ($snipeSettings->allow_user_skin=='1')
- +
{!! Form::user_skin('skin', old('skin', $user->skin), 'select2') !!} {!! $errors->first('skin', ':message') !!} diff --git a/resources/views/hardware/audit.blade.php b/resources/views/hardware/audit.blade.php index 1192d3cc9..990995edb 100644 --- a/resources/views/hardware/audit.blade.php +++ b/resources/views/hardware/audit.blade.php @@ -35,7 +35,9 @@
- {{ Form::label('name', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }} +

@if (($asset->model) && ($asset->model->name)) @@ -57,7 +59,9 @@

- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} +

{{ $asset->name }}

@@ -99,7 +103,9 @@
- {{ Form::label('name', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }} +
@@ -113,7 +119,9 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', '') !!} diff --git a/resources/views/hardware/bulk-checkout.blade.php b/resources/views/hardware/bulk-checkout.blade.php index 24014e6ec..562a27154 100644 --- a/resources/views/hardware/bulk-checkout.blade.php +++ b/resources/views/hardware/bulk-checkout.blade.php @@ -36,7 +36,9 @@
- {{ Form::label('checkout_at', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }} +
@@ -48,7 +50,9 @@
- {{ Form::label('expected_checkin', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }} +
@@ -61,7 +65,9 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', '') !!} diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.php index 30e6e670a..2abe47b86 100755 --- a/resources/views/hardware/checkout.blade.php +++ b/resources/views/hardware/checkout.blade.php @@ -28,7 +28,9 @@ {{csrf_field()}} @if ($asset->company && $asset->company->name)
- {{ Form::label('model', trans('general.company'), array('class' => 'col-md-3 control-label')) }} +

{{ $asset->company->name }} @@ -39,7 +41,9 @@

- {{ Form::label('model', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }} +

@if (($asset->model) && ($asset->model->name)) @@ -61,7 +65,10 @@

- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} + +
{!! $errors->first('name', '') !!} @@ -70,7 +77,9 @@
- {{ Form::label('status_id', trans('admin/hardware/form.status'), array('class' => 'col-md-3 control-label')) }} +
{{ Form::select('status_id', $statusLabel_list, $asset->status_id, array('class'=>'select2', 'style'=>'width:100%','', 'aria-label'=>'status_id')) }} {!! $errors->first('status_id', '') !!} @@ -90,7 +99,9 @@
- {{ Form::label('checkout_at', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }} +
@@ -102,7 +113,10 @@
- {{ Form::label('expected_checkin', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }} + +
@@ -114,7 +128,9 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', '') !!} diff --git a/resources/views/kits/checkout.blade.php b/resources/views/kits/checkout.blade.php index 3ccfac229..5dbbe0345 100644 --- a/resources/views/kits/checkout.blade.php +++ b/resources/views/kits/checkout.blade.php @@ -27,7 +27,9 @@
- {{ Form::label('name', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }} +
@@ -39,7 +41,9 @@
- {{ Form::label('name', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }} +
@@ -52,7 +56,9 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', ' :message') !!} diff --git a/resources/views/setup/user.blade.php b/resources/views/setup/user.blade.php index d9634478b..e9d3b1883 100644 --- a/resources/views/setup/user.blade.php +++ b/resources/views/setup/user.blade.php @@ -18,7 +18,9 @@
- {{ Form::label('site_name', trans('general.site_name')) }} + {{ Form::text('site_name', Request::old('site_name'), array('class' => 'form-control','placeholder' => 'Snipe-IT Asset Management')) }} {!! $errors->first('site_name', '') !!} @@ -29,9 +31,10 @@
- {{ Form::label('locale', trans('admin/settings/general.default_language')) }} + {!! Form::locales('locale', Request::old('locale', "en-US"), 'select2') !!} - {!! $errors->first('locale', '') !!}
From f47bc5ea7d3876b6223096a742ee69a6b8af4c03 Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 23 Jun 2024 19:40:52 +0100 Subject: [PATCH 2/2] Updated hardware checkin Signed-off-by: snipe --- resources/views/hardware/checkin.blade.php | 34 +++++++++++++--------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.php index 9bd88f3f4..7b52cf861 100755 --- a/resources/views/hardware/checkin.blade.php +++ b/resources/views/hardware/checkin.blade.php @@ -33,15 +33,16 @@ @if ($backto == 'user')
@else - + @endif {{csrf_field()}}
- {{ Form::label('model', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }} -
+ +

@if (($asset->model) && ($asset->model->name)) @@ -63,16 +64,20 @@

- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} -
- - {!! $errors->first('name', '') !!} -
+ +
+ + {!! $errors->first('name', '') !!} +
- {{ Form::label('status_id', trans('admin/hardware/form.status'), array('class' => 'col-md-3 control-label')) }} +
{{ Form::select('status_id', $statusLabel_list, '', array('class'=>'select2', 'style'=>'width:100%','id' =>'modal-statuslabel_types', 'aria-label'=>'status_id')) }} {!! $errors->first('status_id', '') !!} @@ -83,8 +88,9 @@
- - {{ Form::label('checkin_at', trans('admin/hardware/form.checkin_date'), array('class' => 'col-md-3 control-label')) }} +
@@ -99,7 +105,9 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', '') !!}