<metal:block define-macro="render">
  <div tal:attributes="ondblclick python: item.openEditWindow('configure.html')">
    <tal:body define="itemNum view/itemNum;
                      id string:$itemNum.body;">
      <div metal:use-macro="views/node_macros/object_actions" />
      <h1 tal:content="item/title">Title</h1>
      <p tal:define="description description|item/description"
         tal:condition="description">
        <i tal:content="description">Description</i></p>
      <div class="content-1" id="1.body"
           tal:attributes="id id;"
           tal:content="structure item/render">
        The body
      </div>
    </tal:body>
  </div>
</metal:block>


<metal:block define-macro="render_note">
  <metal:block tal:define="description nothing">
    <metal:render use-macro="item/template/macros/render" />
  </metal:block>
  <div class="content-1" id="1.link"
       tal:define="linkUrl item/linkUrl"
       tal:condition="python: linkUrl and linkUrl != 'http://'">
    <b>
      <a href="."
         i18n:translate=""
         tal:attributes="href linkUrl"
         tal:define="linkText item/adapted/linkText|nothing"
         tal:content="python: linkText or 'more...'">more...</a>
    </b>
  </div>
</metal:block>


<metal:block define-macro="image">
  <div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
    <div metal:use-macro="views/node_macros/object_actions" />
    <h3 tal:content="item/title">Title</h3><br />
    <img src="#"
         tal:attributes="src string:${view/url}/.target${view/targetId}/view" />
    <p><i tal:content="item/description">Description</i></p>
  </div>
</metal:block>


<metal:block define-macro="download">
  <div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
    <div metal:use-macro="views/node_macros/object_actions" />
    <h3 tal:content="item/title">Title</h3>
    <p><i tal:content="item/description">Description</i></p>
    <p>
      <span class="button">
        <a href="#"
           i18n:translate=""
           tal:attributes="href string:${view/url}/.target${view/targetId}/download.html">
          Download
        </a>
      </span>
      <span class="button"
            tal:condition="item/viewable | nothing">
        <a href="#"
           i18n:translate=""
           tal:attributes="href string:${view/url}/.target${view/targetId}/view">
          View
        </a>
      </span>
      <span class="button"
            tal:condition="item/xeditable">
        <a href="#" title="Edit with External Editor"
           i18n:translate=""
           tal:define="url string:${view/url}/.target${view/targetId}"
           tal:attributes="href string:$url/external_edit?version=this">
         Open for editing
        </a>
       </span>
     </p>
  </div>
</metal:block>


<form action="." method="post"
      metal:define-macro="delete_object"
      tal:define="action view/deleteObjectAction|nothing"
      tal:condition="action"
      tal:attributes="action action"
      id="form.object.delete">
  <span class="actionButtons"><br />
    <input type="hidden" name="ids:list" value="obj"
           tal:attributes="value context/zope:name" />
    <input type="submit" id="object.delete"
           name="container_delete_button"
           value="Delete object" class="button"
           onclick="return confirm('Do you really want to delete this object?')" />
  </span>
</form>


<metal:actions define-macro="related">
          <div tal:repeat="concept macro/info/relatedConcepts">
            <a href="#"
               tal:attributes="href string:${view/url}/.target${concept/uniqueId}">
              <span i18n:translate="" tal:content="concept/title">Concept</span>
              (<i i18n:translate="" tal:content="concept/typeTitle">Type</i>)
            </a>
          </div>
</metal:actions>


