-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create template parameters manually from visual designer #35
- Loading branch information
zaharchenko
committed
Jul 21, 2020
1 parent
775a054
commit 5c6b4ad
Showing
7 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...les/web/src/com/haulmont/addon/emailtemplates/web/emailtemplate/parameters/parameters.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!-- | ||
~ Copyright (c) 2008-2020 Haulmont. | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<window xmlns="http://schemas.haulmont.com/cuba/window.xsd"> | ||
<layout margin="true" spacing="true" expand="inputParametersTable"> | ||
<label value="msg://report.parameters" stylename="h2"/> | ||
<table id="inputParametersTable" sortable="false" width="100%" | ||
reorderingAllowed="false" columnControlVisible="false"> | ||
<buttonsPanel> | ||
<button action="inputParametersTable.create"/> | ||
<button action="inputParametersTable.createFromTemplate"/> | ||
<button action="inputParametersTable.edit"/> | ||
<button action="inputParametersTable.remove"/> | ||
<button id="up" icon="icons/up.png"/> | ||
<button id="down" icon="icons/down.png"/> | ||
</buttonsPanel> | ||
<columns> | ||
<column id="locName" caption="msg://parameters.caption"/> | ||
<column id="alias" caption="msg://parameters.alias"/> | ||
<column id="type" caption="msg://parameters.type"/> | ||
<column id="required" caption="msg://parameters.required"/> | ||
<column id="validationOn"/> | ||
</columns> | ||
<rows datasource="parametersDs"/> | ||
</table> | ||
<label value="msg://report.crossParametersValidation" stylename="h2"/> | ||
<groupBox id="validationScriptGroupBox" collapsable="true" collapsed="true"> | ||
<vbox id="validationScriptVBox"> | ||
<hbox margin="true;true;true;false" spacing="true"> | ||
<label value="msg://parameters.crossFieldValidate"/> | ||
<checkBox id="validationOnCheckBox" datasource="reportDs" property="validationOn"/> | ||
</hbox> | ||
<label id="validationScriptLabel" value="msg://parameters.groovyScript"/> | ||
<sourceCodeEditor id="validationScriptCodeEditor" | ||
datasource="reportDs" | ||
property="validationScript" | ||
width="100%" | ||
height="240px" | ||
mode="Groovy"/> | ||
</vbox> | ||
</groupBox> | ||
</layout> | ||
</window> |