Merge branch 'xorg/maint' into xorg/master
[platal.git] / templates / survey / show_root.tpl
index 0b18177..ca606fd 100644 (file)
       <tr>
         <td class="titre">Promotions&nbsp;:</td>
         <td>
-          {if $survey.promos eq "#"} 
+          {if $survey.promos eq "#"}
           <span class="erreur">erreur</span>
-          {elseif $survey.promos eq ""} 
-          aucune restriction 
-          {else} 
-          {$survey.promos} 
+          {elseif $survey.promos eq ""}
+          aucune restriction
+          {else}
+          {$survey.promos}
           {/if}
         </td>
       </tr>
@@ -91,7 +91,7 @@
   {/if}
 </table>
 <p class="center">
-  {if $survey_editmode && !$survey_updatemode}
+  {if $smarty.session.survey_validate || ($survey_editmode && !$survey_updatemode)}
   <a href='survey/edit/valid'>
     {icon name=tick}
     Proposer ce sondage