<%= "#{ t :setting }".pluralize.capitalize %>
<% if @structure.has_categories %>
<% if @structure.categories.any? %>
<%= t(:category).capitalize %>
<%= f.association :categories, as: :radio_buttons, collection: @structure.categories ,checked: @component.category_ids, include_blank: false %>
<% end %>
<% if @component.slug.nil? %>
<%= t( :hint_create_parent_before_child, arg1: "#{ t :category }", arg2: "#{ t :component }" ).capitalize %>
<% else %>
<%= "#{ t :new }".capitalize %> <%= t :category %>
<% end %>
<% end %>
<%= t(:publish_settings).capitalize %>
<%= f.input :publish_state, as: :radio_buttons, collection: [ 'draft', 'published' ], checked: f.object.publish_state %>
<%= f.button :submit, 'Save changes', class: 'btn btn-primary' %>
<% unless @component.new_record? %>
Delete <%= @structure.name.capitalize %>
<% end %>