source: trunk/root/templates/admin/votersimport.tt @ 375

Last change on this file since 375 was 323, checked in by nanardon, 14 years ago
  • proof reading from Ahmad Samir
  • Property svn:keywords set to Id Rev
File size: 1.9 KB
Line 
1<!-- $Id$ -->
2[% poll = c.model('Vote').poll(voteid) %]
3
4[% INCLUDE 'includes/admin_menu.tt' %]
5
6[% IF poll.status() != 'AFTER' %]
7<div style="float: left; width: 30%;" class="box">
8<form action="[% c.uri_for(poll.uid, 'voters', 'import') %]" method="POST">
9<select name="importtype">
10  <option label="[% l('Dummy') | html %]" value="dummy" [% " selected" IF c.req.param('importtype') == 'dummy' %]">
11        [% l('Dummy') | html %]
12  </option>
13  <option label="[% l('CSV file') | html %]" value="csv" [% " selected" IF c.req.param('importtype') == 'csv' %]">
14        [% l('CSV file') | html %]
15  </option>
16  <option label="[% l('LDAP') | html %]" value="ldap" [% " selected" IF c.req.param('importtype') == 'ldap' %]">
17        [% l('LDAP') | html %]
18  </option>
19</select>
20<input type="submit" value="[% l('select') %]">
21</form>
22
23<hr>
24
25[% IF c.req.param('importtype') %]
26<form action="[% c.uri_for(poll.uid, 'voters', 'import') %]" ENCTYPE="multipart/form-data" method="POST">
27<input type="hidden" value="[% c.req.param('importtype') | html %]" name="importtype"><br>
28
29[% IF importtt %]
30[% INCLUDE $importtt %]
31[% END %]
32
33<p><input type="submit" value="[% l('search...') %]"></p>
34</form>
35[% END %][% # if importtype %]
36</div>
37
38[% END %]
39
40<div class="box" style="float: right; width: 60%;">
41[% FOREACH voter = voters %]
42[% IF loop.first %]
43<div class="box">
44<form action="[% c.uri_for(poll.uid, 'voters', 'import') %]" method="POST">
45<input type="hidden" value="[% c.req.param('importtype') | html %]" name="importtype">
46[% IF import_handle.can_authenticate %]
47[% l('Use external authentication') %]<input type="checkbox" name="ext_auth"><br>
48[% l('Enter a hint for the password here') %]<br>
49<textarea rows="3" cols="50" name="desc"></textarea><br>
50[% END %]
51<input type="submit" name="add_import" value="[% l('Import this list') %]"><br>
52</form>
53</div>
54[% END %]
55<p>[% voter.0 | html %]
56[% voter.1 | html %]
57[% voter.2 | html %]</p>
58[% END %]
59</div>
60<div style="clear: both"></div>
Note: See TracBrowser for help on using the repository browser.