+
+
-
- {if !empty($poll->comment)}
-
-
- {* Information about voting *}
-
- {if $poll->active}
-
-
{_("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.")}
-
{_('Legend:')} = {_('Yes')}, () = {_('Ifneedbe')}, = {_('No')}
-
- {else}
-
-
{_("The administrator locked this poll, votes and comments are frozen, it's not possible to participate anymore.")}
-
{_('Legend:')} = {_('Yes')}, () = {_('Ifneedbe')}, = {_('No')}
-
- {/if}
-
- {* Scroll left and right *}
-
-
- {* Vote table *}
+ {* Information about voting *}
-
{_('Votes of the poll')}
-
-
- {_('Votes of the poll')} {$poll->title}
-
-
- |
- {foreach $slots as $id=>$slot}
- {$slot->day|date_format:'%B %Y'} |
- {for $foo=0 to ($slot->moments|count)-1}
- {append var='headersM' value=$id}
- {/for}
+ {if $poll->active}
+
+
{_("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.")}
+
{_('Legend:')} = {_('Yes')}, () = {_('Ifneedbe')}, = {_('No')}
+
+ {else}
+
+
{_("The administrator locked this poll, votes and comments are frozen, it's not possible to participate anymore.")}
+
{_('Legend:')} = {_('Yes')}, () = {_('Ifneedbe')}, = {_('No')}
+
+ {/if}
+
+ {* Scroll left and right *}
+
+
+
+ {* Vote table *}
+
+ {_('Votes of the poll')}
+
+ {/foreach}
- {* Best votes listing *}
+ {* Line to add a new vote *}
- {$max = max($best_moments)}
- {if $max > 0}
-
- {if $count_bests == 1}
-
{_("Best choice")}
-
-
{_("The best choice at this time is:")}
- {elseif $count_bests > 1}
-
{_("Best choices")}
-
-
{_("The bests choices at this time are:")}
+ {if $poll->active && $editingVoteId == 0}
+
+ |
+
+
+
+
+ |
+ {$i = 0}
+ {foreach $slots as $slot}
+ {foreach $slot->moments as $moment}
+
+
+ |
+ {$i = $i+1}
+ {/foreach}
+ {/foreach}
+ |
+
{/if}
-
- {$i = 0}
-
+
+
+ {* Best votes listing *}
+
+ {$max = max($best_moments)}
+ {if $max > 0}
+
+ {if $count_bests == 1}
+
{_("Best choice")}
+
+
{_("The best choice at this time is:")}
+ {elseif $count_bests > 1}
+
{_("Best choices")}
+
+
{_("The bests choices at this time are:")}
{/if}
+
+
+ {$i = 0}
+
+ {foreach $slots as $slot}
+ {foreach $slot->moments as $moment}
+ {if $best_moments[$i] == $max}
+ - {$slot->day|date_format:$date_format.txt_full} - {$moment}
+ {/if}
+ {$i = $i+1}
+ {/foreach}
+ {/foreach}
+
+
{_("with")} {$max} {if $max==1}{_('vote')}{else}{_('votes')}{/if}.
+
+
+ {/if}
+
{/block}
\ No newline at end of file