<div metal:use-macro="container/macro_edit_view/macros/edit_view"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  i18n:domain="silva_document">

<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())" i18n:attributes="value;title" />
</div>
<textarea class="fixIE6widget" id="data" name="data" cols="65"
  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" />
<tal:block i18n:translate="">element</tal:block>
<select class="manipulator"
   name="what" onChange="updateSelectionOptions()">
  <option value="p" i18n:translate="">paragraph</option>
  <option value="heading" i18n:translate="">heading</option>
  <option value="list" selected="selected" i18n:translate="">list</option>
  <option value="pre" i18n:translate="">preformatted</option>
  <option value="nlist" tal:replace="nothing">complex list</option>
  <option value="dlist" i18n:translate="">definition 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>
<tal:block i18n:translate="">type</tal:block>
<select class="manipulator"
  style="text-transform:none;"
  name="element_type">
<option value="disc"
  tal:attributes="selected python:test(type == 'disc', 'selected', nothing)" i18n:translate="">disc bullets</option>
<option value="square"
  tal:attributes="selected python:test(type == 'square', 'selected', nothing)" i18n:translate="">square bullets</option>
<option value="circle"
  tal:attributes="selected python:test(type == 'circle', 'selected', nothing)" i18n:translate="">circle bullets</option>
<option value="1"
  tal:attributes="selected python:test(type == '1', 'selected', nothing)" i18n:translate="">1, 2, 3,..</option>
<option value="I"
  tal:attributes="selected python:test(type == 'I', 'selected', nothing)" i18n:translate="">I, II, III,..</option>
<option value="i"
  tal:attributes="selected python:test(type == 'i', 'selected', nothing)" i18n:translate="">i, ii, iii,..</option>
<option value="A"
  tal:attributes="selected python:test(type == 'A', 'selected', nothing)" i18n:translate="">A, B, C,..</option>
<option value="a"
  tal:attributes="selected python:test(type == 'a', 'selected', nothing)" i18n:translate="">a, b, c,..</option>
<option value="none"
  tal:attributes="selected python:test(type == 'none', 'selected', nothing)" i18n:translate="">no bullet</option>
</select>

</div>

<div metal:fill-slot="edit_notes" tal:omit-tag="">
<ul class="tips">
  <li i18n:translate="">Add list items separated by an empty line.</li>
  <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 metal:use-macro="container/macro_notes/macros/markup_notes">markup tips</li>
</ul>
</div>

</div>
