list.tpl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <ul id="entries" class="unstyled glossary entries" data-c_id="{{c_id}}" data-session_id="{{session_id}}" >
  2. {% for item in items %}
  3. <li id="glossary_{{item.id}}" class="glossary term" data-id="{{item.id}}" data-c_id="{{item.c_id}}" data-type="glossary">
  4. <div class="title sectiontitle">
  5. {% if is_allowed_to_edit %}
  6. <div class="pull-right">
  7. {% if session_id == item.session_id %}
  8. <a href="{{root}}&amp;action=edit&amp;id={{item.id}}"
  9. title="{{'Edit'|get_lang}}">
  10. <i class="size-22 icon-edit"></i>
  11. </a>
  12. <a href="{{root}}&amp;action=delete&amp;id={{item.id}}"
  13. onclick="ui.remove('glossary_{{item.id}}', this); return false;"
  14. title="{{'Delete'|get_lang}}">
  15. <i class="size-22 icon-delete"></i>
  16. </a>
  17. {% else %}
  18. <img title="{{'EditionNotAvailableFromSession'|get_lang}}"
  19. alt="{{'EditionNotAvailableFromSession'|get_lang}}"
  20. src="{{'edit_na.png'|icon(22)}}"
  21. style="vertical-align:middle;">
  22. {% endif %}
  23. </div>
  24. {% endif %}
  25. {{item.name}}
  26. </div>
  27. <div class="sectioncomment">
  28. {{item.description}}
  29. </div>
  30. </li>
  31. {% endfor %}
  32. </ul>