Refactored the way we store metrics
This commit is contained in:
committed by
James Brooks
parent
3730ca8811
commit
f9bc46b460
@@ -89,6 +89,7 @@ return [
|
||||
'type_avg' => 'Average',
|
||||
'places' => 'Decimal places',
|
||||
'default_view' => 'Default view',
|
||||
'threshold' => 'How many minutes of threshold between metric points?',
|
||||
|
||||
'points' => [
|
||||
'value' => 'Value',
|
||||
|
||||
@@ -55,6 +55,10 @@
|
||||
<label for="metric-places">{{ trans('forms.metrics.places') }}</label>
|
||||
<input type="number" min="0" max="4" class="form-control" name="metric[places]" id="metric-places" required value="{{ Binput::old('metric.places') }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="metric-places">{{ trans('forms.metrics.threshold') }}</label>
|
||||
<input type="number" min="0" max="100" class="form-control" name="metric[threshold]" id="metric-threshold" required value="{{ Binput::old('metric.threshold') }}">
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="hidden" value="0" name="metric[display_chart]">
|
||||
|
||||
@@ -55,6 +55,10 @@
|
||||
<label for="metric-places">{{ trans('forms.metrics.places') }}</label>
|
||||
<input type="number" min="0" max="4" class="form-control" name="places" id="metric-places" required value="{{ $metric->places }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="metric-places">{{ trans('forms.metrics.threshold') }}</label>
|
||||
<input type="number" min="0" max="100" class="form-control" name="threshold" id="metric-threshold" required value="{{ $metric->threshold }}">
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="hidden" value="0" name="display_chart">
|
||||
|
||||
Reference in New Issue
Block a user