Skip to content

A free open source IT asset/license management system

Delete unused partials

Marcus Mooreabb50fcd0951
diff --git a/resources/views/partials/forms/edit/category.blade.php b/resources/views/partials/forms/edit/category.blade.php
deleted file mode 100644
index 158cc3508b..0000000000
--- a/resources/views/partials/forms/edit/category.blade.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<!-- Category -->
-<div class="form-group {{ $errors->has('category_id') ? ' has-error' : '' }}">
- <label for="category_id" class="col-md-3 control-label">{{ trans('general.category') }}</label>
- <div class="col-md-7 col-sm-12">
- {{ Form::select('category_id', $category_list , old('category_id', $item->category_id), array('class'=>'select2', 'style'=>'width:100%', 'required' => Helper::checkIfRequired($item, 'category_id') ? true : '')) }}
- {!! $errors->first('category_id', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
- </div>
-</div>
diff --git a/resources/views/partials/forms/edit/company.blade.php b/resources/views/partials/forms/edit/company.blade.php
deleted file mode 100644
index 22cb623584..0000000000
--- a/resources/views/partials/forms/edit/company.blade.php
+++ /dev/null
@@ -1,11 +0,0 @@
-@if (\App\Models\Company::isCurrentUserAuthorized())
-<div class="form-group {{ $errors->has('company_id') ? ' has-error' : '' }}">
- <div class="col-md-3 control-label">
- {{ Form::label('company_id', trans('general.company'), array('class' => 'col-md-3 control-label', 'for' => 'company_id')) }}
- </div>
- <div class="col-md-7 col-sm-12">
- {{ Form::select('company_id', $company_list , old('company_id', $item->company_id), array('class'=>'select2', 'style'=>'width:100%', 'required' => Helper::checkIfRequired($item, 'company_id') ? true : '')) }}
- {!! $errors->first('company_id', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
- </div>
-</div>
-@endif
diff --git a/resources/views/partials/forms/edit/location.blade.php b/resources/views/partials/forms/edit/location.blade.php
deleted file mode 100644
index 49bc2976d0..0000000000
--- a/resources/views/partials/forms/edit/location.blade.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<!-- Location -->
-<div class="form-group {{ $errors->has('location_id') ? ' has-error' : '' }}">
- <label for="location_id" class="col-md-3 control-label">{{ trans('general.location') }}</label>
- <div class="col-md-7 col-sm-12">
- {{ Form::select('location_id', $location_list , old('location_id', $item->location_id), array('class'=>'select2', 'style'=>'width:350px')) }}
- {!! $errors->first('location_id', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
- </div>
-</div>
diff --git a/resources/views/partials/forms/edit/manufacturer.blade.php b/resources/views/partials/forms/edit/manufacturer.blade.php
deleted file mode 100644
index 644b70d7ba..0000000000
--- a/resources/views/partials/forms/edit/manufacturer.blade.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<!-- Manufacturer -->
-<div class="form-group{{ $errors->has('manufacturer_id') ? ' has-error' : '' }}">
- <label for="manufacturer_id" class="col-md-3 control-label">{{ trans('general.manufacturer') }}</label>
- <div class="col-md-7">
- {{ Form::select('manufacturer_id', $manufacturer_list , old('manufacturer_id', $item->manufacturer_id), array('class'=>'select2', 'style'=>'width:100%', 'required' => Helper::checkIfRequired($item, 'manufacturer_id') ? true : '')) }}
- {!! $errors->first('manufacturer_id', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
- </div>
-</div>
diff --git a/resources/views/partials/forms/edit/supplier.blade.php b/resources/views/partials/forms/edit/supplier.blade.php
deleted file mode 100644
index 40c1e2b279..0000000000
--- a/resources/views/partials/forms/edit/supplier.blade.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<!-- Supplier -->
-<div class="form-group {{ $errors->has('supplier_id') ? ' has-error' : '' }}">
- <label for="supplier_id" class="col-md-3 control-label">{{ trans('general.supplier') }}</label>
- <div class="col-md-7">
- {{ Form::select('supplier_id', $supplier_list , old('supplier_id', $item->supplier_id), ['class'=>'select2', 'style'=>'min-width:350px', 'id' => 'supplier_select_id', 'required' => Helper::checkIfRequired($item, 'supplier_id') ? true : '']) }}
- {!! $errors->first('supplier_id', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
- </div>
- <div class="col-md-1 col-sm-1 text-left">
- <a href='{{ route('modal.show', 'supplier') }}' data-toggle="modal" data-target="#createModal" data-dependency="supplier" data-select='supplier_select_id' class="btn btn-sm btn-primary">{{ trans('button.new') }}</a>
- </div>
-</div>