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.
43 lines
2.1 KiB
PHP
43 lines
2.1 KiB
PHP
@extends('widgets.settings.base')
|
|
|
|
@section('form')
|
|
<div class="form-group">
|
|
<label for="title-{{ $id }}" class="control-label">@lang('Widget title')</label>
|
|
<input type="text" class="form-control" name="title" id="title-{{ $id }}" placeholder="@lang('Custom title')" value="{{ $title }}">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="init_lat-{{ $id }}" class="control-label">@lang('Initial Latitude')</label>
|
|
<input class="form-control" name="init_lat" id="init_lat-{{ $id }}" type="number" min="-90" max="90" step="any" value="{{ $init_lat }}" placeholder="@lang('ie. 51.4800 for Greenwich')">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="init_lng-{{ $id }}" class="control-label">@lang('Initial Longitude')</label>
|
|
<input class="form-control" name="init_lng" id="init_lng-{{ $id }}" type="number" min="-180" max="180" step="any" value="{{ $init_lng }}" placeholder="@lang('ie. 0 for Greenwich')">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="init_zoom-{{ $id }}" class="control-label">@lang('Initial Zoom')</label>
|
|
<select class="form-control" name="init_zoom" id="init_zoom-{{ $id }}">
|
|
@foreach(range(0, 18) as $zoom)
|
|
<option value="{{ $zoom }}" @if($zoom == $init_zoom) selected @endif>{{ $zoom }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="group_radius-{{ $id }}" class="control-label">@lang('Grouping radius')</label>
|
|
<input class="form-control" name="group_radius" id="group_radius-{{ $id }}" type="number" value="{{ $group_radius }}" placeholder="@lang('default 80')">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="status-{{ $id }}" class="control-label">@lang('Show devices')</label>
|
|
<select class="form-control" name="status" id="status-{{ $id }}">
|
|
<option value="0,1" @if($status == '0,1') selected @endif>@lang('Up + Down')</option>
|
|
<option value="1" @if($status == '1') selected @endif>@lang('Up')</option>
|
|
<option value="0" @if($status == '0') selected @endif>@lang('Down')</option>
|
|
</select>
|
|
</div>
|
|
@endsection
|