2010-03-04 09:11:18 +00:00
|
|
|
<% content_for :secondary do %>
|
|
|
|
<ul class="list">
|
|
|
|
<li><%= link_to t(:new_user, :scope => :panel), new_panel_user_path, :class => 'button positive' %></li>
|
|
|
|
</ul>
|
|
|
|
<% end -%>
|
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
<h1><%= t('panel.user_panel') %></h1>
|
2010-03-04 09:11:18 +00:00
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
<%= image_tag(@user.avatar.thumb.url) rescue nil %>
|
|
|
|
|
|
|
|
<%= @user.email %>
|
|
|
|
|
|
|
|
<% @user.get_active_attribute_models.each do |am| %>
|
|
|
|
<% user_attribute = @user.get_attribute_from_model_key(am.key) %>
|
|
|
|
<fieldset>
|
|
|
|
<legend><%= am.i18n_variable[I18n.locale] %></legend>
|
|
|
|
<table>
|
|
|
|
<% am.attribute_attr_models.each do |attr| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= attr.i18n_variable[I18n.locale] %></td>
|
|
|
|
<td>
|
|
|
|
<% if attr["locale"] && attr["markup"] == 'text_field' %>
|
|
|
|
<%= user_attribute["#{attr.key}_#{I18n.locale}"] %>
|
|
|
|
<% else %>
|
|
|
|
<%= user_attribute["#{attr.key}"] %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
<% end -%>
|