<%= javascript_include_tag "jquery.minicolors" %> <%= stylesheet_link_tag "jquery.minicolors" %> <%= form_for @album_setting, url: '/admin/galleries/update_album_setting',:class=>'update_album_setting_form',method: 'post' do |f| %>
<%= f.text_field :limit,:placeholder => t('gallery.blank_for_nil') %>
<%= f.select :thumb_process_option, t('gallery.thumb_process_option').to_enum.with_index.collect{|v, i| [v, i]}[1..-1] %>
<%= f.select :resize_gravity, [["---#{t("default")}: #{t("gallery.gravity.#{AlbumSetting::ResizeGravities[0]}")}---",nil]]+AlbumSetting::ResizeGravities.collect{|v| [t("gallery.gravity.#{v}"),v]} %>
<%= f.text_field :album_card_background_color, :class => 'input-block-level minicolors-input' %> <%= t('gallery.transparent') %>
<%= f.text_field :album_card_text_color, :class => 'input-block-level minicolors-input' %> <%= t('gallery.transparent') %>
<%= f.hidden_field :id %> <%= f.submit t('submit'),:class=>'btn btn-primary' %> <% end %>