PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/modules/mod_survey/templates/_survey_start.tpl

https://code.google.com/p/zotonic/
Smarty Template | 24 lines | 20 code | 4 blank | 0 comment | 1 complexity | 0ab8e1c37bf5f011f2830762c23e2561 MD5 | raw file
 1{% media m.rsc[id].media[1] width=400 height=400 class="main-image" %}
 2
 3<p class="summary">
 4	{{ m.rsc[id].summary }}
 5</p>
 6
 7{{ m.rsc[id].body|show_media }}
 8
 9<div class="buttons">
10	<button id="{{ #survey_next }}" class="submit next">{_ Start _} &gt;</button>
11	{% wire id=#survey_next
12		postback={survey_start id=id}
13		delegate="mod_survey"
14	%}
15</div>
16
17{% if id.survey_show_results or m.survey.is_allowed_results_download[id] %}
18<div class="buttons">
19	<button id="{{ #survey_result }}" class="submit next">{_ Results _} &gt;</button>
20	{% wire id=#survey_result
21		action={redirect dispatch="survey_results" id=id}
22	%}
23</div>
24{% endif %}