2013-08-09 07:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
<div class="roles">
|
|
|
|
<h4><span><%= show_roles.title %><%= t(:role_info)%></span></h4>
|
|
|
|
<dl>
|
|
|
|
<dt><%= t('status') %></dt>
|
|
|
|
<dd><%= show_attribute_value(@user.role_statuses.where(:role_id=>show_roles.id).map{|t|t.title.to_s}.join(',')) rescue '' %></dd>
|
|
|
|
<dt><%= t('category') %></dt>
|
|
|
|
<dd><%= show_attribute_value(@user.role_categorys.where(:role_id=>show_roles.id).map{|t|t.title.to_s}.join(',')) rescue '' %></dd>
|
|
|
|
<% show_roles.attribute_fields.where(:disabled=>false).asc(:_id).each do |rf| %>
|
|
|
|
<dt><%= rf.title %></dt>
|
|
|
|
<dd><%= nl2br(show_attribute_value(@user.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></dd>
|
|
|
|
<% end -%>
|
|
|
|
</dl>
|
2013-08-21 03:57:14 +00:00
|
|
|
<%= render :partial => 'show_sub_role',:collection=> @user.get_sub_roles_by_role(show_roles)%>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|