mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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
42 lines
2.3 KiB
PHP
42 lines
2.3 KiB
PHP
@extends('widgets.settings.base')
|
|
|
|
@section('form')
|
|
<div class="form-group">
|
|
<label for="title-{{ $id }}" class="control-label">{{ __('Widget title') }}</label>
|
|
<input type="text" class="form-control" name="title" id="title-{{ $id }}" placeholder="{{ __('Default Title') }}" value="{{ $title }}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="markers-{{ $id }}" class="control-label">{{ __('Markers') }}</label>
|
|
<select class="form-control" id="markers-{{ $id }}" name="markers">
|
|
<option value="devices" @if($markers == 'devices') selected @endif>{{ __('Devices') }}</option>
|
|
<option value="ports" @if($markers == 'ports') selected @endif>{{ __('Ports') }}</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="resolution-{{ $id }}-{{ $id }}" class="control-label">{{ __('Resolution') }}</label>
|
|
<select class="form-control" id="resolution-{{ $id }}" name="resolution">
|
|
<option value="countries" @if($resolution == 'countries') selected @endif>{{ __('Countries') }}</option>
|
|
<option value="provinces" @if($resolution == 'provinces') selected @endif>{{ __('Provinces') }}</option>
|
|
<option value="metros" @if($resolution == 'metros') selected @endif>{{ __('Metros') }}</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="region-{{ $id }}" class="control-label">{{ __('Region') }} <a target="_blank" href="https://developers.google.com/chart/interactive/docs/gallery/geochart#configuration-options">{{ __('Help') }}</a></label>
|
|
<input type="text" class="form-control" name="region" id="region-{{ $id }}" value="{{ $region }}">
|
|
</div>
|
|
<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
|