Clean code
This commit is contained in:
parent
c857eac91c
commit
8a3e74cadb
@ -51,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
{$id=0} {* #51 : Parcoure les slots/moments pour y inclure les nouveaux items sans vote }
|
{$id=0}
|
||||||
{foreach $slots as $slot}
|
{foreach $slots as $slot}
|
||||||
{foreach $slot->moments as $moment}
|
{foreach $slot->moments as $moment}
|
||||||
{$choice=$vote->choices[$id]}
|
{$choice=$vote->choices[$id]}
|
||||||
@ -77,7 +77,7 @@
|
|||||||
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
<li style='display:none'> {* #51 : default value for unselected vote *}
|
<li style="display:none">
|
||||||
<input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" " {if $choice!='2' && $choice!='1' && $choice!='0'}checked {/if}/>
|
<input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" " {if $choice!='2' && $choice!='1' && $choice!='0'}checked {/if}/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -94,7 +94,7 @@
|
|||||||
|
|
||||||
<th class="bg-info">{$vote->name|html}</th>
|
<th class="bg-info">{$vote->name|html}</th>
|
||||||
|
|
||||||
{$id=0} {* #51 : Parcoure les slots/moments pour y inclure les nouveaux items sans vote }
|
{$id=0}
|
||||||
{foreach $slots as $slot}
|
{foreach $slots as $slot}
|
||||||
{foreach $slot->moments as $moment}
|
{foreach $slot->moments as $moment}
|
||||||
{$choice=$vote->choices[$id]}
|
{$choice=$vote->choices[$id]}
|
||||||
@ -105,8 +105,8 @@
|
|||||||
<td class="bg-warning text-warning" headers="C{$id}">(<i class="glyphicon glyphicon-ok"></i>)<span class="sr-only">{__('Generic', 'Ifneedbe')}</span></td>
|
<td class="bg-warning text-warning" headers="C{$id}">(<i class="glyphicon glyphicon-ok"></i>)<span class="sr-only">{__('Generic', 'Ifneedbe')}</span></td>
|
||||||
{elseif $choice=='0'}
|
{elseif $choice=='0'}
|
||||||
<td class="bg-danger text-danger" headers="C{$id}"><i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span></td>
|
<td class="bg-danger text-danger" headers="C{$id}"><i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span></td>
|
||||||
{else} {* #51 : default value for unselected vote (new dates) *}
|
{else}
|
||||||
<td class="" headers="C{$id}">?<span class="sr-only">{__('Generic', 'Unknown')}</span></td>
|
<td headers="C{$id}">?<span class="sr-only">{__('Generic', 'Unknown')}</span></td>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{$id=$id + 1}
|
{$id=$id + 1}
|
||||||
@ -171,7 +171,7 @@
|
|||||||
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
<li style='display:none'> {* #51 : default value for unselected vote *}
|
<li style="display:none">
|
||||||
<input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" " checked/>
|
<input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" " checked/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
{$k=0} {* #51 : Parcoure les slots/moments pour y inclure les nouveaux items sans vote }
|
{$k=0}
|
||||||
{foreach $slots as $slot}
|
{foreach $slots as $slot}
|
||||||
{foreach $slot->moments as $moment}
|
{foreach $slot->moments as $moment}
|
||||||
{$choice=$vote->choices[$k]}
|
{$choice=$vote->choices[$k]}
|
||||||
@ -125,7 +125,7 @@
|
|||||||
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
<li style='display:none'> {* #51 : default value for unselected vote *}
|
<li style="display:none">
|
||||||
<input type="radio" id="n-choice-{$k}" name="choices[{$k}]" value=" " {if $choice!='2' && $choice!='1' && $choice!='0'}checked {/if}/>
|
<input type="radio" id="n-choice-{$k}" name="choices[{$k}]" value=" " {if $choice!='2' && $choice!='1' && $choice!='0'}checked {/if}/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -145,7 +145,7 @@
|
|||||||
|
|
||||||
<th class="bg-info">{$vote->name|html}</th>
|
<th class="bg-info">{$vote->name|html}</th>
|
||||||
|
|
||||||
{$k=0} {* #51 : Parcoure les slots/moments pour y inclure les nouveaux items sans vote }
|
{$k=0}
|
||||||
{foreach $slots as $slot}
|
{foreach $slots as $slot}
|
||||||
{foreach $slot->moments as $moment}
|
{foreach $slot->moments as $moment}
|
||||||
{$choice=$vote->choices[$k]}
|
{$choice=$vote->choices[$k]}
|
||||||
@ -156,8 +156,8 @@
|
|||||||
<td class="bg-warning text-warning" headers="M{$headersM[$k]} D{$headersD[$k]} H{$k}">(<i class="glyphicon glyphicon-ok"></i>)<span class="sr-only">{__('Generic', 'Ifneedbe')}</span></td>
|
<td class="bg-warning text-warning" headers="M{$headersM[$k]} D{$headersD[$k]} H{$k}">(<i class="glyphicon glyphicon-ok"></i>)<span class="sr-only">{__('Generic', 'Ifneedbe')}</span></td>
|
||||||
{elseif $choice=='0'}
|
{elseif $choice=='0'}
|
||||||
<td class="bg-danger text-danger" headers="M{$headersM[$k]} D{$headersD[$k]} H{$k}"><i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span></td>
|
<td class="bg-danger text-danger" headers="M{$headersM[$k]} D{$headersD[$k]} H{$k}"><i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span></td>
|
||||||
{else} {* #51 : default value for unselected vote (new dates) *}
|
{else}
|
||||||
<td class="" headers="M{$headersM[$k]} D{$headersD[$k]} H{$k}">?<span class="sr-only">{__('Generic', 'Unknown')}</span></td>
|
<td headers="M{$headersM[$k]} D{$headersD[$k]} H{$k}">?<span class="sr-only">{__('Generic', 'Unknown')}</span></td>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{$k=$k + 1}
|
{$k=$k + 1}
|
||||||
@ -223,7 +223,7 @@
|
|||||||
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
<li style='display:none'> {* #51 : default value for unselected vote *}
|
<li style="display:none">
|
||||||
<input type="radio" id="n-choice-{$i}" name="choices[{$i}]" value=" " checked/>
|
<input type="radio" id="n-choice-{$i}" name="choices[{$i}]" value=" " checked/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user