A free open source IT asset/license management system
Pass variable to edit-form to determine whether we should have a top submit button
snipe6489081cd6ca
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.phpindex 652d570c78..8397d655cd 100755--- a/resources/views/hardware/edit.blade.php+++ b/resources/views/hardware/edit.blade.php@@ -2,6 +2,7 @@@extends('layouts/edit-form', ['createText' => trans('admin/hardware/form.create'),'updateText' => trans('admin/hardware/form.update'),+ 'topSubmit' => true,'helpText' => trans('help.assets'),'helpPosition' => 'right','formAction' => ($item) ? route('hardware.update', ['hardware' => $item->id]) : route('hardware.store'),diff --git a/resources/views/layouts/edit-form.blade.php b/resources/views/layouts/edit-form.blade.phpindex 19bc952890..81ef0bfdfa 100644--- a/resources/views/layouts/edit-form.blade.php+++ b/resources/views/layouts/edit-form.blade.php@@ -41,9 +41,11 @@{{ $item->display_name }}@endif</h3>+ @if (isset($topSubmit))<div class="box-tools pull-right">@include('partials.forms.edit.submit-button')</div>+ @endif</div><!-- /.box-header --><div class="box-body">diff --git a/resources/views/licenses/edit.blade.php b/resources/views/licenses/edit.blade.phpindex d08b3522e6..2fe78436d6 100755--- a/resources/views/licenses/edit.blade.php+++ b/resources/views/licenses/edit.blade.php@@ -1,6 +1,7 @@@extends('layouts/edit-form', ['createText' => trans('admin/licenses/form.create'),'updateText' => trans('admin/licenses/form.update'),+ 'topSubmit' => true,'formAction' => ($item) ? route('licenses.update', ['license' => $item->id]) : route('license.store'),])diff --git a/resources/views/locations/edit.blade.php b/resources/views/locations/edit.blade.phpindex 3990c5b8fb..6f03f10d97 100755--- a/resources/views/locations/edit.blade.php+++ b/resources/views/locations/edit.blade.php@@ -1,7 +1,8 @@@extends('layouts/edit-form', ['createText' => trans('admin/locations/table.create') ,'updateText' => trans('admin/locations/table.update'),- 'helpTitle' => trans('admin/locations/table.about_locations_title'),+ 'topSubmit' => true,+ 'helpPosition' => 'right','helpText' => trans('admin/locations/table.about_locations'),'formAction' => ($item) ? route('locations.update', ['location' => $item->id]) : route('locations.store'),])diff --git a/resources/views/models/edit.blade.php b/resources/views/models/edit.blade.phpindex ccf8728c8b..cf67b847a2 100755--- a/resources/views/models/edit.blade.php+++ b/resources/views/models/edit.blade.php@@ -1,7 +1,8 @@@extends('layouts/edit-form', ['createText' => trans('admin/models/table.create') ,'updateText' => trans('admin/models/table.update'),- 'helpTitle' => trans('admin/models/general.about_models_title'),+ 'topSubmit' => true,+ 'helpPosition' => 'right','helpText' => trans('admin/models/general.about_models_text'),'formAction' => ($item) ? route('models.update', ['model' => $item->id]) : route('models.store'),])