#12 -- Fix form controls
This commit is contained in:
parent
13b39eaa25
commit
dbcadcb4aa
@ -5,7 +5,7 @@ import ru.ulstu.db.model.TimeSeriesSet;
|
||||
|
||||
public class ChartForm {
|
||||
private TimeSeriesSet set;
|
||||
private TimeSeriesMeta timeSeriesMeta;
|
||||
private TimeSeriesMeta timeSeriesMeta = null;
|
||||
private String methodClassName = null;
|
||||
|
||||
private boolean needForecast;
|
||||
|
@ -124,7 +124,8 @@
|
||||
$('#select-ts').selectpicker('refresh');
|
||||
</script>
|
||||
<input id="need-forecast" type="hidden" th:field="*{needForecast}">
|
||||
<button type="button" class="btn btn-primary" onclick="$('#need-forecast').val(true); form.submit();">
|
||||
<button th:if="*{timeSeriesMeta != null && !#strings.isEmpty(timeSeriesMeta.key)}" type="button"
|
||||
class="btn btn-primary" onclick="$('#need-forecast').val(true); form.submit();">
|
||||
Построить прогноз
|
||||
</button>
|
||||
<h5 th:if="${forecastDescription != null && forecastDescription.timeSeriesMethod != null}">
|
||||
|
@ -145,11 +145,11 @@
|
||||
<script th:inline="javascript" th:if="*{methodClassName != null && methodClassName != ''}">
|
||||
$('#select-method').val([[*{methodClassName}]]);
|
||||
$('#select-method').selectpicker('refresh');
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<input id="need-forecast" type="hidden" th:field="*{needForecast}">
|
||||
<button type="button" class="btn btn-primary" onclick="$('#need-forecast').val(true); form.submit();">
|
||||
<button th:if="*{methodClassName != null && methodClassName != ''}" type="button"
|
||||
class="btn btn-primary" onclick="$('#need-forecast').val(true); form.submit();">
|
||||
Построить прогноз
|
||||
</button>
|
||||
<div th:if="${forecastDescription != null && forecastDescription.timeSeriesMethod != null}">
|
||||
|
Loading…
Reference in New Issue
Block a user