ntu_dropdown_fix
This commit is contained in:
parent
287e77836d
commit
b8da40b4ae
|
@ -181,7 +181,7 @@ class User
|
||||||
def self.get_member_list_attribute_value(user_id,role_type,field_key)
|
def self.get_member_list_attribute_value(user_id,role_type,field_key)
|
||||||
@attribute = ::Attribute.where(:key => role_type).first
|
@attribute = ::Attribute.where(:key => role_type).first
|
||||||
@AttributeField = ::AttributeField.where(:key => field_key, :attribute_id => @attribute.id).first
|
@AttributeField = ::AttributeField.where(:key => field_key, :attribute_id => @attribute.id).first
|
||||||
return ::AttributeValue.where(attribute_field_id: @AttributeField.id, :user_id => user_id).first[I18n.locale.to_s]
|
return ::AttributeValue.where(attribute_field_id: @AttributeField.id, :user_id => user_id).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_dept_cache
|
def create_dept_cache
|
||||||
|
|
|
@ -97,19 +97,19 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<span class="job_title">
|
<span class="job_title">
|
||||||
<%= show_attribute_value(@member_lists.get_member_list_attribute_value(member.id,"staff","job_title")) %>
|
<%= show_attribute_value(@member_lists.get_member_list_attribute_value(member.id,"staff","job_title").get_value_by_locale(I18n.locale)) rescue '' %>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td><span class="name"><%= link_to member.name, "mailto:#{member.email}" %></span></td>
|
<td><span class="name"><%= link_to member.name, "mailto:#{member.email}" %></span></td>
|
||||||
<td><span class="tel"><%= member.office_tel %></span></td>
|
<td><span class="tel"><%= member.office_tel %></span></td>
|
||||||
<td>
|
<td>
|
||||||
<span class="business">
|
<span class="business">
|
||||||
<%= nl2br(@member_lists.get_member_list_attribute_value(member.id,"staff","business")) %>
|
<%= nl2br(@member_lists.get_member_list_attribute_value(member.id,"staff","business").get_value_by_locale(I18n.locale)) rescue '' %>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="agent">
|
<span class="agent">
|
||||||
<%= @member_lists.get_member_list_attribute_value(member.id,"staff","agent") %>
|
<%= @member_lists.get_member_list_attribute_value(member.id,"staff","agent").get_value_by_locale(I18n.locale) rescue '' %>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue