PageRenderTime 53ms CodeModel.GetById 50ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_admin/templates/_admin_edit_basics_form.website.tpl

https://code.google.com/p/zotonic/
Smarty Template | 25 lines | 23 code | 2 blank | 0 comment | 4 complexity | 879770a31073c4ca52c0338c81e171a3 MD5 | raw file
 1{% with m.rsc[id] as r %}
 2{% with m.rsc[id].is_editable as is_editable %}
 3<fieldset class="{% if not in_dialog %}admin-form{% endif %}">
 4	<div class="form-item clearfix">
 5		<label for="field-title{{ lang_code_with_dollar }}">{_ Title _} {{ lang_code_with_brackets }}</label>
 6		<input type="text" class="field-title" id="field-title{{ lang_code_with_dollar }}" name="title{{ lang_code_with_dollar }}" 
 7			value="{{ is_i18n|if : r.translation[lang_code].title : r.title }}"
 8			{% if not is_editable %}disabled="disabled"{% endif %}/>
 9	</div>
10
11	<div class="form-item clearfix">
12		<label for="field-short-title{{ lang_code_with_dollar }}">{_ Short title _} {{ lang_code_with_brackets }}</label>
13		<input type="text" id="field-short-title{{ lang_code_with_dollar }}" name="short_title{{ lang_code_with_dollar }}" 
14			value="{{ is_i18n|if : r.translation[lang_code].short_title : r.short_title }}"
15			{% if not is_editable %}disabled="disabled"{% endif %} />
16	</div>
17
18	<div class="form-item clearfix">
19        <label for="website">{_ Website _}</label>
20        <input id="website" type="text" name="website" value="{{ r.website }}" style="width: 295px"
21			{% if not is_editable %}disabled="disabled"{% endif %} />
22	</div>
23</fieldset>
24{% endwith %}
25{% endwith %}