Project

General

Profile

« Previous | Next » 

Revision 42164

ui links

View differences:

wf_profile2html.xslt
84 84
										<button class="btn btn-sm btn-primary" ng-click="editAccessParams()">access params</button>
85 85
									</div>
86 86
								</div>
87
															
87
	
88 88
								<hr/>
89 89
							</xsl:for-each>
90 90

  
......
132 132
							<xsl:when test="count(//CONFIGURATION/PARAMETERS/PARAM) &gt; 0">
133 133
								<form class="form-horizontal" name="wfParamatersForm">
134 134
									<xsl:for-each select="//CONFIGURATION/PARAMETERS/PARAM">
135
							
135 136
										<xsl:choose>
136 137
											<xsl:when test="@managedBy='system'">
137
												<wf-form-row-static name="{@name}" value="{.}" description="{@description}"/>
138
												<wf-form-row-static name="{@name}" value="{.}" description="{@description}">
139
													<xsl:if test="@category">
140
														<xsl:attribute name="category">
141
															<xsl:value-of select="@category" />
142
														</xsl:attribute>
143
													</xsl:if>
144
												</wf-form-row-static>
138 145
											</xsl:when>
146

  
139 147
											<xsl:when test="@type='boolean'">
140 148
												<wf-form-row-select name="{@name}" description="{@description}"
141 149
																	mandatory="{@required}"
142 150
																	init-value="{.}"
143 151
																	ng-model="params.{@name}"
144 152
																	ng-original-model="originalParams.{@name}"
145
																	values="[{{'id':'true','name':'TRUE'}},{{'id':'false','name':'FALSE'}}]"/>
153
																	values="[{{'id':'true','name':'TRUE'}},{{'id':'false','name':'FALSE'}}]">
154
													<xsl:if test="@category">
155
														<xsl:attribute name="category">
156
															<xsl:value-of select="@category" />
157
														</xsl:attribute>
158
													</xsl:if>																	
159
												</wf-form-row-select>
146 160
											</xsl:when>
147 161
											<xsl:when test="@function">
148 162
												<wf-form-row-select name="{@name}" description="{@description}"
......
150 164
																	init-value="{.}"
151 165
																	ng-model="params.{@name}"
152 166
																	ng-original-model="originalParams.{@name}"
153
																	values-function="{@function}"/>
167
																	values-function="{@function}">
168
													<xsl:if test="@category">
169
														<xsl:attribute name="category">
170
															<xsl:value-of select="@category" />
171
														</xsl:attribute>
172
													</xsl:if>
173
												</wf-form-row-select>
154 174
											</xsl:when>
155 175
											<xsl:otherwise>
156 176
												<wf-form-row-text name="{@name}" description="{@description}"
......
168 188
															</xsl:otherwise>
169 189
														</xsl:choose>
170 190
													</xsl:attribute>
191
													<xsl:if test="@category">
192
														<xsl:attribute name="category">
193
															<xsl:value-of select="@category" />
194
														</xsl:attribute>
195
													</xsl:if>
171 196
												</wf-form-row-text>
172 197
											</xsl:otherwise>
173 198
										</xsl:choose>
174

  
175
										<xsl:if test="@category">
176
											<!-- TODO -->
177
											<span ng-repeat="ui in p.uis" ng-show="p.value || !ui.paramRequired">
178
												<a class="btn btn-sm btn-primary" href="{{ui.url}}" ng-hide="ui.paramRequired">{{ui.label}}</a>
179
												<a class="btn btn-sm btn-primary" href="{{ui.url | sprintf: p.value }}" ng-show="ui.paramRequired">
180
													{{ui.label}}
181
												</a>
182
											</span>
183
										</xsl:if>
184 199
									</xsl:for-each>
185 200
									<xsl:if test="count(//CONFIGURATION/PARAMETERS/PARAM[@managedBy = 'user']) &gt; 0">
186 201
										<div class="form-group">

Also available in: Unified diff