-<h1>Sondage : {$survey.question}</h1>
-{if $survey.comment != ''}
- {$survey.comment}
-{/if}
-<br/>Fin du sondage :
-{if $survey.end eq "#"}
- erreur
-{else}
- {$survey.end|date_format:"%x"}
-{/if}
-<br/>Réservé aux promotions :
-{if $survey.promos eq "#"}
- erreur
-{elseif $survey.promos eq ""}
- aucune restriction
-{else}
- {$survey.promos}
-{/if}
-<br/>
-{if $survey_editmode}
- {assign var="survey_rooteditmode" value=true}
- {if $survey.valid}
- {assign var="survey_editmode" value=false}
- {/if}
-{/if}
-{if $survey_rooteditmode}<a href='./survey/edit/question/{$survey.id}'>Modifier la racine</a>{/if}
-{if $survey_editmode} | <a href='./survey/edit/nested/{$survey.id}'>Ajouter une question au début</a>{/if}
-{if is_array($survey.children)}
- {foreach from=$survey.children item=child}
- {include file='survey/show_question.tpl' survey=$child recursive=true}
- {foreachelse}
- <br/>
+<h1>Sondage : {$survey.title}</h1>
+<form action="survey/vote{if $survey_votemode}/{$survey.id}{/if}" method='post'>
+<table style="width: 100%">
+ <tr>
+ <td>
+ <table class="bicol">
+ <tr class="pair">
+ <td colspan="2">{$survey.description|miniwiki|smarty:nodefaults}</td>
+ </tr>
+ <tr>
+ <td class="titre">Fin du sondage :</td>
+ <td>{$survey.end|date_format:"%x"}</td>
+ </tr>
+ <tr>
+ <td class="titre">Type de sondage :</td>
+ <td>{$survey_modes[$survey.mode]}</td>
+ </tr>
+ {if $survey.mode != Survey::MODE_ALL}
+ <tr>
+ <td class="titre">Promotions :</td>
+ <td>
+ {if $survey.promos eq "#"}
+ <span class="erreur">erreur</span>
+ {elseif $survey.promos eq ""}
+ aucune restriction
+ {else}
+ {$survey.promos}
+ {/if}
+ </td>
+ </tr>
+ {/if}
+ {if $survey_warning}
+ <tr class="pair">
+ <td colspan="2">{$survey_warning}</td>
+ </tr>
+ {/if}
+ </table>
+ {if $survey_resultmode}
+ <p class="smaller">{$survey.votes} personnes ont répondu à ce sondage.<br />
+ Récupérer <a href="survey/result/{$survey.id}/csv">l'ensemble des résultats</a> au format csv
+ </p>
+ {/if}
+ </td>
+ {if $survey_editmode && !$survey.valid}
+ {assign var="survey_editallmode" value=true}
+ {/if}
+ {if $survey_editmode}
+ <td style="width: 30%">
+ <a href='survey/edit/question/root'>{icon name=page_edit} Modifier la description</a>
+ {if $survey_editallmode}<br /><a href='survey/edit/add/0'>{icon name=add} Ajouter une question au début</a>{/if}
+ </td>
+ {/if}
+ </tr>
+ {if is_array($survey.questions)}
+ {foreach from=$survey.questions item=squestion}
+ <tr>
+ <td>
+ {include file='survey/show_question.tpl' squestion=$squestion}
+ </td>
+ {if $survey_editallmode}
+ <td class="smaller" style="width: 30%; vertical-align: middle">
+ <a href='survey/edit/question/{$squestion.id}'>{icon name=page_edit} Modifier cette question</a><br />
+ <a href='survey/edit/del/{$squestion.id}'>{icon name=delete} Supprimer cette question</a><br />
+ <a href='survey/edit/add/{$squestion.id+1}'>{icon name=add} Ajouter une question après</a>
+ </td>
+ {/if}
+ </tr>