-
Notifications
You must be signed in to change notification settings - Fork 2
/
SitePropertiesTest-testShowAll.xml
158 lines (158 loc) · 5.92 KB
/
SitePropertiesTest-testShowAll.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="site-properties">
<config>
<title id="site.properties">Site properties</title>
<permissions>
<permission ref="site.properties" mode="set"></permission>
</permissions>
<params>
<param name="siteid">1</param>
<param name="propId" />
</params>
<meta-data bindClass="org.appng.api.model.Property" result-selector="${current.name eq propId}">
<field name="shortName" type="text" displayLength="50" binding="shortName">
<sort order="asc" name="name" prio="0" />
<label id="name">Name</label>
</field>
<field name="displayValue" type="longtext" displayLength="120" binding="displayValue">
<label id="activeValue">Active Value</label>
</field>
<field name="description" type="text" displayLength="400" binding="description">
<label id="description">Description</label>
</field>
<field name="changedValue" type="image" binding="changedValue">
<label></label>
<icon condition="${!current.changedValue}">led_orange</icon>
<icon condition="${current.changedValue}">led_green</icon>
</field>
<field name="actions" type="linkpanel" binding="actions">
<label id="actions">Actions</label>
</field>
</meta-data>
<linkpanel id="other" location="both">
<link id="other[1]" mode="intern" target="/sites/update/1/site-property/create#tab_site-properties">
<permissions>
<permission ref="site.property.create" mode="set"></permission>
</permissions>
<label id="property.create">Create property</label>
<icon>new</icon>
</link>
</linkpanel>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern"
target="/sites/update/1/site-property/update/${current.name}#tab_site-properties" default="true">
<permissions>
<permission ref="site.property.edit" mode="set"></permission>
</permissions>
<label id="edit">Edit</label>
<icon>edit</icon>
</link>
<link id="actions[2]" mode="intern"
target="/sites/update/1?form_action=delete-site-property&propertyid=${current.name}#tab_site-properties">
<permissions>
<permission ref="site.property.delete" mode="set"></permission>
</permissions>
<label id="delete">Delete</label>
<icon>delete</icon>
<confirmation id="property.delete.confirm" params="#{shortName}">Do you really want to delete the property
"#{shortName}"?</confirmation>
</link>
</linkpanel>
</config>
<data>
<resultset chunk="0" chunkname="site-properties" chunksize="10" nextchunk="0" previouschunk="0"
firstchunk="0" lastchunk="0" hits="3">
<result>
<field name="shortName" type="text">
<value>anotherproperty</value>
</field>
<field name="displayValue" type="longtext">
<value>foobar</value>
</field>
<field name="description" type="text">
<value></value>
</field>
<field name="changedValue" type="image">
<value>true</value>
<icon type="class">led_green</icon>
</field>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern"
target="/sites/update/1/site-property/update/platform.site.localhost.anotherproperty#tab_site-properties"
default="true">
<label id="edit">Edit</label>
<icon>edit</icon>
</link>
<link id="actions[2]" mode="intern"
target="/sites/update/1?form_action=delete-site-property&propertyid=platform.site.localhost.anotherproperty#tab_site-properties">
<label id="delete">Delete</label>
<icon>delete</icon>
<confirmation id="property.delete.confirm" params="#{shortName}">Do you really want to delete the property
"anotherproperty"?</confirmation>
</link>
</linkpanel>
</result>
<result>
<field name="shortName" type="text">
<value>multiline</value>
</field>
<field name="displayValue" type="longtext">
<value>foo!
bar!
</value>
</field>
<field name="description" type="text">
<value></value>
</field>
<field name="changedValue" type="image">
<value>true</value>
<icon type="class">led_green</icon>
</field>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern"
target="/sites/update/1/site-property/update/platform.site.localhost.multiline#tab_site-properties" default="true">
<label id="edit">Edit</label>
<icon>edit</icon>
</link>
<link id="actions[2]" mode="intern"
target="/sites/update/1?form_action=delete-site-property&propertyid=platform.site.localhost.multiline#tab_site-properties">
<label id="delete">Delete</label>
<icon>delete</icon>
<confirmation id="property.delete.confirm" params="#{shortName}">Do you really want to delete the property
"multiline"?</confirmation>
</link>
</linkpanel>
</result>
<result>
<field name="shortName" type="text">
<value>testproperty</value>
</field>
<field name="displayValue" type="longtext">
<value>5</value>
</field>
<field name="description" type="text">
<value></value>
</field>
<field name="changedValue" type="image">
<value>true</value>
<icon type="class">led_green</icon>
</field>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern"
target="/sites/update/1/site-property/update/platform.site.localhost.testproperty#tab_site-properties"
default="true">
<label id="edit">Edit</label>
<icon>edit</icon>
</link>
<link id="actions[2]" mode="intern"
target="/sites/update/1?form_action=delete-site-property&propertyid=platform.site.localhost.testproperty#tab_site-properties">
<label id="delete">Delete</label>
<icon>delete</icon>
<confirmation id="property.delete.confirm" params="#{shortName}">Do you really want to delete the property
"testproperty"?</confirmation>
</link>
</linkpanel>
</result>
</resultset>
</data>
</datasource>