X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/917c3ca20c36318578c4dfab7de076d97a2f87fe..74fec3cd8284eae4829dad2c287588d52c621c4b:/apps/workbench/app/views/users/profile.html.erb diff --git a/apps/workbench/app/views/users/profile.html.erb b/apps/workbench/app/views/users/profile.html.erb index 6692196dab..caa22bda11 100644 --- a/apps/workbench/app/views/users/profile.html.erb +++ b/apps/workbench/app/views/users/profile.html.erb @@ -68,29 +68,30 @@ SPDX-License-Identifier: AGPL-3.0 %> <% profile_config.kind_of?(Array) && profile_config.andand.each do |entry| %> - <% if entry['Key'] %> + <% if entry[:Key] %> <% show_save_button = true - label = entry['Required'] ? '* ' : '' - label += entry['FormFieldTitle'] - value = current_user_profile[entry['Key'].to_sym] if current_user_profile + label = entry[:Required] ? '* ' : '' + label += entry[:FormFieldTitle] + value = current_user_profile[entry[:Key].to_sym] if current_user_profile %>
- - <% if entry['Type'] == 'select' %> + <% if entry[:Type] == 'select' %>
- + <% entry[:Options].each do |option, _| %> + <% option = option.to_s %> <% end %>
<% else %>
- +
<% end %>