Remove use of acceptableThresholds. Fixes #3715
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="metric-default_value">{{ trans('forms.metrics.default-value') }}</label>
|
<label for="metric-default_value">{{ trans('forms.metrics.default-value') }}</label>
|
||||||
<input type="number" class="form-control" name="metric[default_value]" id="metric-default_value" value="{{ Binput::old('metric.default_value') }}" placeholder="{{ trans('forms.metrics.default-value') }}">
|
<input type="number" class="form-control" name="metric[default_value]" id="metric-default_value" value="{{ Binput::old('metric.default_value') }}" placeholder="{{ trans('forms.metrics.default-value') }}" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="metric-places">{{ trans('forms.metrics.places') }}</label>
|
<label for="metric-places">{{ trans('forms.metrics.places') }}</label>
|
||||||
@@ -57,11 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="metric-places">{{ trans('forms.metrics.threshold') }}</label>
|
<label for="metric-places">{{ trans('forms.metrics.threshold') }}</label>
|
||||||
<select name="metric[threshold]" class="form-control" required>
|
<input type="number" min="0" max="10" name="metric[threshold]" value="{{ Binput::old('metric.threshold') }}" class="form-control" required>
|
||||||
@foreach ($acceptableThresholds as $threshold)
|
|
||||||
<option {{ (int) Binput::old('metric.threshold') === $threshold ? 'selected' : null }}>{{ $threshold }}</option>
|
|
||||||
@endforeach
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
|
|||||||
@@ -57,11 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="metric-places">{{ trans('forms.metrics.threshold') }}</label>
|
<label for="metric-places">{{ trans('forms.metrics.threshold') }}</label>
|
||||||
<select name="threshold" class="form-control" required>
|
<input type="number" min="0" max="10" name="metric[threshold]" value="{{ Binput::old('metric.threshold', $metric->threshold) }}" class="form-control" required>
|
||||||
@foreach ($acceptableThresholds as $threshold)
|
|
||||||
<option {{ (int) Binput::old('metric.threshold') === $threshold || $metric->threshold === $threshold ? 'selected' : null }}>{{ $threshold }}</option>
|
|
||||||
@endforeach
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
|
|||||||
Reference in New Issue
Block a user