Orbit/app/views/panel/users/_form.html.erb

15 lines
313 B
Plaintext

<% @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>