<%= form_for @post, method: :put, remote: true, html: {as: 'Editor.Save', class: %w(save button)} do |f| %>
<%= f.button '', dirty: 'Update', persisted: 'Up to date', disabled: true %>
<%= content_tag :div, class: %w(update) do %>
Last updated
<%= content_tag :p, nil, time: @post.updated_at.iso8601 %>
<% end %>
<% end %>
<%= link_to 'Syntax', help_admin_posts_path, remote: true, class: %w(help) %>
<% unless Rails.application.secrets.has_key?(:s3) %>
<%= link_to 'Configure S3 to upload images.', admin_configurations_images_path %>
<% end %>