2012-10-24 06:46:25 +00:00
|
|
|
<div class="roles <%= show_roles.key %>">
|
2013-04-25 09:57:34 +00:00
|
|
|
<%= show_roles.title %><%= t(:role_info)%>
|
2012-10-24 06:46:25 +00:00
|
|
|
<div class="label-line">
|
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
2013-04-25 09:57:34 +00:00
|
|
|
<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>
|
2013-01-08 08:58:01 +00:00
|
|
|
<% show_roles.attribute_fields.where(:disabled=>false).each do |rf| %>
|
|
|
|
<tr>
|
|
|
|
<td class="span1"><%= rf.title %></td>
|
2013-04-25 09:57:34 +00:00
|
|
|
<td><%= nl2br(show_attribute_value(@user.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></td>
|
2013-01-08 08:58:01 +00:00
|
|
|
</tr>
|
|
|
|
<% end -%>
|
2012-10-24 06:46:25 +00:00
|
|
|
<%= render :partial => 'show_sub_role',:collection=> @user.get_sub_roles_by_role(show_roles)%>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|