/modules/mod_admin_config/templates/_action_dialog_config_edit.tpl

http://github.com/zotonic/zotonic · Smarty Template · 26 lines · 25 code · 1 blank · 0 comment · 0 complexity · 9710e613605b5d36e9e03caa359fabe8 MD5 · raw file

  1. {% wire id=#form type="submit" postback={config_edit module=module key=key on_success=on_success} delegate=delegate %}
  2. <form id="{{ #form }}" method="POST" action="postback" class="form form-horizontal">
  3. <div class="form-group row">
  4. <label class="control-label col-md-3" for="{{ #module }}">{_ Module _}</label>
  5. <div class="col-md-4">
  6. <input type="text" id="{{ #module }}" name="module" value="{{ module|escape }}" class="input-xlarge form-control" />
  7. </div>
  8. </div>
  9. <div class="form-group row">
  10. <label class="control-label col-md-3" for="{{ #key }}">{_ Key _}</label>
  11. <div class="col-md-4">
  12. <input type="text" id="{{ #key }}" name="key" value="{{ key|escape }}" class="input-xlarge form-control" />
  13. </div>
  14. </div>
  15. <div class="form-group row">
  16. <label class="control-label col-md-3" for="{{ #value }}">{_ Value _}</label>
  17. <div class="col-md-9">
  18. <input type="text" id="{{ #value }}" name="val" value="{{ value|escape }}" class="input-xlarge do_autofocus form-control" />
  19. </div>
  20. </div>
  21. <div class="modal-footer">
  22. {% button class="btn btn-default" action={dialog_close} text=_"Cancel" tag="a" %}
  23. <button class="btn btn-primary" type="submit">{_ Save _}</button>
  24. </div>
  25. </form>