/modules/mod_mailinglist/templates/_dialog_mailinglist_recipients_upload.tpl

http://github.com/zotonic/zotonic · Smarty Template · 29 lines · 25 code · 4 blank · 0 comment · 0 complexity · 35ac2cc377814bcb3bf699f49b300cc5 MD5 · raw file

  1. {% wire id=#form type="submit" delegate="mod_mailinglist" postback={mailinglist_upload id=id} %}
  2. <form id="{{ #form }}" method="post" action="postback" enctype="multipart/form-data" class="form">
  3. <p>{_ Upload a file with recipients. The file must contain a single e-mail address per line. The file’s character set must be utf-8. _}</p>
  4. <div class="form-group row">
  5. <label class="control-label col-md-3" for="{{ #file }}">{_ Select file _}</label>
  6. <div class="col-md-9">
  7. <input class="form-control" type="file" id="{{ #file }}" name="file" />
  8. {% validate id=#file name="file" type={presence} %}
  9. </div>
  10. </div>
  11. <div class="form-group row">
  12. <div class="col-md-9 col-md-offset-3">
  13. <div class="checkbox">
  14. <label>
  15. <input type="checkbox" name="truncate" id="{{ #truncate }}" />
  16. {_ Delete all current recipients before adding the file. _}
  17. </label>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="modal-footer">
  22. {% button class="btn btn-default" text=_"Cancel" action={dialog_close} tag="a" %}
  23. {% button class="btn btn-primary" type="submit" text=_"Upload file" %}
  24. </div>
  25. </form>