GUACAMOLE-1509: Add name attribute to all applicable fields.

This commit is contained in:
Michael Jumper
2022-01-23 12:18:32 -08:00
parent c93b05ca23
commit a688bc507c
13 changed files with 15 additions and 1 deletions

View File

@@ -41,6 +41,7 @@
<div class="totp-code"> <div class="totp-code">
<input type="text" <input type="text"
placeholder="{{'TOTP.FIELD_PLACEHOLDER_CODE' |translate}}" placeholder="{{'TOTP.FIELD_PLACEHOLDER_CODE' |translate}}"
ng-attr-name="{{ field.name }}"
ng-model="model" autocorrect="off" autocapitalize="off" autofocus> ng-model="model" autocorrect="off" autocapitalize="off" autofocus>
</div> </div>

View File

@@ -1,5 +1,6 @@
<input type="checkbox" <input type="checkbox"
ng-attr-id="{{ fieldId }}" ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-disabled="disabled" ng-disabled="disabled"
ng-model="typedValue" ng-model="typedValue"
guac-focus="focused" guac-focus="focused"

View File

@@ -2,6 +2,7 @@
<input type="date" <input type="date"
ng-disabled="disabled" ng-disabled="disabled"
ng-attr-id="{{ fieldId }}" ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="typedValue" ng-model="typedValue"
ng-model-options="modelOptions" ng-model-options="modelOptions"
guac-lenient-date guac-lenient-date

View File

@@ -2,6 +2,7 @@
<input type="email" <input type="email"
ng-disabled="disabled" ng-disabled="disabled"
ng-attr-id="{{ fieldId }}" ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model" ng-model="model"
ng-hide="readOnly" ng-hide="readOnly"
guac-focus="focused" guac-focus="focused"

View File

@@ -1,4 +1,5 @@
<select guac-focus="focused" <select guac-focus="focused"
ng-attr-id="{{ fieldId }}" ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model" ng-model="model"
ng-options="language.key as language.value for language in languages | toArray | orderBy: key"></select> ng-options="language.key as language.value for language in languages | toArray | orderBy: key"></select>

View File

@@ -1,6 +1,7 @@
<input type="number" <input type="number"
ng-disabled="disabled" ng-disabled="disabled"
ng-attr-id="{{ fieldId }}" ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="typedValue" ng-model="typedValue"
guac-focus="focused" guac-focus="focused"
autocorrect="off" autocorrect="off"

View File

@@ -2,6 +2,7 @@
<input type="{{passwordInputType}}" <input type="{{passwordInputType}}"
ng-disabled="disabled" ng-disabled="disabled"
ng-attr-id="{{ fieldId }}" ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model" ng-model="model"
ng-trim="false" ng-trim="false"
guac-focus="focused" guac-focus="focused"

View File

@@ -1,4 +1,5 @@
<select ng-attr-id="{{ fieldId }}" <select ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-disabled="disabled" ng-disabled="disabled"
guac-focus="focused" guac-focus="focused"
ng-model="model" ng-model="model"

View File

@@ -4,7 +4,9 @@
}"> }">
<!-- Pre-defined color scheme options --> <!-- Pre-defined color scheme options -->
<select ng-attr-id="{{ fieldId }}" ng-model="selectedColorScheme"> <select ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="selectedColorScheme">
<option ng-repeat="option in field.options | orderBy: value" <option ng-repeat="option in field.options | orderBy: value"
ng-value="option">{{ getFieldOption(option) | translate }}</option> ng-value="option">{{ getFieldOption(option) | translate }}</option>
<option value="custom">{{ 'COLOR_SCHEME.FIELD_OPTION_CUSTOM' | translate }}</option> <option value="custom">{{ 'COLOR_SCHEME.FIELD_OPTION_CUSTOM' | translate }}</option>

View File

@@ -1,4 +1,5 @@
<textarea ng-attr-id="{{ fieldId }}" <textarea ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model" ng-model="model"
ng-disabled="disabled" ng-disabled="disabled"
guac-focus="focused" guac-focus="focused"

View File

@@ -2,6 +2,7 @@
<input type="text" <input type="text"
ng-attr-id="{{ fieldId }}" ng-attr-id="{{ fieldId }}"
ng-attr-list="{{ dataListId }}" ng-attr-list="{{ dataListId }}"
ng-attr-name="{{ field.name }}"
ng-model="model" ng-model="model"
ng-disabled="disabled" ng-disabled="disabled"
guac-focus="focused" guac-focus="focused"

View File

@@ -2,6 +2,7 @@
<input type="time" <input type="time"
ng-disabled="disabled" ng-disabled="disabled"
ng-attr-id="{{ fieldId }}" ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="typedValue" ng-model="typedValue"
ng-model-options="modelOptions" ng-model-options="modelOptions"
guac-focus="focused" guac-focus="focused"

View File

@@ -10,6 +10,7 @@
<!-- Time zones within selected region --> <!-- Time zones within selected region -->
<select class="time-zone" <select class="time-zone"
ng-attr-name="{{ field.name }}"
ng-disabled="disabled || !region" ng-disabled="disabled || !region"
ng-model="model" ng-model="model"
ng-options="timeZone.value as timeZone.key for timeZone in timeZones[region] | toArray | orderBy: key"></select> ng-options="timeZone.value as timeZone.key for timeZone in timeZones[region] | toArray | orderBy: key"></select>