orbit-basic/app/views/panel/users/_form.html.erb

15 lines
313 B
Plaintext
Raw Normal View History

2010-03-08 09:14:59 +00:00
<% @user_attributes.each do |ua| %>
<h3><%= ua.name %></h3>
<% ua.attrs.each do |attr| %>
<p>
<%= f.label attr["name"] %>
<%= f.send(attr["type"], "#{ua.key}_#{attr["key"]}" )%>
</p>
<% end -%>
<% end -%>
<p>
<%= f.label :email %>
<%= f.text_field :email %>
</p>