mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
74882e3950
Implemented in Laravel Doesn't use legacy PHP session Several widgets have new features and settings, for example: - Multiple ports in one graph - Maps settings are configurable and override system settings but default to system settings - Graylog stream and/or device selection - Much improved graph widget selection - Many more DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
66 lines
3.3 KiB
PHP
66 lines
3.3 KiB
PHP
@extends('widgets.settings.base')
|
|
|
|
@section('form')
|
|
<div class="form-group row">
|
|
<label for="acknowledged-{{ $id }}" class="control-label">@lang('Show acknowledged'):</label>
|
|
<select class="form-control" name="acknowledged" id="acknowledged-{{ $id }}">
|
|
<option value="">@lang('not filtered')</option>
|
|
<option value="1" @if($acknowledged === '1') selected @endif>@lang('show only acknowledged')</option>
|
|
<option value="0" @if($acknowledged === '0') selected @endif>@lang('hide acknowledged')</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="fired-{{ $id }}" class="control-label">@lang('Show only fired'):</label>
|
|
<select class="form-control" name="fired" id="fired-{{ $id }}">
|
|
<option value="">@lang('not filtered')</option>
|
|
<option value="1" @if($fired === '1') selected @endif>@lang('show only fired alerts')</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="min_severity-{{ $id }}" class="control-label">@lang('Displayed severity'):</label>
|
|
<select class="form-control" name="min_severity" id="min_severity-{{ $id }}">
|
|
<option value="">@lang('any severity')</option>
|
|
@foreach($severities as $name => $val)
|
|
<option value="{{ $val }}" @if($min_severity == $val) selected @endif>{{ $name }}{{$val > 3 ? '' : ' ' . __('or higher')}}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="state-{{ $id }}" class="control-label">@lang('State'):</label>
|
|
<select class="form-control" name="state" id="state-{{ $id }}">
|
|
<option value="">@lang('any state')</option>
|
|
@foreach($states as $name => $val)
|
|
<option value="{{ $val }}" @if($state === $val) selected @endif>{{ $name }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="device_group-{{ $id }}" class="control-label">@lang('Device group')</label>
|
|
<select class="form-control" name="group" id="device_group-{{ $id }}" data-placeholder="@lang('All alerts')">
|
|
@if($device_group)
|
|
<option value="{{ $device_group->id }}" selected> {{ $device_group->name }} </option>
|
|
@endif
|
|
</select>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="proc-{{ $id }}" class="control-label">@lang('Show Procedure field'):</label>
|
|
<select class="form-control" name="proc" id="proc-{{ $id }}">
|
|
<option value="1" @if($proc == 1) selected @endif>@lang('show')</option>
|
|
<option value="0" @if($proc == 0) selected @endif>@lang('hide')</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="sort-{{ $id }}" class="control-label">@lang('Sort alerts by'):</label>
|
|
<select class="form-control" name="sort" id="sort-{{ $id }}">
|
|
<option value="" @if($sort == 1) selected @endif>@lang('timestamp, descending')</option>
|
|
<option value="severity" @if($sort == 0) selected @endif>@lang('severity, descending')</option>
|
|
</select>
|
|
</div>
|
|
@endsection
|
|
|
|
@section('javascript')
|
|
<script type="text/javascript">
|
|
init_select2('#device_group-{{ $id }}', 'device-group', {}, '{{ $group ?: '' }}');
|
|
</script>
|
|
@endsection
|