<%= form_for([namespace, Administrateur.new(user: User.new)], html: { class: "form" }) do |f| %> <% if page.resource.errors.any? %>

<%= t( "administrate.form.errors", pluralized_errors: pluralize(page.resource.errors.count, t("administrate.form.error")), resource_name: display_resource_name(page.resource_name, singular: true) ) %>

<% end %> <% page.attributes(controller.action_name).each do |title, attributes| -%>
"> <% if title.present? %> <%= t "helpers.label.#{f.object_name}.#{title}", default: title %> <% end %> <% attributes.each do |attribute| %>
<%= render_field attribute, f: f %> <% hint_key = "administrate.field_hints.#{page.resource_name}.#{attribute.name}" %> <% if I18n.exists?(hint_key) -%>
<%= I18n.t(hint_key) %>
<% end -%>
<% end %>
<% end -%>
<%= f.submit %>
<% end %>