<mt:setvarblock name="page_title"><__trans phrase="Preview [_1] Content" params="<mt:var name="object_label">"></mt:setvarblock>

<mt:setvar name="edit_button_value" value="<__trans phrase="Return to the compose screen">">
<mt:setvar name="edit_button_title" value="<__trans phrase="Return to the compose screen (e)">">
<mt:if name="object_type" eq="entry">
  <mt:setvar name="save_button_value" value="<__trans phrase="Save this entry">">
  <mt:setvar name="save_button_title" value="<__trans phrase="Save this entry (s)">">
  <mt:setvar name="edit_button_value" value="<__trans phrase="Re-Edit this entry">">
  <mt:setvar name="edit_button_title" value="<__trans phrase="Re-Edit this entry (e)">">
<mt:else>
  <mt:setvar name="save_button_value" value="<__trans phrase="Save this page">">
  <mt:setvar name="save_button_title" value="<__trans phrase="Save this page (s)">">
  <mt:setvar name="edit_button_value" value="<__trans phrase="Re-Edit this page">">
  <mt:setvar name="edit_button_title" value="<__trans phrase="Re-Edit this page (e)">">
</mt:if>

<mt:setvarblock name="action_buttons">
  <button
     mt:mode="save_entry"
     type="submit"
     name="save"
     value="save"
     accesskey="s"
     title="<$mt:var name="save_button_title"$>"
     class="save action primary button">
    <mt:var name="save_button_value">
  </button>
  <button
     mt:mode="view"
     type="submit"
     name="reedit"
     value="reedit"
     accesskey="e"
     title="<$mt:var name="edit_button_title"$>"
     class="action button">
    <mt:var name="edit_button_value">
  </button>
</mt:setvarblock>

<mt:setvarblock name="system_msg">
<mt:if name="preview_error">
<mtapp:statusmsg
   id="preview-build-error"
   class="error"
   can_close="0">
  <mt:var name="preview_error">
</mtapp:statusmsg>
</mt:if>
</mt:setvarblock>

<mt:include name="include/header.tmpl">

<form method="post" action="<mt:var name="script_url">">
  <input type="hidden" name="__mode" value="save_entry" />
  <input type="hidden" name="_type" value="<mt:var name="object_type">" />
  <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
<mt:loop name="entry_loop">
  <input type="hidden" name="<mt:var name="data_name" escape="html">" value="<mt:var name="data_value" escape="html">" />
</mt:loop>
  <mt:include name="include/actions_bar.tmpl" hide_pager="1">

  <div class="preview-content">
    <mt:var name="preview_body">
  </div>

  <mt:include name="include/actions_bar.tmpl" hide_pager="1">
</form>

<mt:include name="include/footer.tmpl">
