!!!### language independant
!if $votecnt<1
!if $wims_user!=supervisor
$name_novote $name_novotecheck
!else
$name_novote
!endif
!else
!if $wims_user!=supervisor
!if $active<1
$name_noactivevote $name_novotecheck
!endif
!endif
$name_class_vote
$table_header
$table_tr<th>$wims_name_title</th><th>$name_cnt_votes</th>
<th>$wims_name_Status</th><th>$wims_name_action</th>
!for t=1 to $votecnt
!set l_=!record $t of $votedir/.votes
!distribute lines $l_ into vote_status,vote_title,vote_option,vote_show,vote_whovoteshow
!default vote_title=$name_untitled
!set vcnt=!defof vcnt in $votedir/$t.votes
!default vcnt=0
!if $wims_user!=supervisor
!if $vote_status iswordof 1 2
$table_tr<td>
!href cmd=reply&job=read&vote=$t $vote_title
</td><td>
!if $vote_show>0
<td align="center">$vcnt</td>
<td>$(name_$vote_status), $(name_$vote_option)
!else
<td> </td>
<td>$(name_$vote_status), $(name_$vote_option)</td>
!endif
</td></tr>
!endif
!else
$table_tr<td>
$vote_title
</td>
<td align="center">$vcnt</td>
<td><small>$(name_$vote_status), $(name_$vote_option)</small>
</td><td>
!href cmd=reply&job=read&vote=$t $wims_name_Show
!href cmd=reply&job=edit&vote=$t $wims_name_change
!href cmd=reply&job=csv&vote=$t $wims_name_csv
</td>
!endif
$table_end
<p>
!endif
!if $wims_user=supervisor
!set wims_menu_items=!append line add_vote,1,cmd=reply&job=creat\
to $wims_menu_items
!endif