<% content_for :page_title do %> <%= Spree.t(:general_settings) %> <% end %> <%= form_tag admin_general_settings_path, method: :put do %>
<%= fields_for :store do |f| %>
<%= f.label :name %> <%= f.text_field :name, class: 'form-control' %>
<%= f.label :seo_title %> <%= f.text_field :seo_title, class: 'form-control' %>
<%= f.label :meta_keywords %> <%= f.text_field :meta_keywords, class: 'form-control' %>
<%= f.label :meta_description %> <%= f.text_field :meta_description, class: 'form-control' %>
<%= f.label :url %> <%= f.text_field :url, class: 'form-control' %>
<%= f.label :mail_from_address %> <%= f.text_field :mail_from_address, class: 'form-control' %>
<% end %>
<%#-------------------------------------------------%> <%# Security settings %> <%#-------------------------------------------------%> <% if @preferences_security.any? %>

<%= Spree.t(:security_settings) %>

<% @preferences_security.each do |key| type = Spree::Config.preference_type(key) %>
<%= label_tag key do %> <%= preference_field_tag(key, Spree::Config[key], type: type) %> <%= Spree.t(key) %> <% end %>
<% end %>
<% end %> <%#-------------------------------------------------%> <%# Clear cache %> <%#-------------------------------------------------%>

<%= Spree.t(:clear_cache)%>

<%= Spree.t(:clear_cache_warning) %>
<%= button Spree.t(:clear_cache), 'ok', 'button', id: "clear_cache" %>
<%#-------------------------------------------------%> <%# Currency Settings %> <%#-------------------------------------------------%>

<%= Spree.t(:currency_settings)%>

<%= label_tag :currency, Spree.t(:choose_currency) %> <%= select_tag :currency, currency_options %>
<%= button Spree.t('actions.update'), 'save' %> <%= Spree.t(:or) %> <%= button_link_to Spree.t('actions.cancel'), edit_admin_general_settings_url, icon: 'delete' %>
<% end %>