<%= simple_form_for([:backend, site], as: :site, url: :backend_site, html: { autocomplete: "false" }) do |f| %> <%= f.error_notification %>
<%= f.input :name %> <%= f.input :logo, as: :file %> <%= f.input :logo_cache, as: :hidden %>
<%= image_tag(f.object.logo.small.url, alt: "") %>
<%= f.input :remove_logo, as: :boolean, checked_value: true, unchecked_value: false if f.object.logo? %> <%= f.input :theme, as: :theme %> <%= f.input :locale, as: :language %>
<%= f.input :allow_registration, as: :boolean %> <%= f.input :homepage_redirect, as: :boolean %>

<%= Archangel.t(:metatags) %>

<%= f.simple_fields_for :metatags do |metatag| %> <%= render "metatag_fields", f: metatag %> <% end %>
<%= f.button :submit, class: "btn btn-primary" %>
<% end %>