PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/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
 1{% extends "admin_edit_widget_std.tpl" %}
 2
 3{# To edit the stored search query #}
 4
 5
 6{% block widget_title %}{_ Search query _}{% endblock %}
 7{% block widget_show_minimized %}false{% endblock %}
 8
 9
10{% block widget_content %}
11{% with m.rsc[id] as r %}
12<fieldset class="admin-form">
13	<div class="notification notice">
14		{_ Here you can edit the arguments of the  search query. Every argument goes on its own line. For more information, see the
15		<a href="http://zotonic.com/documentation/761/the-query-search-model">documentation on the query arguments</a> on the Zotonic website. _}
16	</div>
17
18	<div class="form-item clearfix">
19		<label for="query">{_ Query _}</label>
20		<textarea id="{{ #query }}" name="query" rows="15">{{ r.query }}</textarea>
21		{% wire id=#query type="change" postback={query_preview rsc_id=id div_id=#querypreview} delegate="resource_admin_edit" %}
22	</div>
23
24	<h3>{_ Query preview _}</h3>
25	<div class="query-results" id="{{ #querypreview }}">
26		{% include "_admin_query_preview.tpl" result=m.search[{query query_id=id}] %}
27	</div>
28</fieldset>
29{% endwith %}
30{% endblock %}