PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 1ms

/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
 2{% wire id=#form type="submit" delegate="mod_mailinglist" postback={mailinglist_upload id=id} %}
 3<form id="{{ #form }}" method="post" action="postback" enctype="multipart/form-data" class="form">
 4    <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>
 5	
 6	<div class="form-group row">
 7		<label class="control-label col-md-3" for="{{ #file }}">{_ Select file _}</label>
 8		<div class="col-md-9">
 9			<input class="form-control" type="file" id="{{ #file }}" name="file" />
10			{% validate id=#file name="file" type={presence} %}
11		</div>
12	</div>
13	
14	<div class="form-group row">
15        <div class="col-md-9 col-md-offset-3">
16		    <div class="checkbox">
17			    <label>
18				    <input type="checkbox" name="truncate" id="{{ #truncate }}" />
19				    {_ Delete all current recipients before adding the file. _}
20			    </label>
21		    </div>
22        </div>
23	</div>
24
25	<div class="modal-footer">
26	    {% button class="btn btn-default" text=_"Cancel" action={dialog_close} tag="a" %}
27	    {% button class="btn btn-primary" type="submit" text=_"Upload file" %}
28	</div>
29</form>