librenms-librenms/resources/views/widgets/settings/component-status.blade.php
2019-08-07 19:59:14 -05:00

19 lines
649 B
PHP

@extends('widgets.settings.base')
@section('form')
<div class="form-group">
<label for="device_group-{{ $id }}" class="control-label">@lang('Device group')</label>
<select class="form-control" name="device_group" id="device_group-{{ $id }}" data-placeholder="@lang('All Devices')">
@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