Rev 15753 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4142 | guerimand | 1 | $table_header |
2 | $table_hdtr |
||
3 | <th>$name_option</th><th>$name_value</th> |
||
4 | </tr> |
||
5 | $table_tr<td>$wims_name_title</td><td>$vote_title</td></tr> |
||
6 | $table_tr<td>$wims_name_Type</td> |
||
7 | <td>$(name_$(vote_option))</td> |
||
8 | </tr> |
||
9 | $table_tr |
||
10 | <td>$wims_name_Status</td> |
||
13607 | obado | 11 | <td class="wims_status_$vote_status">$(name_$(vote_status))</td> |
4142 | guerimand | 12 | </tr> |
13 | $table_tr |
||
14 | <td>$name_result</td> |
||
15 | <td> |
||
12479 | bpr | 16 | !item $vote_show+1 of $name_hide,$name_publish |
17 | !if $showres>0 |
||
18 | |
||
19 | !if $wims_user=supervisor or $(user_vote_$Vote)!=$empty |
||
20 | !set wims_ref_class=wims_button |
||
21 | !href cmd=reply&job=showresult&vote=$vote $name_showresult |
||
22 | !endif |
||
23 | |
||
24 | !if $wims_user=supervisor |
||
25 | !set wims_ref_class=wims_button |
||
26 | !href cmd=reply&job=csv $wims_name_csv |
||
27 | !endif |
||
28 | !endif |
||
4142 | guerimand | 29 | </td> |
30 | </tr> |
||
5368 | bpr | 31 | !!## list of voting names can be print even if there is few voters |
32 | !!## in case of nominative vote |
||
12479 | bpr | 33 | !if $vote_status > 0 and $vote_whovoteshow=1 |
34 | $table_tr<td>$name_thisvote_answer</td><td>$vcnt</td></tr> |
||
35 | !set nbs=!itemcnt $whovote |
||
36 | !if $nbs<=5 and $vote_option notwordof nominative |
||
37 | !!!if $vote_whovoteshow!=1 |
||
38 | !! !let aff=$name_hide2 |
||
39 | !!!else |
||
40 | !let aff=$name_notenough |
||
41 | !!!endif |
||
42 | $table_tr |
||
43 | <td>$name_whovote</td> |
||
44 | <td rowspan="2">$aff</td> |
||
45 | </tr> |
||
46 | $table_tr |
||
47 | <td>$name_whodontvote</td> |
||
48 | </tr> |
||
49 | !else |
||
50 | !for ty in whovote,whodontvote |
||
51 | $table_tr |
||
52 | <td>$(name_$ty)</td> |
||
53 | <td> |
||
5349 | guerimand | 54 | !let nb=!itemcnt $($ty) |
55 | !if $nb=0 |
||
12479 | bpr | 56 | $name_novotant |
5349 | guerimand | 57 | !else |
12479 | bpr | 58 | !replace internal , by , $ in $($ty) |
5349 | guerimand | 59 | !endif |
12479 | bpr | 60 | </td> |
61 | </tr> |
||
62 | !next ty |
||
63 | !endif |
||
5368 | bpr | 64 | !endif |
4142 | guerimand | 65 | $table_end |
23 | reyssat | 66 | |
67 | !if $wims_user=supervisor |
||
12479 | bpr | 68 | !if $wims_theme=default |
69 | !href cmd=reply&job=edit $wims_name_change |
||
7198 | bpr | 70 | |
12479 | bpr | 71 | !href cmd=reply&job=csv $wims_name_csv |
72 | !endif |
||
73 | !set wims_menu_items=!append line change,1,cmd=reply&job=edit&gstep=0\ |
||
74 | to $wims_menu_items |
||
2150 | guerimand | 75 | !endif |
76 | |||
23 | reyssat | 77 | !if $vote_status=2 |
13607 | obado | 78 | <div class="field box"> |
79 | !read $votedir/$vote.def |
||
80 | </div> |
||
12479 | bpr | 81 | !exit |
23 | reyssat | 82 | !endif |
83 | |||
84 | !if $(user_vote_$Vote)!=$empty |
||
12479 | bpr | 85 | !if $vote_option!=nominative |
13607 | obado | 86 | <div class="wims_msg success">$name_thisvote_already1</div> |
15753 | bpr | 87 | <div class="wims_msg info"> |
88 | !read $votedir/$vote.def |
||
89 | </div> |
||
12479 | bpr | 90 | !exit |
91 | !else |
||
13607 | obado | 92 | <div class="wims_msg info">$name_thisvote_already2</div> |
12479 | bpr | 93 | !goto form |
94 | !endif |
||
23 | reyssat | 95 | !else |
13607 | obado | 96 | <p>$name_give_your_choice</p> |
12479 | bpr | 97 | :form |
98 | !if $wims_user!=supervisor |
||
99 | !form reply |
||
17170 | bpr | 100 | <input type="hidden" name="job" value="vote"> |
12479 | bpr | 101 | !set m_formed=yes |
102 | !endif |
||
23 | reyssat | 103 | !endif |
104 | |||
13607 | obado | 105 | <div class="field box"> |
106 | !read $votedir/$vote.def |
||
107 | </div> |
||
23 | reyssat | 108 | |
4142 | guerimand | 109 | !if $m_formed=yes and $wims_user!=supervisor |
12479 | bpr | 110 | <p class="wimscenter wimsform"> |
17170 | bpr | 111 | <input type="submit" value="$wims_name_tosave"> |
12479 | bpr | 112 | </p> |
15753 | bpr | 113 | !formend |
23 | reyssat | 114 | !endif |
333 | bpr | 115 | |
5496 | bpr | 116 | !if $wims_user=supervisor and $vote_status=0 |
12479 | bpr | 117 | !form reply |
118 | <p class="wimscenter wimsform"> |
||
13607 | obado | 119 | !set wims_ref_class=wims_button wims_secondary_button |
12479 | bpr | 120 | !href cmd=reply&job=edit $wims_name_back2 |
121 | </p> |
||
122 | !formend |
||
5496 | bpr | 123 | !endif |