Add optional fields to LDAP and CSR form
- Optional fields are indicated on the form field label
- Asterisks indicating required were removed
Verified with design.
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com>
Change-Id: I998485f8928c2c976aa49790c19c9ac247d5ed24
diff --git a/src/views/AccessControl/Ldap/Ldap.vue b/src/views/AccessControl/Ldap/Ldap.vue
index 618434b..1bb5adb 100644
--- a/src/views/AccessControl/Ldap/Ldap.vue
+++ b/src/views/AccessControl/Ldap/Ldap.vue
@@ -173,10 +173,13 @@
</b-form-group>
</b-col>
<b-col sm="6" xl="4">
- <b-form-group
- :label="$t('pageLdap.form.userIdAttribute')"
- label-for="user-id-attribute"
- >
+ <b-form-group label-for="user-id-attribute">
+ <template v-slot:label>
+ {{ $t('pageLdap.form.userIdAttribute') }} -
+ <span class="form-text d-inline">
+ {{ $t('global.form.optional') }}
+ </span>
+ </template>
<b-form-input
id="user-id-attribute"
v-model="form.userIdAttribute"
@@ -186,10 +189,13 @@
</b-form-group>
</b-col>
<b-col sm="6" xl="4">
- <b-form-group
- :label="$t('pageLdap.form.groupIdAttribute')"
- label-for="group-id-attribute"
- >
+ <b-form-group label-for="group-id-attribute">
+ <template v-slot:label>
+ {{ $t('pageLdap.form.groupIdAttribute') }} -
+ <span class="form-text d-inline">
+ {{ $t('global.form.optional') }}
+ </span>
+ </template>
<b-form-input
id="group-id-attribute"
v-model="form.groupIdAttribute"