index.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% include 'jquery_mobile/notebook/header.tpl' %}
  2. {% include 'jquery_mobile/notebook/javascript.tpl' %}
  3. <div class="btn-toolbar actions-bar" >
  4. {% if is_allowed_to_edit %}
  5. <div class="btn-group edit">
  6. <a href="{{root}}&amp;action=add" class="notebook btn new term" title="{{'Add'|get_lang}}">
  7. <i class="size-32 icon-new-note"></i>
  8. </a>
  9. <a href="{{root}}&amp;action=import_csv" class="btn" title="{{'ImportCSV'|get_lang}}">
  10. <i class="size-32 icon-import-csv"></i>
  11. </a>
  12. <a href="{{root}}&amp;action=export_csv" class="btn" title="{{'ExportAsCSV'|get_lang}}">
  13. <i class="size-32 icon-export-csv"></i>
  14. </a>
  15. <a href="javascript:void(0)" onclick="ui.remove_by_course('entries', this);return false;" class="btn delete_all" title="{{'DeleteAll'|get_lang}}">
  16. <i class="size-32 icon-delete-all"></i>
  17. </a>
  18. </div>
  19. {% endif %}
  20. <div class="btn-group sort">
  21. <a href="{{root}}&amp;action=index&amp;sort_column=creation_date&amp;sort_direction={%if sort_direction == 'ASC' and sort_column == 'creation_date' %}DESC{% else %}ASC{% endif %}"
  22. class="btn"
  23. title="{{'SorteByCreatedDate'|get_lang}}">
  24. <i class="size-32 icon-sort-by-created-date"></i>
  25. </a>
  26. <a href="{{root}}&amp;action=index&amp;sort_column=update_date&amp;sort_direction={%if sort_direction == 'ASC' and sort_column == 'update_date' %}DESC{% else %}ASC{% endif %}"
  27. class="btn"
  28. title="{{'SorteByUpdatedDate'|get_lang}}">
  29. <i class="size-32 icon-sort-by-modified-date"></i>
  30. </a>
  31. <a href="{{root}}&amp;action=index&amp;sort_column=title&amp;sort_direction={%if sort_direction == 'ASC' and sort_column == 'title' %}DESC{% else %}ASC{% endif %}"
  32. class="btn"
  33. title="{{'SortByTitle'|get_lang}}">
  34. <i class="size-32 icon-sort-by-title"></i>
  35. </a>
  36. </div>
  37. </div>
  38. {% include 'jquery_mobile/notebook/list.tpl' %}