%= render 'shared/errors' %>
<%= f.label :action_type %>
<% ::Dashboard::Action.action_types.keys.each do |action_type_value| %>
<%= f.radio_button :action_type, action_type_value, label: false,
data: {toggle: "request_to_administrators short_description"} %>
<%= f.label "action_type_#{action_type_value}", t("admin.dashboard.actions.action_type.#{action_type_value}") %>
<% end %>
<%= f.check_box :active, label: ::Dashboard::Action.human_attribute_name(:active) %>
<%= f.check_box :request_to_administrators %>
<%= f.label :title %>
<%= f.text_field :title, label: false %>
<%= f.label :short_description %>
<%= f.text_field :short_description, label: false %>
<%= f.cktext_area :description, ckeditor: { language: I18n.locale } %>
<%= f.check_box :published_proposal, label: t("admin.dashboard.actions.form.published_proposal") %>
<%= t("admin.dashboard.actions.form.published_proposal_help_text") %>
<%= f.label :day_offset %>
<%= t("admin.dashboard.actions.form.help_text") %>
<%= f.number_field :day_offset, label: false, step: 1, min: 0 %>
<%= f.label :required_supports %>
<%= t("admin.dashboard.actions.form.help_text") %>
<%= f.number_field :required_supports, label: false, step: 1, min: 0 %>
<%= f.label :order %>
<%= t("admin.dashboard.actions.form.help_text") %>
<%= f.number_field :order, label: false, step: 1, min: 0 %>
<% if feature?(:allow_attached_documents) %>
<%= render 'documents/nested_documents', documentable: dashboard_action, f: f %>
<% end %>
<%= render 'links/nested_links', linkable: dashboard_action, f: f %>
<%= f.submit(class: "button expanded", value: t("admin.dashboard.actions.form.submit_button")) %>