<div id="content" i18n:domain="ploneintranet">
  <h1 i18n:translate="">
    Create task
  </h1>
  <form method="POST" action="#" tal:attributes="action request/URL" class="pat-inject wizard-box pat-validation" data-pat-inject="source: #workspace-tickets; target: #workspace-tickets" data-pat-validation="disable-selector:#form-buttons-create">
    <div class="panel-body">

      <fieldset class="vertical">
        <input type="text" name="title" maxlength="70" placeholder="Task title" autofocus="autofocus" i18n:attributes="placeholder" required="required"/>
        <br/>
        <!--textarea name="description" placeholder="Enter a description of the task" rows="6"></textarea-->
        <input name="portal_type" value="todo" type="hidden" /> 
      </fieldset>

      <fieldset class="vertical"
                tal:define="workspace context/acquire_workspace;
                            workspace_url context/absolute_url;">
        <metal:task_fields use-macro="context/content_macros/task_fields"/>
      </fieldset>

    </div>
    <div class="buttons panel-footer">
      <span tal:replace="structure context/@@authenticator/authenticator"/>
      <button id="form-buttons-create" name="form.buttons.create" type="submit" value="Create" class="icon-ok-circle focus close-panel" i18n:translate="">
        Create
      </button>
      <button id="form-buttons-cancel" name="form.buttons.cancel" type="button" value="Cancel" class="icon-cancel-circle close-panel validate-ignore" i18n:translate="">
        Cancel
      </button>
    </div>
  </form>
</div>
