/modules/mod_admin/templates/_admin_edit_content.query.tpl
https://code.google.com/p/zotonic/ · Smarty Template · 30 lines · 23 code · 7 blank · 0 comment · 1 complexity · 655901a767703742e52057d21be662ad MD5 · raw file
- {% extends "admin_edit_widget_std.tpl" %}
- {# To edit the stored search query #}
- {% block widget_title %}{_ Search query _}{% endblock %}
- {% block widget_show_minimized %}false{% endblock %}
- {% block widget_content %}
- {% with m.rsc[id] as r %}
- <fieldset class="admin-form">
- <div class="notification notice">
- {_ Here you can edit the arguments of the search query. Every argument goes on its own line. For more information, see the
- <a href="http://zotonic.com/documentation/761/the-query-search-model">documentation on the query arguments</a> on the Zotonic website. _}
- </div>
- <div class="form-item clearfix">
- <label for="query">{_ Query _}</label>
- <textarea id="{{ #query }}" name="query" rows="15">{{ r.query }}</textarea>
- {% wire id=#query type="change" postback={query_preview rsc_id=id div_id=#querypreview} delegate="resource_admin_edit" %}
- </div>
- <h3>{_ Query preview _}</h3>
- <div class="query-results" id="{{ #querypreview }}">
- {% include "_admin_query_preview.tpl" result=m.search[{query query_id=id}] %}
- </div>
- </fieldset>
- {% endwith %}
- {% endblock %}