Last change
on this file since 323 was
323,
checked in by nanardon, 14 years ago
|
- proof reading from Ahmad Samir
|
-
Property svn:keywords set to
Id Rev
|
File size:
995 bytes
|
Rev | Line | |
---|
[227] | 1 | <!-- $Id$ --> |
---|
[169] | 2 | [% INCLUDE 'includes/admin_menu.tt' %] |
---|
| 3 | |
---|
| 4 | [% poll = c.model('Vote').poll(voteid) %] |
---|
| 5 | |
---|
[319] | 6 | [% INCLUDE 'includes/ballot_settings.tt' %] |
---|
[217] | 7 | |
---|
[169] | 8 | <hr> |
---|
| 9 | |
---|
[207] | 10 | [% IF ! poll.choices_keys.size %] |
---|
[323] | 11 | <p class="alert">[% l('No choices are configured') %]</p> |
---|
[169] | 12 | [% ELSE %] |
---|
[207] | 13 | [% FOREACH choicek = poll.choices_keys %] |
---|
| 14 | [% choice = poll.choice(choicek) %] |
---|
[226] | 15 | <form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST"> |
---|
[207] | 16 | [% loop.count %] - [% choice.info.label | html %] |
---|
| 17 | <input type="hidden" name="delch" value="[% choicek %]"> |
---|
[280] | 18 | <input type="submit" name="del" value="[% l('delete') %]"> |
---|
[169] | 19 | </form> |
---|
| 20 | <br> |
---|
| 21 | [% END %] |
---|
| 22 | [% END %] |
---|
[226] | 23 | <form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST"> |
---|
[280] | 24 | [% l('Add a choice') %]<br> |
---|
[169] | 25 | <input type="text" name="addch"> |
---|
[280] | 26 | <input type="submit" value="[% l('Add') %]"> |
---|
[169] | 27 | </form> |
---|
| 28 | </div> |
---|
| 29 | |
---|
| 30 | <div style="float: right; width: 30%" class="ballot"> |
---|
[280] | 31 | <p>[% l('Preview of ballot') %]</p> |
---|
[235] | 32 | [% INCLUDE 'includes/ballot_form.tt' b_form_url = c.uri_for(poll.uid, 'ballot') %] |
---|
[169] | 33 | </div> |
---|
| 34 | |
---|
| 35 | <div style="clear: both"></div> |
---|
Note: See
TracBrowser
for help on using the repository browser.