Factor common element out of both sides of conditional.
authorJoe Atzberger <joe.atzberger@liblime.com>
Tue, 7 Apr 2009 22:37:53 +0000 (17:37 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 8 Apr 2009 17:30:33 +0000 (12:30 -0500)
Add placeholder complaint about misuse of TMPL EXPR statements.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl

index 430a706..638c5bc 100644 (file)
             <th>Suggestion</th>
             <th>Suggested by</th>
             <th>Date</th>
-    <!--TMPL_IF EXPR="suggestiontype ne 'pending'"-->
             <th>Reason</th>
+    <!--TMPL_IF EXPR="suggestiontype ne 'pending'"-->
             <th>Reason Update</th>
-    <!--TMPL_ELSE-->
-            <th>Reason</th>
     <!--/TMPL_IF -->         
             <th>Accept</th>
             <th>Reject</th>
                 <td>
                 <!--TMPL_VAR Name="reason"-->
       <input type="hidden" name="initial-reason<!-- TMPL_VAR name="suggestionid" -->" value="<!--TMPL_VAR Name="reason" ESCAPE="HTML"-->"  />
-      
                 </td>
     <!--/TMPL_IF -->
                 <td>
                        
                 </td>
                 <td>
+    <!-- These EXPR are NOT doing what the author thinks they are -->
     <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
                         <input id="a<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="ACCEPTED" readonly="readonly" checked="checked"  />
-    
     <!--TMPL_ELSE-->  
                         <input id="a<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="ACCEPTED" />
     <!--/TMPL_IF-->            
             <td>
     <!--TMPL_IF EXPR="suggestiontype eq 'rejected'"-->
                         <input id="r<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="REJECTED" readonly="readonly" checked="checked" />
-    
     <!--TMPL_ELSE-->  
                         <input id="r<!--TMPL_VAR name="suggestionid" -->"  name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="REJECTED" />
     <!--/TMPL_IF-->