From 46f17ef6c368d0412352c3026aa1e4ce9fae2e87 Mon Sep 17 00:00:00 2001
From: Dixsie Wolmers <dixsie@ibm.com>
Date: Tue, 8 Sep 2020 14:53:25 -0500
Subject: 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
---
 src/views/AccessControl/Ldap/Ldap.vue | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

(limited to 'src/views/AccessControl/Ldap/Ldap.vue')

diff --git a/src/views/AccessControl/Ldap/Ldap.vue b/src/views/AccessControl/Ldap/Ldap.vue
index 618434b6..1bb5adba 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"
-- 
cgit v1.2.3

