mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added: ability to change actual location from bulk edit assets
This commit is contained in:
parent
7cafa194c1
commit
a7b8b4bf55
|
@ -1131,7 +1131,13 @@ class AssetsController extends Controller
|
|||
}
|
||||
if ($request->has('rtd_location_id')) {
|
||||
$update_array['rtd_location_id'] = $request->input('rtd_location_id');
|
||||
if (($request->has('update_real_loc'))
|
||||
&& (($request->input('update_real_loc')) == '1'))
|
||||
{
|
||||
$update_array['location_id'] = $request->input('location_id');
|
||||
}
|
||||
}
|
||||
|
||||
if ($request->has('status_id')) {
|
||||
$update_array['status_id'] = $request->input('status_id');
|
||||
}
|
||||
|
|
|
@ -54,8 +54,25 @@
|
|||
<!-- Default Location -->
|
||||
@include ('partials.forms.edit.location-select', ['translated_name' => trans('admin/hardware/form.default_location'), 'fieldname' => 'rtd_location_id'])
|
||||
|
||||
<!-- Update actual location -->
|
||||
<div class="form-group">
|
||||
<div class="col-sm-3 control-label">
|
||||
|
||||
<!-- Purchase Cost -->
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<div class="checkbox">
|
||||
<label for="activated">
|
||||
{{ Form::radio('update_real_loc', '', true) }} Update default location AND actual location <br>
|
||||
{{ Form::radio('update_real_loc', '1', Input::old('activated')) }} Only update default location<br>
|
||||
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!--/form-group-->
|
||||
|
||||
|
||||
|
||||
<!-- Purchase Cost -->
|
||||
<div class="form-group {{ $errors->has('purchase_cost') ? ' has-error' : '' }}">
|
||||
<label for="purchase_cost" class="col-md-3 control-label">
|
||||
{{ trans('admin/hardware/form.cost') }}
|
||||
|
|
Loading…
Reference in a new issue