[Koha-patches] [PATCH] Factor common element out of both sides of conditional.

Joe Atzberger joe.atzberger at liblime.com
Wed Apr 8 00:37:53 CEST 2009


Add placeholder complaint about misuse of TMPL EXPR statements.
---
 .../prog/en/modules/suggestion/acceptorreject.tmpl |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl
index 430a706..638c5bc 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl
@@ -135,11 +135,9 @@
             <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>
@@ -167,7 +165,6 @@
                 <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>
@@ -187,9 +184,9 @@
 			
                 </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-->            
@@ -197,7 +194,6 @@
             <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-->            
-- 
1.5.6.5




More information about the Koha-patches mailing list