2012-10-24 06:46:25 +00:00
|
|
|
<div class="roles <%= show_roles.key %>">
|
2013-01-08 08:58:01 +00:00
|
|
|
<%= show_roles.title %>
|
2012-10-24 06:46:25 +00:00
|
|
|
<div class="label-line">
|
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
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>
|
|
|
|
<td><%= show_attribute_value(@user.get_attribute_value(rf).get_value_by_locale(I18n.locale)) rescue '' %></td>
|
|
|
|
</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>
|