2019-08-08 02:59:14 +02:00
|
|
|
@extends('widgets.settings.base')
|
|
|
|
|
|
|
|
|
|
@section('form')
|
|
|
|
|
<div class="form-group">
|
2021-11-28 21:17:11 -06:00
|
|
|
<label for="device_group-{{ $id }}" class="control-label">{{ __('Device group') }}</label>
|
|
|
|
|
<select class="form-control" name="device_group" id="device_group-{{ $id }}" data-placeholder="{{ __('All Devices') }}">
|
2019-08-08 02:59:14 +02:00
|
|
|
@if($device_group)
|
|
|
|
|
<option value="{{ $device_group->id }}" selected>{{ $device_group->name }}</option>
|
|
|
|
|
@endif
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
|
|
@section('javascript')
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
init_select2('#device_group-{{ $id }}', 'device-group', {});
|
|
|
|
|
</script>
|
|
|
|
|
@endsection
|