\ No newline at end of file diff --git a/tpl/studs.tpl b/tpl/studs.tpl new file mode 100644 index 0000000..9be2368 --- /dev/null +++ b/tpl/studs.tpl @@ -0,0 +1,163 @@ +{include file='head.tpl'} +{include file='header.tpl'} + + {* Global informations about the current poll *} + +
+
+
+

{$poll->title}

+
+
+
+ + +
+
+
+
+
+
+

{_("Initiator of the poll")}

+

{$poll->admin_name}

+
+ +
+ + {if !empty($poll->comment)} +
+

{_("Description")}


+

{$poll->comment}

+
+ {/if} +
+
+ + {* 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.")}

+ +
+ {else} +
+

{_("The administrator locked this poll, votes and comments are frozen, it's not possible to participate anymore.")}

+ +
+ {/if} + + {* Scroll left and right *} + + + + {* Vote table *} + +

{_('Votes of the poll')}

+
+ + + + + + {foreach $slots as $id=>$slot} + + {/foreach} + + + + + {foreach $slots as $id=>$slot} + + {/foreach} + + + + + {foreach $slots as $slot} + {foreach $slot->moments as $id=>$moment} + + {/foreach} + {/foreach} + + + + + {foreach $votes as $vote} + + + + {if $editingVoteId == $vote->id} + {foreach $vote->choices as $k=>$choice} + {* Edited line *} + + + + {/foreach} + {else} + {foreach $vote->choices as $k=>$choice} + {* Voted line *} + + {if $choice==1} + + {else if $choice==2} + + {else} + + {/if} + + {/foreach} + + {if $poll->active && $poll->editable} + + {else} + + {/if} + {/if} + + {/foreach} + +
{_('Votes of the poll')} {$poll->title}
{$slot->day|date_format:'%B %Y'}
{$slot->day|date_format:$day_format}
{$moment}
{$vote->name} +
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
{_('Yes')}(){_('Ifneedbe')}{_('No')} +
+ + +
+
+
+ +{include file='footer.tpl'} \ No newline at end of file