[227] | 1 | <!-- $Id$ --> |
---|
[205] | 2 | [% poll = c.model('Vote').poll(voteid) %] |
---|
[167] | 3 | |
---|
| 4 | [% INCLUDE 'includes/admin_menu.tt' %] |
---|
| 5 | |
---|
[205] | 6 | [% IF poll.status() != 'AFTER' %] |
---|
[168] | 7 | <div style="float: left; width: 30%;" class="box"> |
---|
[315] | 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') %]"> |
---|
[167] | 21 | </form> |
---|
[315] | 22 | |
---|
[167] | 23 | <hr> |
---|
[315] | 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 %] |
---|
[167] | 31 | [% END %] |
---|
[315] | 32 | |
---|
| 33 | <p><input type="submit" value="[% l('search...') %]"></p> |
---|
[167] | 34 | </form> |
---|
[315] | 35 | [% END %][% # if importtype %] |
---|
[168] | 36 | </div> |
---|
| 37 | |
---|
| 38 | [% END %] |
---|
| 39 | |
---|
| 40 | <div class="box" style="float: right; width: 60%;"> |
---|
[315] | 41 | [% FOREACH voter = voters %] |
---|
[167] | 42 | [% IF loop.first %] |
---|
[315] | 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> |
---|
[323] | 48 | [% l('Enter a hint for the password here') %]<br> |
---|
[315] | 49 | <textarea rows="3" cols="50" name="desc"></textarea><br> |
---|
[167] | 50 | [% END %] |
---|
[315] | 51 | <input type="submit" name="add_import" value="[% l('Import this list') %]"><br> |
---|
| 52 | </form> |
---|
| 53 | </div> |
---|
[167] | 54 | [% END %] |
---|
[319] | 55 | <p>[% voter.0 | html %] |
---|
| 56 | [% voter.1 | html %] |
---|
| 57 | [% voter.2 | html %]</p> |
---|
[168] | 58 | [% END %] |
---|
| 59 | </div> |
---|
| 60 | <div style="clear: both"></div> |
---|