|
|
|
@ -110,7 +110,7 @@
|
|
|
|
|
|
|
|
|
|
<p style="width:357px;padding-left: 26px;">
|
|
|
|
|
<% unless User.current.user_extensions.school.nil? %>
|
|
|
|
|
<%= l(:field_occupation) %> <span class="required">*</span><%= 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)" %>
|
|
|
|
|
<%= l(:field_occupation) %> <span class="required">*</span><%= 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), :onclick => "get_options(this.value)" %>
|
|
|
|
|
<input id="occupation" name="occupation" type="hidden" value="<%=User.current.user_extensions.school.id%>" />
|
|
|
|
|
<input id="occupation_name" type="text" value="<%=User.current.user_extensions.school.name%>" readonly />
|
|
|
|
|
|
|
|
|
@ -120,7 +120,7 @@
|
|
|
|
|
<!--<%= select_tag "occupation",
|
|
|
|
|
options_for_select([[User.current.user_extensions.school.name, User.current.user_extensions.school.id]]) %>-->
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= l(:field_occupation) %> <span class="required">*</span><%= select_tag "province", options_from_collection_for_select(School.find_by_sql("select distinct province from schools"), :province, :province), :onchange => "get_options(this.value)" %>
|
|
|
|
|
<%= l(:field_occupation) %> <span class="required">*</span><%= select_tag "province", options_from_collection_for_select(School.find_by_sql("select distinct province from schools"), :province, :province), :onclick => "get_options(this.value)" %>
|
|
|
|
|
|
|
|
|
|
<input id="occupation" name="occupation" type="hidden" />
|
|
|
|
|
<input id="occupation_name" type="text" readonly />
|
|
|
|
|