mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44: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,6 +54,23 @@
|
|||
<!-- 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">
|
||||
|
||||
</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' : '' }}">
|
||||
|
|
Loading…
Reference in a new issue