mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
GUAC-1160: Generate localized field headers and option values within "form" module.
This commit is contained in:
@@ -23,9 +23,9 @@
|
||||
|
||||
<!-- All fields in form -->
|
||||
<tr ng-repeat="field in fields">
|
||||
<th>{{field.title | translate}}</th>
|
||||
<th>{{getFieldHeader(field) | translate}}</th>
|
||||
<td>
|
||||
<guac-form-field field="field" model="values[field.name]"></guac-form-field>
|
||||
<guac-form-field namespace="namespace" field="field" model="values[field.name]"></guac-form-field>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@@ -37,6 +37,6 @@
|
||||
<textarea ng-show="field.type === 'MULTILINE'" ng-model="typedValue" autocorrect="off" autocapitalize="off"></textarea>
|
||||
|
||||
<!-- Enumerated field -->
|
||||
<select ng-show="field.type === 'ENUM'" ng-model="typedValue" ng-options="option.value as option.title | translate for option in field.options | orderBy: value"></select>
|
||||
<select ng-show="field.type === 'ENUM'" ng-model="typedValue" ng-options="option.value as getFieldOption(option.value) | translate for option in field.options | orderBy: value"></select>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user