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

43 lines
2.3 KiB
Plaintext
Raw Normal View History

2012-09-13 10:39:27 +00:00
<div class="roles <%= role_class %>">
<div class="label-line">
<hr />
<span><%= t(i18n)%></span>
</div>
<table class="table">
<tbody>
<tr>
<td class="span1"><%= t('users.first_name')%></td>
<td><%= @user.first_name %></td>
</tr>
<tr>
<td class="span1"><%= t('users.last_name')%></td>
<td><%= @user.last_name %></td>
</tr>
<tr>
<td class="span1"><%= t('users.email')%></td>
<td><%= @user.email %></td>
</tr>
<% if !@user.sid.blank? %>
<tr>
<td class="span1"><%= t('users.sid')%></td>
<td><%= @user.sid %></td>
</tr>
<tr>
<td class="span1"><%= t('users.office_tel')%></td>
<td><%= @user.office_tel %></td>
</tr>
<% end %>
<tr>
<td class="span1"><%= t('users.sex')%></td>
<td><%= t("users.#{@user.sex}") %></td>
</tr>
2012-09-13 10:39:27 +00:00
<% items.each do |item| %>
<tr>
<td class="span1"><%= item[:name] %></td>
<td><%= show_attribute_value(item[:value]) %></td>
2012-09-13 10:39:27 +00:00
</tr>
<% end -%>
</tbody>
</table>
</div>