Link to marketing/broken/{forlife} instead of marketing/broken/uid
[platal.git] / templates / survey / show_root.tpl
CommitLineData
c144f2e5 1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2007 Polytechnique.org *}
4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
56c6950a 22
3d8decf9 23<h1>Sondage : {$survey.title}</h1>
0f396347 24<form action="survey/vote{if $survey_votemode}/{$survey.id}{/if}" method='post'>
25<table style="width: 100%">
26 <tr>
27 <td>
28 <table class="bicol">
29 <tr class="pair">
30 <td colspan="2">{$survey.description}</td>
31 </tr>
32 <tr>
33 <td class="titre">Fin du sondage :</td>
34 <td>{$survey.end|date_format:"%x"}</td>
35 </tr>
36 <tr>
37 <td class="titre">Type de sondage :</td>
38 <td>{$survey_modes[$survey.mode]}</td>
39 </tr>
40 {if $survey.mode != Survey::MODE_ALL}
41 <tr>
42 <td class="titre">Promotions :</td>
43 <td>
44 {if $survey.promos eq "#"}
45 erreur
46 {elseif $survey.promos eq ""}
47 aucune restriction
48 {else}
49 {$survey.promos}
50 {/if}
51 </td>
52 </tr>
53 {/if}
54 {if $survey_warning}
55 <tr class="pair">
56 <td colspan="2">{$survey_warning}</td>
57 </tr>
58 {/if}
59 </table>
60 {if $survey_resultmode}
61 <p class="smaller">{$survey.votes} personnes ont r&#233;pondu &#224; ce sondage.<br />
62 R&#233;cup&#233;rer <a href="survey/result/{$survey.id}/csv">l'ensemble des r&#233;sultats</a> au format csv
63 </p>
64 {/if}
65 </td>
66 {if $survey_editmode}
67 {assign var="survey_rooteditmode" value=true}
68 {if $survey.valid}
69 {assign var="survey_editmode" value=false}
70 {/if}
71 {/if}
72 {if $survey_editmode}
73 <td>
74 {if $survey_rooteditmode}<a href='survey/edit/question/root'>{icon name=page_edit} Modifier la description</a><br />{/if}
75 <a href='survey/edit/add/0'>{icon name=add} Ajouter une question au d&#233;but</a>
76 </td>
77 {/if}
78 </tr>
79 {if is_array($survey.questions)}
3d8decf9 80 {foreach from=$survey.questions item=squestion}
0f396347 81 <tr>
82 <td>
83 {include file='survey/show_question.tpl' squestion=$squestion}
84 </td>
3d8decf9 85 {if $survey_editmode}
0f396347 86 <td>
87 <a href='survey/edit/question/{$squestion.id}'>{icon name=page_edit} Modifier cette question</a><br />
88 <a href='survey/edit/del/{$squestion.id}'>{icon name=delete} Supprimer cette question</a><br />
89 <a href='survey/edit/add/{$squestion.id+1}'>{icon name=add} Ajouter une question apr&#232;s</a>
90 </td>
3d8decf9 91 {/if}
0f396347 92 </tr>
56c6950a 93 {/foreach}
0f396347 94 {/if}
95</table>
96<p class="center">
97 {if $survey_rooteditmode}
98 <a href='survey/edit/valid'>
99 {icon name=tick}
100 {if $survey_updatemode}Enregistrer les modifications{else}Proposer ce sondage{/if}
101 </a> |
102 <a href='survey/edit/cancel'>
103 {icon name=cross} Annuler
104 {if $survey_updatemode}les modifications{else}totalement la cr&#233;ation de ce sondage{/if}
105 </a>
106 {elseif $survey_adminmode}
107 {if !$survey.valid}<a href="survey/admin/valid/{$survey.id}">Valider ce sondage</a> | {/if}
108 <a href="survey/admin/edit/{$survey.id}">{icon name=tick} Modifier ce sondage</a> |
109 <a href="survey/admin/del/{$survey.id}">{icon name=cross} Supprimer ce sondage</a> |
110 <a href="survey/admin">Retour</a>
111 {elseif $survey_votemode}
112 <input type='submit' name='survey_submit' value='Voter'/>
113 <input type='submit' name='survey_cancel' value='Annuler'/>
114 {else}
115 <a href="survey">Retour</a>
116 {/if}
117</p>
3d8decf9 118</form>
c144f2e5 119
8b0fa81e 120{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}