Orbit/app/views/admin/users_new_interface/_show_roles.html.erb

19 lines
1020 B
Plaintext

<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>
<%= render :partial => 'show_sub_role',:collection=> @user.get_sub_roles_by_role(show_roles)%>
</div>