<div metal:use-macro="container/macro_edit_view/macros/edit_view"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  i18n:domain="silva_document">
<metal:block fill-slot="edit_input">
  <script type="text/javascript" 
    tal:attributes="src python:request.model.get_container().absolute_url()+'/edit/reference.js'">
  </script>
<script type="text/javascript" tal:content="structure python:here.focus_editor('data')" />
<div align="right">
<input type="button" class="transport" name="" value="get link reference..." title="create a hyperlink: alt-g" accesskey="g"
  tal:define="container node/get_container"
  tal:attributes="
    onclick python: here.asset_reference_helper('hyperlink', container.absolute_url(), None, container.getPhysicalPath())" i18n:attributes="value;title" />
</div>
<div class="textarea">
  <textarea class="fixIE6widget" id="data" name="data" cols="65" wrap="soft" 
    tal:attributes="rows here/get_lines" tal:content="here/editable_content">Content</textarea>
</div>
</metal:block>
<metal:block fill-slot="element_controls">
<script type="text/javascript" tal:content="structure here/elements.js" />
<tal:block i18n:translate="">element</tal:block>
<select class="manipulator" name="what" onChange="updateSelectionOptions()">
  <option value="p" selected="selected" i18n:translate="">paragraph</option>
  <option value="heading" i18n:translate="">heading</option>
  <option value="list" i18n:translate="">list</option>
  <option value="pre" i18n:translate="">preformatted</option>
  <option value="dlist" i18n:translate="">definition list</option>
</select>
&nbsp;
<tal:block i18n:translate="">type</tal:block>
<select class="manipulator" name="element_type" tal:define="type here/get_type">
  <option value="normal" tal:attributes="selected python:test(type == 'normal', 'selected', nothing)" i18n:translate="">normal</option>
  <option value="lead" tal:attributes="selected python:test(type == 'lead', 'selected', nothing)" i18n:translate="">lead</option>
  <option value="annotation" tal:attributes="selected python:test(type == 'annotation', 'selected', nothing)" i18n:translate="">annotation</option>
</select>
</metal:block>
<metal:block fill-slot="edit_notes">
<ul class="tips">
  <li i18n:translate=""><strong i18n:name="tip"><tal:block i18n:translate="">Tip:</tal:block></strong> tab to the exit button or use alt-e.</li>
  <li i18n:translate="">Multiple paragraphs can be entered in one step by adding an empty line space.</li>
  <li metal:use-macro="container/macro_notes/macros/markup_notes">markup tips</li>
</ul>
</metal:block>
</div>
