Community letter: update article submission limitations
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fri, 10 Jan 2014 18:22:05 +0000 (19:22 +0100)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fri, 10 Jan 2014 18:22:05 +0000 (19:22 +0100)
Limiting to 4 lines was too strict

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
include/comletter.inc.php
templates/comletter/submit.tpl

index 25efeea..9e228b0 100644 (file)
@@ -24,7 +24,7 @@
 class ComLArticle
 {
     // Maximum number of lines per article, as wanted by the NL master
-    const MAX_LINES_PER_ARTICLE = 4;
+    const MAX_LINES_PER_ARTICLE = 8;
     const MAX_CHARACTERS_PER_LINE = 68;
 
     // {{{ properties
index f086bb9..35af36b 100644 (file)
@@ -40,7 +40,7 @@ Nous te recontacterons éventuellement si nous avons des renseignements à te de
 {if !$art->check()}
 <p class='erreur'>
 L'article que tu as proposé est trop long&nbsp;!<br />
-Il te faut te limiter à 4 lignes de 68 caractères.
+Il te faut te limiter à 8 lignes de 68 caractères.
 </p>
 {/if}
 
@@ -105,7 +105,7 @@ Tu peux <a href='comletter/submit#conseils'>lire les conseils de rédaction</a>
       <td>
         <textarea onchange="{literal}$.post('comletter/remaining/', {'body': this.value}, function(data) {$('#remaining').html(data)}){/literal}"
                   onkeyup="{literal}$.post('comletter/remaining/', {'body': this.value}, function(data) {$('#remaining').html(data)}){/literal}"
-                  cols="68" rows="4" name="body" >{if t($art)}{$art->body()}{/if}</textarea>
+                  cols="68" rows="8" name="body" >{if t($art)}{$art->body()}{/if}</textarea>
       </td>
     </tr>
     <tr class="pair">