26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
<div class="roles <%= show_roles.key %>">
|
|
<%= show_roles.title %><%= t(:role_info)%>
|
|
<div class="label-line">
|
|
<hr />
|
|
</div>
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td class="span1"><%= t('status') %></td>
|
|
<td><%= show_attribute_value(@user.role_statuses.where(:role_id=>show_roles.id).map{|t|t.title.to_s}.join(',')) rescue '' %></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="span1"><%= t('category') %></td>
|
|
<td><%= show_attribute_value(@user.role_categorys.where(:role_id=>show_roles.id).map{|t|t.title.to_s}.join(',')) rescue '' %></td>
|
|
</tr>
|
|
<% show_roles.attribute_fields.where(:disabled=>false).each do |rf| %>
|
|
<tr>
|
|
<td class="span1"><%= rf.title %></td>
|
|
<td><%= nl2br(show_attribute_value(@user.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></td>
|
|
</tr>
|
|
<% end -%>
|
|
<%= render :partial => 'show_sub_role',:collection=> @user.get_sub_roles_by_role(show_roles)%>
|
|
</tbody>
|
|
</table>
|
|
</div>
|