From d5cf1aa5a7fef5a6258f8be02a38589345b0eb11 Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Fri, 29 May 2015 12:00:56 +0200 Subject: [PATCH] Add hidden-print class on vote line and actions column --- tpl/part/vote_table_classic.tpl | 131 ++++++++++++++++---------------- tpl/part/vote_table_date.tpl | 131 ++++++++++++++++---------------- 2 files changed, 133 insertions(+), 129 deletions(-) diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl index cfa005c..a66e141 100644 --- a/tpl/part/vote_table_classic.tpl +++ b/tpl/part/vote_table_classic.tpl @@ -38,85 +38,86 @@ {foreach $votes as $vote} - - {* Edited line *} - {if $editingVoteId === $vote->uniqId} - -
- - - -
+ {if $editingVoteId === $vote->uniqId} {* Edited line *} + + + +
+ + + +
+ + + {foreach $vote->choices as $id=>$choice} + + + + {/foreach} + + + {elseif !$hidden} {* Voted line *} + - {foreach $vote->choices as $id=>$choice} + {$vote->name|html} - - - - {/foreach} - - {elseif !$hidden} - {* Voted line *} + {foreach $vote->choices as $id=>$choice} - {$vote->name|html} - - {foreach $vote->choices as $id=>$choice} - - {if $choice==2} - {__('Generic', 'Yes')} - {elseif $choice==1} - (){__('Generic', 'Ifneedbe')} - {else} - {__('Generic', 'No')} - {/if} - - {/foreach} - - {if $active && !$expired && ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL') or $admin)} - - - {__('Generic', 'Edit')} - - {if $admin} - - {__('Generic', 'Remove')} - - {/if} - + {if $choice==2} + {__('Generic', 'Yes')} + {elseif $choice==1} + (){__('Generic', 'Ifneedbe')} {else} - + {__('Generic', 'No')} {/if} + + {/foreach} + + {if $active && !$expired && ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL') or $admin)} + + + {__('Generic', 'Edit')} + + {if $admin} + + {__('Generic', 'Remove')} + + {/if} + + {else} + {/if} + {/if} {/foreach} {* Line to add a new vote *} {if $active && $editingVoteId === 0 && !$expired} - +
diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl index 8fdb74c..5d21aed 100644 --- a/tpl/part/vote_table_date.tpl +++ b/tpl/part/vote_table_date.tpl @@ -86,86 +86,89 @@ {foreach $votes as $vote} - - {* Edited line *} + {* Edited line *} - {if $editingVoteId === $vote->uniqId && !$expired} - -
- - - -
+ {if $editingVoteId === $vote->uniqId && !$expired} + + +
+ + + +
+ + + {foreach $vote->choices as $k=>$choice} + + + + {/foreach} + - {foreach $vote->choices as $k=>$choice} + + {elseif !$hidden} + - - - - {/foreach} - - {elseif !$hidden} + {* Voted line *} - {* Voted line *} + {$vote->name|html} - {$vote->name|html} + {foreach $vote->choices as $k=>$choice} - {foreach $vote->choices as $k=>$choice} - - {if $choice==2} - {__('Generic', 'Yes')} - {elseif $choice==1} - (){__('Generic', 'Ifneedbe')} - {else} - {__('Generic', 'No')} - {/if} - - {/foreach} - - {if $active && !$expired && ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL') or $admin)} - - - {__('Generic', 'Edit')} - - {if $admin} - - {__('Generic', 'Remove')} - - {/if} - + {if $choice==2} + {__('Generic', 'Yes')} + {elseif $choice==1} + (){__('Generic', 'Ifneedbe')} {else} - + {__('Generic', 'No')} {/if} + + {/foreach} + + {if $active && !$expired && ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL') or $admin)} + + + {__('Generic', 'Edit')} + + {if $admin} + + {__('Generic', 'Remove')} + + {/if} + + {else} + {/if} + {/if} {/foreach} {* Line to add a new vote *} {if $active && $editingVoteId === 0 && !$expired} - +