<%= t("decidim.system.models.organization.fields.file_upload_settings") %>

<%= t(".intro") %>

<%= f.fields_for :file_upload_settings, f.object.file_upload_settings do |settings_form| %> <%= settings_form.fields_for :allowed_file_extensions, OpenStruct.new(settings_form.object.allowed_file_extensions) do |extensions_form| %> <% i18n_scope = "#{f.object.class.i18n_scope}.attributes.#{settings_form.object.model_name.i18n_key}.allowed_file_extensions" %>
<%= t(".file_extensions.title") %>
<%= extensions_form.text_field :default, class: "js-tags-container", label: t("default", scope: i18n_scope) %>

<%= t(".file_extensions.default_hint") %>

<%= extensions_form.text_field :image, class: "js-tags-container", label: t("image", scope: i18n_scope) %>

<%= t(".file_extensions.image_hint") %>

<%= extensions_form.text_field :admin, class: "js-tags-container", label: t("admin", scope: i18n_scope) %>

<%= t(".file_extensions.admin_hint") %>

<% end %> <%= settings_form.fields_for :allowed_content_types, OpenStruct.new(settings_form.object.allowed_content_types) do |extensions_form| %> <% i18n_scope = "#{f.object.class.i18n_scope}.attributes.#{settings_form.object.model_name.i18n_key}.allowed_content_types" %>
<%= t(".content_types.title") %>

<%= t(".content_types.intro_html") %>

<%= extensions_form.text_field :default, class: "js-tags-container", label: t("default", scope: i18n_scope) %>

<%= t(".content_types.default_hint") %>

<%= extensions_form.text_field :admin, class: "js-tags-container", label: t("admin", scope: i18n_scope) %>

<%= t(".content_types.admin_hint") %>

<% end %> <%= settings_form.fields_for :maximum_file_size, OpenStruct.new(settings_form.object.maximum_file_size) do |extensions_form| %> <% i18n_scope = "#{f.object.class.i18n_scope}.attributes.#{settings_form.object.model_name.i18n_key}.maximum_file_size" %>
<%= t(".file_sizes.title") %>
<%= extensions_form.number_field :default, step: 0.1, min: 0, label: t("default", scope: i18n_scope) %>

<%= t(".file_sizes.default_hint") %>

<%= extensions_form.number_field :avatar, step: 0.1, min: 0, label: t("avatar", scope: i18n_scope) %>

<%= t(".file_sizes.avatar_hint") %>

<% end %> <% end %>