Files
librenms-librenms/resources/views/widgets/settings/component-status.blade.php
Tony Murray 0959df53e5 Don't use @lang() it doesn't escape the string (#13566)
* Don't use @lang() it doesn't escape the string
Found an issue where a string contained a single quote and broke the page.

* fix regex errors

* fix another style of mis-replacement

* found another issue
2021-11-28 21:17:11 -06:00

19 lines
655 B
PHP

@extends('widgets.settings.base')
@section('form')
<div class="form-group">
<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') }}">
@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