/modules/mod_base/templates/_action_typeselect_result.tpl
http://github.com/zotonic/zotonic · Smarty Template · 16 lines · 15 code · 1 blank · 0 comment · 1 complexity · 4f7bff4cd06a56f0c622991bd5ccfd2e MD5 · raw file
- {% for id, rank in result %}
- <li class="suggestions-result clearfix">
- {% with m.rsc[id] as r %}
- <a id="{{ #connect.id }}" href="#add-connection">
- <span class="pull-right">{{ m.rsc[r.category.id].title|default:r.category.name }}</span>
- {% image r.depiction width=40 height=18 crop %}
- {{ r.title }}
- </a>
- {% endwith %}
- </li>
- {% wire_args id=#connect.id action=action_with_id select_id=id %}
- {% wire id=#connect.id action=action %}
- {% empty %}
- <li class="suggestions-result"><a href="javascript:void(0);">Nothing found.</a></li>
- {% endfor %}