Skip to content

Commit

Permalink
SHIBUI-1443 Fixed labels for admin dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 12, 2019
1 parent 203f03d commit 0265db3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ action.close=Close
action.back-to-top=Back to Top
action.restore=Restore
action.view-only-changes=View Only Changes
action.user-role=User Role

value.enabled=Enabled
value.disabled=Disabled
Expand Down
7 changes: 6 additions & 1 deletion ui/src/app/admin/component/user-management.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
<td>{{ user.firstName }} {{ user.lastName }}</td>
<td>{{ user.emailAddress }}</td>
<td>
<select [name]="user.username"
<label [for]="'role-' + user.username"
translate="action.user-role"
class="sr-only">User role</label>
<select
[id]="'role-' + user.username"
[name]="'role-' + user.username"
[ngModel]="user.role"
class="form-control"
(change)="setUserRole(user, $event.target.value)"
Expand Down
4 changes: 4 additions & 0 deletions ui/src/theme/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Json schema form
}
}

select.form-control:disabled {
color: #54595E;
}

/* end json schema form */

.form-section {
Expand Down

0 comments on commit 0265db3

Please sign in to comment.