<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      i18n:domain="ploneintranet"
>
  <body>
    <div class="modal"
         id="content"
    >
      <div class="pat-modal"
           id="document-content"
      >
        <h1>${view/title}</h1>
        <form class="wizard-box pat-inject"
              action="${view/form_action}"
              method="post"
              data-pat-inject="${view/data_pat_inject}"
        >
          <div class="panel-body">
            <div class="container">
              <input name="statusupdate_id"
                     type="hidden"
                     value="${context/id}"
              />
              <fieldset class="vertical">
                <label>
                  <textarea class="pat-tiptap"
                            autofocus="autofocus"
                            name="text"
                            rows="5"
                            data-pat-tiptap="mentions-menu: ${view/portal_url}/@@panel-users#document-content?usersearch=;
                                             tags-menu: ${view/portal_url}/@@panel-tags#document-content?tagsearch=;"
                  >${context/text}</textarea>
                </label>
              </fieldset>
            </div>
          </div>
          <div class="buttons panel-footer">
            <div class="container">
              <button class="pat-button default close-panel icon-ok-circle"
                      type="submit"
                      i18n:translate="label_save"
              >
                Save
              </button>
              <button class="pat-button close-panel icon-cancel-circle"
                      type="button"
                      i18n:translate="label_cancel"
              >
                Cancel
              </button>
              <tal:token tal:replace="structure context/@@authenticator/authenticator" />
            </div>
          </div>
        </form>
      </div>
    </div>
  </body>
</html>
