orbit-basic/app/views/admin/users/_show_user_attribute.html.erb

18 lines
515 B
Plaintext

<fieldset>
<legend><%= am.i18n_variable[I18n.locale] %></legend>
<table>
<% am.get_enabled_attribute_models.each do |attr| %>
<tr>
<td><%= attr.i18n_variable[I18n.locale] %></td>
<td>
<% if attr["locale"] && attr["markup"] == 'text_field' %>
<%= show_user_attribute(object, attr.key, I18n.locale) %>
<% else %>
<%= show_user_attribute(object, attr.key) %>
<% end %>
</td>
</tr>
<% end %>
</table>
</fieldset>