/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. <div class="form-item clearfix">
  11. <label for="field-short-title{{ lang_code_with_dollar }}">{_ Short title _} {{ lang_code_with_brackets }}</label>
  12. <input type="text" id="field-short-title{{ lang_code_with_dollar }}" name="short_title{{ lang_code_with_dollar }}"
  13. value="{{ is_i18n|if : r.translation[lang_code].short_title : r.short_title }}"
  14. {% if not is_editable %}disabled="disabled"{% endif %} />
  15. </div>
  16. <div class="form-item clearfix">
  17. <label for="website">{_ Website _}</label>
  18. <input id="website" type="text" name="website" value="{{ r.website }}" style="width: 295px"
  19. {% if not is_editable %}disabled="disabled"{% endif %} />
  20. </div>
  21. </fieldset>
  22. {% endwith %}
  23. {% endwith %}