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

18 lines
584 B
Plaintext
Raw Normal View History

<div class="roles <%= show_roles.key %>">
2013-01-08 08:58:01 +00:00
<%= show_roles.title %>
<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 -%>
<%= render :partial => 'show_sub_role',:collection=> @user.get_sub_roles_by_role(show_roles)%>
</tbody>
</table>
</div>