A free open source IT asset/license management system
Delete old view-based modals
snipe8054a869ec6e
diff --git a/resources/views/modals/add-note.blade.php b/resources/views/modals/add-note.blade.phpdeleted file mode 100644index 796e0a539f..0000000000--- a/resources/views/modals/add-note.blade.php+++ /dev/null@@ -1,35 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal fade" id="createNoteModal" tabindex="-1" role="dialog" aria-labelledby="createNoteModalLabel" aria-hidden="true">- <div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>- <h2 class="modal-title" id="createNoteModalLabel">{{ trans('general.add_note') }}</h2>- </div>- <form- method="POST"- action="{{ route('notes.store') }}"- accept-charset="UTF-8"- >- @csrf- <input type="hidden" name="type" value="{{$type}}"/>- <input type="hidden" name="id" value="{{$id}}"/>-- <div class="modal-body">- <x-alert type="danger" id="modal_error_msg" style="display:none"></x-alert>-- <div class="row">- <div class="col-md-12">- <textarea class="form-control" id="note" name="note" required>{{ old('note') }}</textarea>- <x-form.error name="note" />- </div>- </div>- </div>- <div class="modal-footer">- <button type="button" class="btn btn-default pull-left" data-dismiss="modal">{{ trans('button.cancel') }}</button>- <button type="submit" class="btn btn-primary pull-right" id="modal-save">{{ trans('general.save') }}</button>- </div>- </form>- </div><!-- /.modal-content -->- </div><!-- /.modal-dialog -->-</div>diff --git a/resources/views/modals/category.blade.php b/resources/views/modals/category.blade.phpdeleted file mode 100644index 2e68eaa1b5..0000000000--- a/resources/views/modals/category.blade.php+++ /dev/null@@ -1,20 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close">- <span aria-hidden="true">×</span></button>- <h2 class="modal-title">{{ trans('admin/categories/general.create') }}</h2>- </div>- <div class="modal-body">- <form action="{{ route('api.categories.store') }}" onsubmit="return false">- {{ csrf_field() }}- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>- @include('modals.partials.name', ['required' => 'true'])- <input type="hidden" name='category_type' id="modal-category_type" value="{{ request('category_type') }}" />- </form>- </div>- @include('modals.partials.footer')- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/company.blade.php b/resources/views/modals/company.blade.phpdeleted file mode 100644index 44b3a837a6..0000000000--- a/resources/views/modals/company.blade.php+++ /dev/null@@ -1,19 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close">- <span aria-hidden="true">×</span>- </button>- <h2 class="modal-title">{{ trans('admin/companies/table.create') }}</h2>- </div>- <div class="modal-body">- <form action="{{ route('api.companies.store') }}" onsubmit="return false">- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>- @include('modals.partials.name', ['required' => 'true'])- </form>- </div>- @include('modals.partials.footer')- </div>-</div>diff --git a/resources/views/modals/confirm-action.blade.php b/resources/views/modals/confirm-action.blade.phpdeleted file mode 100644index ba2508a081..0000000000--- a/resources/views/modals/confirm-action.blade.php+++ /dev/null@@ -1,27 +0,0 @@-<!-- Modal -->-<div class="modal fade {{ $modal_class ?? '' }}" id="{{ $modal_name }}" tabindex="-1" role="dialog" aria-labelledby="{{ $modal_name }}Label" aria-hidden="true">- <div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>- <h4 class="modal-title" id="{{ $modal_name }}Label">{{ $title }}</h4>- </div>- <form action="{{ $route }}" method="POST" class="form-horizontal">- <input type="hidden" name="_token" value="{{ csrf_token() }}" />- <div class="modal-body">-- <div class="row">- <div class="col-md-12">- {{ $body }}- </div>- </div>-- </div> <!-- /.modal-body-->- <div class="modal-footer">- <button type="button" class="btn btn-default pull-left" data-dismiss="modal">{{ trans('button.cancel') }}</button>- <button type="submit" class="btn {{ $button_class ?? 'btn-primary' }}">{{ $button_label ?? trans('general.confirm') }}</button>- </div>- </form>- </div>- </div>-</div>diff --git a/resources/views/modals/kit-accessory.blade.php b/resources/views/modals/kit-accessory.blade.phpdeleted file mode 100644index 368e5c57f8..0000000000--- a/resources/views/modals/kit-accessory.blade.php+++ /dev/null@@ -1,36 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close">- <span aria-hidden="true">×</span></button>- <h4 class="modal-title">{{ trans('admin/kits/general.append_accessory') }}</h4>- </div>- <div class="modal-body">- <form class="form-horizontal" action="{{ route('api.kits.accessories.store', $kitId) }}" onsubmit="return false">- {{ csrf_field() }}- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>-- <div class="dynamic-form-row">- <label for="modal-accessory_id" class="col-md-4 col-xs-12 control-label">{{ trans('general.accessory') }}:</label>- <div class="col-md-8 col-xs-12 required">- <select class="js-data-ajax" data-endpoint="accessories" name="accessory" style="width: 100%" id="modal-accessory_id"></select>- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-quantity_id" class="col-md-4 col-xs-12 control-label">{{ trans('general.quantity') }}:</label>- <div class="col-md-8 col-xs-12 required">- <input type='text' name='quantity' id='modal-quantity_id' class="form-control" value="1">- </div>- </div>-- </form>- </div>- <div class="modal-footer">- <button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('button.cancel') }}</button>- <button type="button" class="btn btn-primary" id="modal-save">{{ trans('general.save') }}</button>- </div>- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/kit-consumable.blade.php b/resources/views/modals/kit-consumable.blade.phpdeleted file mode 100644index c05682ed8c..0000000000--- a/resources/views/modals/kit-consumable.blade.php+++ /dev/null@@ -1,36 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close">- <span aria-hidden="true">×</span></button>- <h4 class="modal-title">{{ trans('admin/kits/general.append_consumable') }}</h4>- </div>- <div class="modal-body">- <form class="form-horizontal" action="{{ route('api.kits.consumables.store', $kitId) }}" onsubmit="return false">- {{ csrf_field() }}- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>-- <div class="dynamic-form-row">- <label for="modal-consumable_id" class="col-md-4 col-xs-12 control-label">{{ trans('general.consumable') }}:</label>- <div class="col-md-8 col-xs-12 required">- <select class="js-data-ajax" data-endpoint="consumables" name="consumable" style="width: 100%" id="modal-consumable_id"></select>- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-quantity_id" class="col-md-4 col-xs-12 control-label">{{ trans('general.quantity') }}:</label>- <div class="col-md-8 col-xs-12 required">- <input type='text' name='quantity' id='modal-quantity_id' class="form-control" value="1">- </div>- </div>-- </form>- </div>- <div class="modal-footer">- <button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('button.cancel') }}</button>- <button type="button" class="btn btn-primary" id="modal-save">{{ trans('general.save') }}</button>- </div>- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/kit-license.blade.php b/resources/views/modals/kit-license.blade.phpdeleted file mode 100644index 09b14b6b76..0000000000--- a/resources/views/modals/kit-license.blade.php+++ /dev/null@@ -1,36 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close">- <span aria-hidden="true">×</span></button>- <h4 class="modal-title">{{ trans('admin/kits/general.append_license') }}</h4>- </div>- <div class="modal-body">- <form class="form-horizontal" action="{{ route('api.kits.licenses.store', $kitId) }}" onsubmit="return false">- {{ csrf_field() }}- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>-- <div class="dynamic-form-row">- <label for="modal-license_id" class="col-md-4 col-xs-12 control-label">{{ trans('general.license') }}:</label>- <div class="col-md-8 col-xs-12 required">- <select class="js-data-ajax" data-endpoint="licenses" name="license" style="width: 100%" id="modal-license_id"></select>- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-quantity_id" class="col-md-4 col-xs-12 control-label">{{ trans('general.quantity') }}:</label>- <div class="col-md-8 col-xs-12 required">- <input type='text' name='quantity' id='modal-quantity_id' class="form-control" value="1">- </div>- </div>-- </form>- </div>- <div class="modal-footer">- <button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('button.cancel') }}</button>- <button type="button" class="btn btn-primary" id="modal-save">{{ trans('general.save') }}</button>- </div>- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/kit-model.blade.php b/resources/views/modals/kit-model.blade.phpdeleted file mode 100644index bffa046d4a..0000000000--- a/resources/views/modals/kit-model.blade.php+++ /dev/null@@ -1,36 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close">- <span aria-hidden="true">×</span></button>- <h4 class="modal-title">{{ trans('admin/kits/general.append_model') }}</h4>- </div>- <div class="modal-body">- <form class="form-horizontal" action="{{ route('api.kits.models.store', $kitId) }}" onsubmit="return false">- {{ csrf_field() }}- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>-- <div class="dynamic-form-row">- <label for="modal-model_id" class="col-md-4 col-xs-12 control-label">{{ trans('general.asset_model') }}:</label>- <div class="col-md-8 col-xs-12 required">- <select class="js-data-ajax" data-endpoint="models" name="model" style="width: 100%" id="modal-model_id"></select>- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-quantity_id" class="col-md-4 col-xs-12 control-label">{{ trans('general.quantity') }}:</label>- <div class="col-md-8 col-xs-12 required">- <input type='text' name='quantity' id='modal-quantity_id' class="form-control" value="1">- </div>- </div>-- </form>- </div>- <div class="modal-footer">- <button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('button.cancel') }}</button>- <button type="button" class="btn btn-primary" id="modal-save">{{ trans('general.save') }}</button>- </div>- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/location.blade.php b/resources/views/modals/location.blade.phpdeleted file mode 100644index 2aa43838ba..0000000000--- a/resources/views/modals/location.blade.php+++ /dev/null@@ -1,60 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>- <h2 class="modal-title">{{ trans('admin/locations/table.create') }}</h2>- </div>- <div class="modal-body">- <form class="form-horizontal" action="{{ route('api.locations.store') }}" onsubmit="return false">- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>-- <div class="dynamic-form-row">- <label for="modal-name" class="col-md-3 col-xs-12 control-label">{{ trans('general.name') }}:</label>- <div class="col-md-9 col-xs-12"><input type='text' name="name" id='modal-name' class="form-control"></div>- </div>-- <!-- Setup of default company, taken from asset creator if scoped locations are activated in the settings -->- @if (($snipeSettings->scope_locations_fmcs == '1') && ($user->companies->isNotEmpty()))- <input type="hidden" name="company_id" id='modal-company' value='{{ $user->companies->first()->id }}' class="form-control">- @endif-- <!-- Select company, only for users with multicompany access - replace default company -->- <div class="dynamic-form-row">- <label for="modal-company_id" class="col-md-3 col-xs-12 control-label">{{ trans('general.company') }}:</label>- <div class="col-md-9 col-xs-12">- <select- class="js-data-ajax"- data-endpoint="companies"- data-placeholder="{{ trans('general.select_company') }}"- name="company_id"- id="modal-company_id"- style="width: 100%"- aria-label="{{ trans('general.company') }}"- >- <option value=""></option>- </select>- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-city" class="col-md-3 col-xs-12 control-label">{{ trans('general.city') }}:</label>- <div class="col-md-9 col-xs-12"><input type='text' name="city" id='modal-city' class="form-control"></div>- </div>-- <div class="dynamic-form-row">- <label for="modal-country" class="col-md-3 col-xs-12 country control-label">{{ trans('general.country') }}:</label>- <div class="col-md-9 col-xs-12">- <x-input.country-select- name="country"- :selected="old('country')"- id="modal-country"- />- </div>- </div>- </form>- </div>- @include('modals.partials.footer')- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/maintenance-type.blade.php b/resources/views/modals/maintenance-type.blade.phpdeleted file mode 100644index 739f87dc16..0000000000--- a/resources/views/modals/maintenance-type.blade.php+++ /dev/null@@ -1,21 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close">- <span aria-hidden="true">×</span>- </button>- <h2 class="modal-title">{{ trans('admin/maintenance_types/general.create') }}</h2>- </div>- <div class="modal-body">- <form action="{{ route('api.maintenance-types.store') }}" onsubmit="return false">- <div class="dynamic-form-row">- @include('partials.forms.edit.name', ['item' => new \App\Models\MaintenanceType(), 'translated_name' => trans('general.name')])- </div>- </form>- </div>- <div class="dynamic-form-row">- @include('modals.partials.footer')- </div>- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/manufacturer.blade.php b/resources/views/modals/manufacturer.blade.phpdeleted file mode 100644index 38c6e32af8..0000000000--- a/resources/views/modals/manufacturer.blade.php+++ /dev/null@@ -1,20 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close">- <span aria-hidden="true">×</span></button>- <h2 class="modal-title">{{ trans('admin/manufacturers/table.create') }}</h2>- </div>- <div class="modal-body">- <form action="{{ route('api.manufacturers.store') }}" onsubmit="return false">- <div class="dynamic-form-row">- @include('partials.forms.edit.name', ['item' => new \App\Models\Manufacturer(), 'translated_name' => trans('admin/manufacturers/table.name')])- </div>- </form>- </div>- <div class="dynamic-form-row">- @include('modals.partials.footer')- </div>- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/model.blade.php b/resources/views/modals/model.blade.phpdeleted file mode 100644index 9c5696af65..0000000000--- a/resources/views/modals/model.blade.php+++ /dev/null@@ -1,21 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>- <h2 class="modal-title">{{ trans('admin/models/table.create') }}</h2>- </div>- <div class="modal-body">- <form action="{{ route('api.models.store') }}" onsubmit="return false">- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>- @include('modals.partials.name', ['required' => 'true'])- @include('modals.partials.categories-select', ['required' => 'true'])- @include('modals.partials.manufacturer-select')- @include('modals.partials.model-number')- @include('modals.partials.fieldset-select')- </form>- </div>- @include('modals.partials.footer')- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/partials/categories-select.blade.php b/resources/views/modals/partials/categories-select.blade.phpdeleted file mode 100644index 116a0808e9..0000000000--- a/resources/views/modals/partials/categories-select.blade.php+++ /dev/null@@ -1,11 +0,0 @@-<!-- modals/partials/categories-select.blade.php -->-@php- $required = $required ?? '';-@endphp-<div class="dynamic-form-row">- <div class="col-md-4 col-xs-12"><label for="modal-category_id">{{ trans('general.category') }}:</label></div>- <div class="col-md-8 col-xs-12 required">- <select class="js-data-ajax" data-endpoint="categories/asset" name="category_id" style="width: 100%" id="modal-category_id" {{$required ? 'required' : ''}}></select>- </div>-</div>-<!-- modals/partials/categories-select.blade.php -->\ No newline at end of filediff --git a/resources/views/modals/partials/fieldset-select.blade.php b/resources/views/modals/partials/fieldset-select.blade.phpdeleted file mode 100644index ec1e178f22..0000000000--- a/resources/views/modals/partials/fieldset-select.blade.php+++ /dev/null@@ -1,14 +0,0 @@-<!-- partials/modals/partials/fieldset-select.blade.php -->-<div class="dynamic-form-row">- <div class="col-md-4 col-xs-12"><label for="modal-fieldset_id">{{ trans('admin/models/general.fieldset') }}:</label></div>- <div class="col-md-8 col-xs-12">- <x-input.select- name="fieldset_id"- id="modal-fieldset_id"- :options="Helper::customFieldsetList()"- :selected="old('fieldset_id')"- style="width:100%;"- />- </div>-</div>-<!-- partials/modals/partials/fieldset-select.blade.php -->diff --git a/resources/views/modals/partials/footer.blade.php b/resources/views/modals/partials/footer.blade.phpdeleted file mode 100644index 354d189b9e..0000000000--- a/resources/views/modals/partials/footer.blade.php+++ /dev/null@@ -1,6 +0,0 @@-<!-- partials/modals/partials/footer.blade.php -->-<div class="modal-footer">- <button type="button" class="btn btn-default pull-left" data-dismiss="modal">{{ trans('button.cancel') }}</button>- <button type="button" class="btn btn-primary pull-right" id="modal-save">{{ trans('general.save') }}</button>-</div>-<!-- partials/modals/partials/footer.blade.php -->\ No newline at end of filediff --git a/resources/views/modals/partials/manufacturer-select.blade.php b/resources/views/modals/partials/manufacturer-select.blade.phpdeleted file mode 100644index 810292067e..0000000000--- a/resources/views/modals/partials/manufacturer-select.blade.php+++ /dev/null@@ -1,8 +0,0 @@-<!-- partials/modals/partials/model-number.blade.php -->-<div class="dynamic-form-row">- <div class="col-md-4 col-xs-12"><label for="modal-manufacturer_id">{{ trans('general.manufacturer') }}:</label></div>- <div class="col-md-8 col-xs-12">- <select class="js-data-ajax" data-endpoint="manufacturers" name="manufacturer_id" style="width: 100%" id="modal-manufacturer_id"></select>- </div>-</div>-<!-- partials/modals/partials/model-number.blade.php -->\ No newline at end of filediff --git a/resources/views/modals/partials/model-number.blade.php b/resources/views/modals/partials/model-number.blade.phpdeleted file mode 100644index 2691f30d48..0000000000--- a/resources/views/modals/partials/model-number.blade.php+++ /dev/null@@ -1,6 +0,0 @@-<!-- partials/modals/partials/model-number.blade.php -->-<div class="dynamic-form-row">- <div class="col-md-4 col-xs-12"><label for="modal-modelno">{{ trans('general.model_no') }}:</label></div>- <div class="col-md-8 col-xs-12"><input type='text' name="model_number" id='modal-model_number' class="form-control"></div>-</div>-<!-- partials/modals/partials/model-number.blade.php -->\ No newline at end of filediff --git a/resources/views/modals/partials/name.blade.php b/resources/views/modals/partials/name.blade.phpdeleted file mode 100644index 6a64ed525f..0000000000--- a/resources/views/modals/partials/name.blade.php+++ /dev/null@@ -1,10 +0,0 @@-<!-- modals/partials/name.blade.php -->-@php- $required = $required ?? '';-@endphp-<div class="dynamic-form-row">- <div class="col-md-4 col-xs-12"><label for="modal-name">{{ trans('general.name') }}:- </label></div>- <div class="col-md-8 col-xs-12"><input type='text' name="name" id='modal-name' class="form-control" {{$required ? 'required' : ''}}></div>-</div>-<!-- modals/partials/name.blade.php -->\ No newline at end of filediff --git a/resources/views/modals/statuslabel.blade.php b/resources/views/modals/statuslabel.blade.phpdeleted file mode 100644index 8c8dbe41d4..0000000000--- a/resources/views/modals/statuslabel.blade.php+++ /dev/null@@ -1,35 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>- <h2 class="modal-title">{{ trans('admin/statuslabels/table.create') }}</h2>- </div>- <div class="modal-body">- <form class="form-horizontal" action="{{ route('api.statuslabels.store') }}" onsubmit="return false">- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>- <div class="dynamic-form-row">- <label for="modal-name" class="col-md-3 col-xs-12 control-label">{{ trans('admin/statuslabels/table.name') }}:</label>- <div class="col-md-9 col-xs-12"><input type="text" name="name" id="modal-name" class="form-control" maxlength="191" required></div>- </div>-- <div class="dynamic-form-row">- <label for="modal-type" class="col-md-3 col-xs-12 control-label">{{ trans('admin/statuslabels/table.status_type') }}:</label>- <div class="col-md-9 col-xs-12">- <x-input.select- name="type"- id="modal-type"- :options="$statuslabel_types"- required- style="width:100%;"- />- </div>- </div>- </form>- </div>- <div class="dynamic-form-row">- @include('modals.partials.footer')- </div>- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/supplier.blade.php b/resources/views/modals/supplier.blade.phpdeleted file mode 100644index 38160fddc8..0000000000--- a/resources/views/modals/supplier.blade.php+++ /dev/null@@ -1,54 +0,0 @@-{{-- See snipeit_modals.js for what powers this --}}-<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>- <h2 class="modal-title">{{ trans('admin/suppliers/table.create') }}</h2>- </div>- <div class="modal-body">- <form action="{{ route('api.suppliers.store') }}" onsubmit="return false">- <x-alert type="danger" id="modal_error_msg" style="display:none">- </x-alert>- <div class="dynamic-form-row">- @include('partials.forms.edit.name', [ 'item' => new \App\Models\Supplier(), 'translated_name' => trans('admin/suppliers/table.name')])- </div>- <div class="dynamic-form-row">- <div class="form-group {{ $errors->has('contact') ? ' has-error' : '' }}">- <label for="contact" class="col-md-3 control-label">{{ trans('admin/suppliers/table.contact') }}</label>- <div class="col-md-7">- <input class="form-control" name="contact" type="text" id="contact" value="{{ old('contact') }}">- </div>- </div>- </div>- <div class="dynamic-form-row">- <div class="form-group {{ $errors->has('url') ? ' has-error' : '' }}">- <label for="contact" class="col-md-3 control-label">{{ trans('general.url') }}</label>- <div class="col-md-7">- <input class="form-control" name="url" type="text" id="url" value="{{ old('url') }}">- </div>- </div>- </div>- <div class="dynamic-form-row">- @include('partials.forms.edit.phone', [ 'item' => new \App\Models\Supplier(), 'translated_name' => trans('admin/suppliers/table.phone')])- </div>- <div class="dynamic-form-row">- @include('partials.forms.edit.fax', [ 'item' => new \App\Models\Supplier(), 'translated_name' => trans('admin/suppliers/table.fax')])- </div>- <div class="dynamic-form-row">- @include('partials.forms.edit.email', [ 'item' => new \App\Models\Supplier(), 'translated_name' => trans('admin/suppliers/table.email')])- </div>--- <div class="dynamic-form-row">- @include ('partials.forms.edit.notes')- </div>---- </form>- </div>- <div class="dynamic-form-row">- @include('modals.partials.footer')- </div>- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->diff --git a/resources/views/modals/upload-file.blade.php b/resources/views/modals/upload-file.blade.phpdeleted file mode 100644index 2433344157..0000000000--- a/resources/views/modals/upload-file.blade.php+++ /dev/null@@ -1,54 +0,0 @@-<!-- Modal -->-<div class="modal fade" id="uploadFileModal" tabindex="-1" role="dialog" aria-labelledby="uploadFileModalLabel" aria-hidden="true">- <div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>- <h4 class="modal-title" id="uploadFileModalLabel">{{ trans('general.file_upload') }}</h4>- </div>- <form- method="POST"- action="{{ route('ui.files.store', ['object_type' => str_plural($item_type), 'id' => $item_id]) }}"- accept-charset="UTF-8"- class="form-horizontal"- enctype="multipart/form-data"- >- <input type="hidden" name="_token" value="{{ csrf_token() }}" />- <div class="modal-body">-- <div class="row">- <div class="col-md-12">-- <label class="btn btn-theme btn-block">- {{ trans('button.select_files') }}- <input type="file" name="file[]" multiple class="js-uploadFile" id="uploadFile" data-maxsize="{{ Helper::file_upload_max_size() }}" accept="{{ config('filesystems.allowed_upload_mimetypes') }}" style="display:none" required>- </label>-- </div>- <div class="col-md-12">- <span id="uploadFile-info"></span>- </div>- <div class="col-md-12">- <p class="help-block" id="uploadFile-status">{{ trans('general.upload_filetypes_help', ['allowed_filetypes' => config('filesystems.allowed_upload_extensions'), 'size' => Helper::file_upload_max_size_readable()]) }}</p>- </div>-- <div class="col-md-12">- <x-input.textarea- name="notes"- :value="old('notes')"- placeholder="Notes (Optional)"- rows="3"- aria-label="file"- />- </div>- </div>-- </div> <!-- /.modal-body-->- <div class="modal-footer">- <a href="#" class="pull-left" data-dismiss="modal">{{ trans('button.cancel') }}</a>- <button type="submit" class="btn btn-theme" formnovalidate>{{ trans('button.upload') }}</button>- </div>- </form>- </div>- </div>-</div>diff --git a/resources/views/modals/user.blade.php b/resources/views/modals/user.blade.phpdeleted file mode 100644index 8c25778204..0000000000--- a/resources/views/modals/user.blade.php+++ /dev/null@@ -1,129 +0,0 @@-{{-- See snipeit_modals.js for what powers this. The password-generator- wiring and the first-input focus that used to be inline <script>- blocks on this partial now live inside the modal-load callback in- snipeit_modals.js so all modal-lifecycle JS is in one place. --}}--<div class="modal-dialog">- <div class="modal-content">- <div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>- <h2 class="modal-title">{{ trans('admin/users/table.createuser') }}</h2>- </div>- <div class="modal-body">- <form class="form-horizontal" action="{{ route('api.users.store') }}" onsubmit="return false">- <x-alert type="danger" id="modal_error_msg" style="display:none"></x-alert>-- @if ($user->companies->isNotEmpty())- <input type="hidden" name="company_id" value="{{ $user->companies->first()->id }}">- @endif-- <div class="dynamic-form-row">- <label for="modal-company_id" class="col-md-3 control-label">{{ trans('general.company') }}:</label>- <div class="col-md-9 col-xs-12">- <select class="js-data-ajax" data-endpoint="companies" data-placeholder="{{ trans('general.select_company') }}" name="company_id" id="modal-company_id" style="width:100%">- <option value=""></option>- </select>- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-location_id" class="col-md-3 control-label">{{ trans('general.location') }}- :</label>- <div class="col-md-9 col-xs-12">- <select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('general.select_location') }}" name="location_id" id="modal-location_id" style="width:100%">- <option value=""></option>- </select>- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-first_name" class="col-md-3 control-label">{{ trans('general.first_name') }}:- </label>- <div class="col-md-9 col-xs-12"><input type="text" name="first_name" id="modal-first_name" class="form-control" maxlength="191" required></div>- </div>-- <div class="dynamic-form-row">- <label for="modal-last_name" class="col-md-3 col-xs-12 control-label">{{ trans('general.last_name') }}:</label>- <div class="col-md-9 col-xs-12"><input type="text" name="last_name" id="modal-last_name" class="form-control" maxlength="191" required></div>- </div>-- <div class="dynamic-form-row">- <label for="modal-email" class="col-md-3 control-label">{{ trans('admin/users/table.email') }}- :</label>-- <div class="col-md-9 col-xs-12">- <input type="email" name="email" id="modal-email" class="form-control" maxlength="191">- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-username" class="col-md-3 col-xs-12 control-label">{{ trans('admin/users/table.username') }}:</label>- <div class="col-md-9 col-xs-12"><input type="text" name="username" id="modal-username" class="form-control" maxlength="191" required></div>- </div>-- {{-- Activated checkbox is rendered ABOVE the password fields- so the toggle sits above the inputs whose visibility it- controls (see snipeit.js). Defaults to unchecked because- the modal is typically used to create a user on-the-fly- for asset assignment, where login is not usually needed. --}}- <div class="dynamic-form-row">- <div class="col-md-offset-3 col-md-9">- <label class="form-control">- <input type="checkbox" value="1" name="activated" id="modal-activated" aria-label="activated">- {{ trans('general.login_enabled') }}- </label>- <x-form.help name="modal-activated" icon="tip">- {{ trans('admin/users/general.activated_password_required_help') }}- </x-form.help>- </div>- </div>-- <div class="dynamic-form-row" style="display: none;">- <label for="modal-password" class="col-md-3 control-label">- {{ trans('admin/users/table.password') }}:- </label>- <div class="col-md-8 col-xs-12">- <div class="input-group">- <input type="password" name="password" id="modal-password" class="form-control" required>- <span class="input-group-addon">- <i data-toggle="#modal-password" class="fa fa-fw fa-eye toggle-password" aria-hidden="true"></i>- <span class="sr-only">{{ trans('general.toggle_password_visibility') }}</span>- </span>- </div>- </div>- <div class="col-md-1">- <a href="#" class="btn btn-theme btn-sm" id="modal-genPassword" data-tooltip="true" title="{{ trans('admin/users/general.generate_password') }}">- <i class="fa-solid fa-wand-magic-sparkles"></i>- </a>- </div>- </div>-- <div class="dynamic-form-row" style="display: none;">- <label for="modal-password_confirmation" class="col-md-3 control-label">- {{ trans('admin/users/table.password_confirm') }}:- </label>- <div class="col-md-8 col-xs-12">- <div class="input-group">- <input type="password" name="password_confirmation" id="modal-password_confirmation" class="form-control" required>- <span class="input-group-addon">- <i data-toggle="#modal-password_confirmation" class="fa fa-fw fa-eye toggle-password" aria-hidden="true"></i>- <span class="sr-only">{{ trans('general.toggle_password_visibility') }}</span>- </span>- </div>- </div>- </div>-- <div class="dynamic-form-row">- <label for="modal-display_name" class="col-md-3 control-label">- {{ trans('admin/users/table.display_name') }}:- </label>- <div class="col-md-9 col-xs-12">- <input type="text" name="display_name" id="modal-display_name" class="form-control" maxlength="191">- </div>- </div>-- </form>- </div>- @include('modals.partials.footer')- </div><!-- /.modal-content -->-</div><!-- /.modal-dialog -->