<div metal:use-macro="container/macro_edit_view/macros/edit_view">

<div metal:fill-slot="edit_input" tal:omit-tag="">
<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())"/>
</div>
<textarea class="fixIE6widget" id="data" name="data" cols="65" rows="12" tal:attributes="rows here/get_lines"
  tal:content="here/editable_content">Dummy</textarea><br />
</div>

<div metal:fill-slot="element_controls" tal:omit-tag="">
<script type="text/javascript" tal:content="structure here/elements.js" />
element 
<select class="manipulator"
   name="what" onChange="updateSelectionOptions()">
  <option value="p">paragraph</option>
  <option value="pre">preformatted</option>
  <option value="heading">heading</option>
  <option value="list">list</option>
  <option value="dlist" selected="selected">definition list</option>
  <option value="nlist" tal:replace="nothing">complex list</option>
</select>
&nbsp;
<check tal:condition="python:node.hasAttribute('type')" tal:omit-tag="">
<init tal:define="global type python:node.getAttribute('type')" tal:omit-tag="" />
</check>
<check tal:condition="python:not node.hasAttribute('type')" tal:omit-tag="">
<init tal:define="global type nothing" tal:omit-tag="" />
</check>
type 
<select class="manipulator" name="element_type">
<option value="normal"
  tal:attributes="selected python:test(type == 'normal', 'selected', nothing)">normal</option>
<option value="compact"
  tal:attributes="selected python:test(type == 'compact', 'selected', nothing)">compact</option>
</select>

</div>

<div metal:fill-slot="edit_notes" tal:omit-tag="">
<ul class="tips">
  <li>Add term on first line, definition on second line. Separate items with an empty line space.</li>
  <li><b>Tip:</b> tab to the exit button or use alt-e.</li>
  <li metal:use-macro="container/macro_notes/macros/markup_notes">markup tips</li>
</ul>
</div>

</div>
