PageRenderTime 21ms CodeModel.GetById 11ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/modules/mod_translation/templates/_admin_edit_sidebar.tpl

https://code.google.com/p/zotonic/
Smarty Template | 38 lines | 30 code | 8 blank | 0 comment | 5 complexity | 9df6a8b00b6dfb18bd8cd3292a4e2b27 MD5 | raw file
 1{% extends "admin_edit_widget_std.tpl" %}
 2
 3{# Sidebar widget for editing rsc transalations #}
 4
 5{% block widget_title %}{_ Translations _}{% endblock %}
 6{% block widget_show_minimized %}false{% endblock %}
 7
 8
 9{% block widget_content %}
10{% with m.rsc[id].language as r_lang %}
11<div class="notification notice">
12	{_ Translate this page in other languages. _}
13	<a href="javascript:void(0)" class="do_dialog" data-dialog="title: '{_ Help about translations. _}', text: '{_ The title, body and other texts can be translated in different languages. Here you can select which languages will be used. _}', width: '450px'">{_ Need more help? _}</a>
14</div>
15
16<ul id="rsc_languages">
17	{% for code, lang in languages %}
18		{% if lang.is_enabled %}
19			<li>
20				<label>
21					<input type="checkbox" id="{{ #language.code }}" name="language" value="{{ code }}"
22						{% if code|member:r_lang or (not r_lang and z_language == code) %}checked="checked"{% endif %}> {{ lang.language }}
23				</label>
24				{% wire id=#language.code 
25					action={toggle selector=[".tab-",code|make_list]}
26				%}
27			</li>
28		{% endif %}
29
30	{% empty %}
31		<li><label><input type="checkbox" checked="checked" disabled="disabled"> {{ z_language }}</label></li>
32
33	{% endfor %}
34</ul>
35
36<div class="clear">&nbsp;</div>
37{% endwith %}
38{% endblock %}