<%= render "shared/globalize_locales", resource: banner %> <%= translatable_form_for [:admin, banner] do |f| %> <%= render "shared/errors", resource: banner %>
<%= f.date_field :post_started_at, id: "post_started_at" %>
<%= f.date_field :post_ended_at, id: "post_ended_at" %>
<%= f.translatable_fields do |translations_form| %>
<%= translations_form.text_field :title, data: { js_banner_title: "js_banner_title" } %>
<%= translations_form.text_field :description, data: { js_banner_description: "js_banner_description" } %>
<% end %>
<%= f.text_field :target_url %>
<%= t("admin.banners.banner.sections_label") %> <%= f.collection_check_boxes(:web_section_ids, sections, :id, :name) do |b| %> <%= b.label do %> <%= b.check_box + t("admin.banners.banner.sections.#{b.text}") %> <% end %> <% end %>
<%= f.label :background_color, nil, for: "background_color_input", id: "background_color_label" %>

<%= t("admin.shared.color_help") %>

<%= f.text_field :background_color, label: false, type: :color, "aria-labelledby": "background_color_label" %>
<%= f.text_field :background_color, label: false, id: "background_color_input" %>
<%= f.label :font_color, nil, for: "font_color_input", id: "font_color_label" %>

<%= t("admin.shared.color_help") %>

<%= f.text_field :font_color, label: false, type: :color, "aria-labelledby": "font_color_label" %>
<%= f.text_field :font_color, label: false, id: "font_color_input" %>
<%= f.submit(class: "button expanded", value: t("admin.banners.edit.form.submit_button")) %>
<%= render Shared::BannerComponent.new(banner) %>
<% end %>