%= 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 %>
<%= f.label :background_color, nil, for: "background_color_input" %>
<%= t("admin.shared.color_help") %>
<%= f.text_field :background_color, label: false, type: :color %>
<%= f.text_field :background_color, label: false, id: "background_color_input" %>
<%= f.label :font_color, nil, for: "font_color_input" %>
<%= t("admin.shared.color_help") %>
<%= f.text_field :font_color, label: false, type: :color %>
<%= 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 %>