<%= form_tag alchemy.unlock_admin_page_path(@page, redirect_to: @layoutpage ? alchemy.admin_layoutpages_path : alchemy.admin_pages_path), id: 'unlock_page_form' do %>
<%= render_icon('close') %>
<%= Alchemy.t(:unlock_page) %>
<% end %>
<% unless @page.layoutpage? %>
<%= form_tag alchemy.visit_admin_page_path(@page), id: 'visit_page_form' do %>
<%= render_icon('visit_page') %>
<%= Alchemy.t("Visit page") %>
<% end %>
<% end %>
<%= link_to_dialog(
render_icon('info'),
alchemy.info_admin_page_path(@page),
{
title: Alchemy.t(:page_infos),
size: '520x320'
},
{
class: 'icon_button',
title: Alchemy.t(:page_infos),
'data-alchemy-hotkey' => 'alt+i'
}
) %>
<%= Alchemy.t(:page_infos) %>
<% if @page.layoutpage? %>
<%= link_to_dialog(
render_icon('settings'),
alchemy.edit_admin_layoutpage_path(@page),
{
title: Alchemy.t(:edit_page_properties),
size: '450x170'
},
class: :icon_button,
title: Alchemy.t(:edit_page_properties),
'data-alchemy-hotkey' => 'alt+e'
) %>
<% else %>
<%= link_to_dialog(
render_icon('settings'),
alchemy.configure_admin_page_path(@page),
{
title: Alchemy.t(:edit_page_properties),
size: '450x720'
},
class: :icon_button,
title: Alchemy.t(:edit_page_properties),
'data-alchemy-hotkey' => 'alt+e'
) %>
<% end %>
<%= Alchemy.t(:page_properties) %>
<% if can?(:publish, @page) && !@page.layoutpage? %>
<%= form_tag alchemy.publish_admin_page_path(@page), id: 'publish_page_form' do %>
<%= button_tag class: 'icon_button', title: Alchemy.t(:explain_publishing) do %>
<%= render_icon('publish') %>
<% end %>
<%= Alchemy.t("Publish page") %>
<% end %>
<% end %>
<%= Alchemy.t(:preview_size) %>
<%= select_tag 'preview_size',
preview_sizes_for_select,
class: 'alchemy_selectbox medium' %>
<%= link_to render_icon(:reload), '#', {
title: Alchemy.t('Reload Preview'),
class: 'icon_button',
id: 'reload_preview_button'
} %>
<%= Alchemy.t('Reload Preview') %>