diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index 2e70b2454..13a6ec43d 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -109,14 +109,21 @@
- <% unless User.current.user_extensions.school_id.nil? %> + <% unless User.current.user_extensions.school.nil? %> <%= l(:field_occupation) %> *<%= select_tag "province", options_from_collection_for_select(School.find_by_sql("select distinct province from schools"), :province, :province, User.current.user_extensions.school.province), :onchange => "get_options(this.value)" %> + + + + + - <%= select_tag "occupation", options_for_select([[User.current.user_extensions.school.name, User.current.user_extensions.school.id]]) %> + <% else %> <%= l(:field_occupation) %> *<%= select_tag "province", options_from_collection_for_select(School.find_by_sql("select distinct province from schools"), :province, :province), :onchange => "get_options(this.value)" %> - <%= select_tag "occupation" %> + + <% end %>
@@ -133,7 +140,9 @@