<div id="document-content">
  <ul class="menu"
      i18n:domain="ploneintranet"
  >
    <li tal:condition="view/can_delete">
      <a class="pat-modal icon-cancel icon close-panel"
        href="${context/absolute_url}/@@delete_confirmation#document-content"
        title="Delete"
        data-pat-modal="class: panel"
        i18n:translate=""
      >Delete</a>
    </li>
    <li tal:condition="view/can_edit">
      <form class="pat-inject pat-autosubmit"
            id="include-in-contacts-portlet"
            action="${context/absolute_url}#document-content"
            method="POST"
      >
        <label class="pat-checklist">
          <tal:i18n i18n:translate="description_important_contact">
            Include in contacts portlet on dashboard
          </tal:i18n>
          <input checked="${python: 'checked' if getattr(view, 'important_contact', False) else None}"
                 name="important_contact"
                 type="checkbox"
                 value="selected"
          />
          <input name="important_contact-empty-marker"
                 type="hidden"
                 value="1"
          />
        </label>
      </form>
    </li>
  </ul>
</div>
