<% content_for :page_heading do %>

<%= case @section when 'titles' then t('.title_settings') when 'permalinks' then t('.permalinks') else t('.global_settings') end %>

<% end %> <%= render 'shared/flash', flash: flash %> <% if @setting.errors.any? %>

<%= t("errors.template.header", model: 'blog', count: @setting.errors.count) %>

<%= t("errors.template.body") %>

<% end %> <%= form_tag admin_seo_path, method: :put do %> <%= case @section when 'titles' then render 'titles' when 'permalinks' then render 'permalinks' else render 'general' end %> <%= hidden_field_tag 'section', @section %>

<%= link_to(t('.cancel'), admin_seo_path(section: @section)) %> <%= t('.or') %> <%= submit_tag(t('.update_settings'), class: 'btn btn-success') %>
<% end %>