<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:i18n="http://xml.zope.org/namespaces/i18n"
     xmlns:meta="http://xml.zope.org/namespaces/meta"
     xmlns:tal="http://xml.zope.org/namespaces/tal"
     meta:interpolation="true"
     i18n:domain="euphorie"
     tal:omit-tag=""
><div class="buttonBar">
  <a class="button floatBefore" tal:condition="view/can_edit" href="${context/absolute_url}/@@edit" i18n:translate="button_edit">Edit</a>
  <a class="button floatAfter" tal:condition="view/library_available" href="${context/absolute_url}/@@library" i18n:translate="button_library">Library</a>
  <tal:factory omit-tag="" repeat="factory view/actions">
    <tal:button switch="python:factory.id">
      <a class="button floatAfter" tal:case="string:euphorie.module"
          href="${factory/url}" title="${factory/description}" i18n:translate="">Add Module</a>
      <a class="button floatAfter" tal:case="string:euphorie.submodule"
          href="${factory/url}" title="${factory/description}" i18n:translate="">Add Submodule</a>
      <a class="button floatAfter" tal:case="string:euphorie.profilequestion"
          href="${factory/url}" title="${factory/description}" i18n:translate="">Add Profile question</a>
      <a class="button floatAfter" tal:case="string:euphorie.risk"
          href="${factory/url}" title="${factory/description}" i18n:translate="">Add Risk</a>
      <a class="button floatAfter" tal:case="string:euphorie.solution"
          href="${factory/url}" title="${factory/description}" i18n:translate="">Add Measure</a>
      <a class="button floatAfter" tal:case="default"
         href="${factory/url}" title="${factory/description}" i18n:translate="button_add_factory">Add <tal:span i18n:name="typename">${factory/title}</tal:span></a>
    </tal:button>
  </tal:factory>
</div></div>
