Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Incorrect display of the Template name #192
Browse files Browse the repository at this point in the history
  • Loading branch information
glebfox committed Jul 20, 2021
1 parent 744304f commit f20308a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ public class SaveStepFragment extends StepFragment {
@Autowired
protected ComboBox<ChartType> diagramType;

@Autowired
protected Label diagramTypeLabel;

@Autowired
protected RandomChartDataGenerator randomChartDataGenerator;

Expand Down Expand Up @@ -180,7 +177,6 @@ protected void initChartPreview() {
boolean isChartTemplate = outputFileFormat.getValue() == ReportOutputType.CHART;
chartPreviewBox.setVisible(isChartTemplate);
diagramType.setVisible(isChartTemplate);
diagramTypeLabel.setVisible(isChartTemplate);
if (isChartTemplate) {
showChart();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,40 +25,29 @@
<layout expand="groupBox" width="100%">
<groupBox id="groupBox" expand="props" width="100%">
<vbox id="props" expand="chartPreviewBox">
<gridLayout width="100%" spacing="true">
<columns>
<column flex="0"/>
<column flex="1"/>
</columns>
<rows>
<row>
<label value="msg://downloadTemplateFile"/>
<form width="100%">
<column width="100%">
<hbox caption="msg://downloadTemplateFile" width="100%">
<button id="downloadTemplateFile" stylename="link"
description="msg://templateHintMsg" align="MIDDLE_LEFT"/>
</row>
<row>
<label value="msg://outputFileName" align="MIDDLE_LEFT"/>
<textField id="outputFileName" width="100%" required="true"
dataContainer="reportDataDc" property="outputNamePattern"
description="msg://outputFileNameHintMsg" maxLength="255">
<validators>
<custom bean="report_OutputFileNameValidator"/>
</validators>
</textField>
</row>
<row>
<label value="msg://outputFileFormat" align="MIDDLE_LEFT"/>
<comboBox id="outputFileFormat" required="true" width="100%"
dataContainer="reportDataDc" property="outputFileType"
description="msg://outputFileTypeHintMsg"/>
</row>
<row>
<label id="diagramTypeLabel" value="msg://diagramType" visible="false" align="MIDDLE_LEFT"/>
<comboBox id="diagramType" required="true" width="100%" visible="false"
optionsEnum="io.jmix.reports.entity.charts.ChartType"/>
</row>
</rows>
</gridLayout>
</hbox>
<textField id="outputFileName" width="100%" required="true"
caption="msg://outputFileName"
dataContainer="reportDataDc" property="outputNamePattern"
description="msg://outputFileNameHintMsg" maxLength="255">
<validators>
<custom bean="report_OutputFileNameValidator"/>
</validators>
</textField>
<comboBox id="outputFileFormat" required="true" width="100%"
caption="msg://outputFileFormat"
dataContainer="reportDataDc" property="outputFileType"
description="msg://outputFileTypeHintMsg"/>
<comboBox id="diagramType" required="true" width="100%" visible="false"
caption="msg://diagramType"
optionsEnum="io.jmix.reports.entity.charts.ChartType"/>
</column>
</form>
<vbox id="chartPreviewBox" visible="false" width="100%">
</vbox>
</vbox>
Expand Down

0 comments on commit f20308a

Please sign in to comment.