Bug 8215: Followup FIX QA issues
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / course_reserves / course-details.tt
index 3c91065..72f41fe 100644 (file)
@@ -9,7 +9,7 @@
 //<![CDATA[
 
     function confirmItemDelete(){
-        return confirm( _('Are you sure you want to delete this item?');
+        return confirm( _("Are you sure you want to delete this item?"));
     }
 
 //]]>
@@ -39,7 +39,7 @@
                     });
 
                     function confirmDelete(p_oEvent){
-                        if ( ! confirm( _('Are you sure you want to delete this course?') ) ) {
+                        if ( ! confirm( _("Are you sure you want to delete this course?") ) ) {
                             YAHOO.util.Event.stopEvent( p_oEvent );
                         }
                     }
@@ -54,6 +54,7 @@
             </div><!-- /toolbar -->
 
             <table>
+              <tbody>
                 <tr><th>Course name</th><td>[% course.course_name %]</td></tr>
                 <tr><th>Term</th><td>[% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</td></tr>
                 <tr><th>Department</th><td>_[% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</td></tr>
                 <tr><th>Public note</th><td>[% course.public_note %]</td></tr>
                 <tr><th>Students count</th><td>[% course.students_count %]</td></tr>
                 <tr><th>Status</th><td>[% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]</td></tr>
+              </tbody>
             </table>
 
+            [% IF course_reserves %]
             <table>
                 <thead>
                     <tr>
                     [% END %]
                 </tbody>
             </table>
+            [% END %]
         </div>
     </div>
 </div>