antville/code/Choice/$Choice.skin
Tobi Schäfer 32c52791fe * Refactored code and skins in respect for comprehensive i18n
* Refactored and unified remove() methods and calls for greater flexibility as well as reliability
 * Added option to remove all comments by a user to Comment.remove() method and $Comment#delete skin
 * Added global #listItemFlag skin as well as listItemFlag_macro() for rendering vertically written text of items in a list view (e.g. closed)
 * Fixed bug in gettext_macro() and ngettext_macro() causing incorrect whitespace
 * Refactored timezone and locale handling
 * Modified automatic translation of untitled links in HopObject.link_macro()
 * Added honeypot to login and registration forms
 * Fixed client-side JavaScript to be evaluated when login or registration form is submitted, not only when the submit button is clicked
 * Removed redundant filter expression from DB mapping of Membership.images collection
 * Added Membership.content collection
 * Changed terminology from open to running polls, thus renaming Polls.open_action() method and Polls.open collection
 * Moved a lot of CSS used in root or administration sections from Site#stylesheet to $Root#stylesheet skin
 * Added Root.updateDomains() method (most likely already obsolete)
 * Removed Root.processHref() method (only necessary for very advanced setup) and obsolete comments
 * Fixed Root.xgettext() method to correctly read UTF-8 encoded data
 * Fixed Site.deleted_macro() to return the date object for late formatting
 * Refactored Site.processHref() for more convenient custom domain name mapping
 * Renamed Skins.advanced_action() method to Skins.all_action()
 * Removed redundant filter from Stories.comments collection
 * Removed unnecessary filter from Story.comments collection
2010-01-10 14:40:36 +00:00

32 lines
928 B
Text

<% #main %>
<tr>
<td valign="top" width="5%">
<input type="radio" id="<% choice.id %>" name="choice"
value="<% choice.id %>" <% if <% choice.selected %> is true then
'checked="checked"'
%> />
</td>
<td><label for="<% choice.id %>"><% choice.title %></label></td>
</tr>
<% #edit %>
<div class="choice" style="margin-top: 5px;">
<span class="small"><% gettext Choice %> #<% param.index %>:</span>
<div>
<input type="text" name="title" class="formText"
value="<% choice.title %>" />
</div>
</div>
<% #result %>
<p>
<div style="width: <% choice.votes 300 default="1" %>px;"
class="pollResultsBar"></div>
<span class="small"><% choice.votes % | format #.#% %>
<% ngettext "{0} vote" "{0} votes" <% choice.votes %>
prefix="(" suffix=")" %></span><br />
<% choice.title %>
</p>
<% #graph %>
<div style="width:<% param.width %>px;" class="pollResultsBar">&nbsp;</div>