This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/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>