[freeside-commits] freeside/httemplate/search/elements search-html.html, 1.12, 1.13

Ivan,,, ivan at wavetail.420.am
Fri Oct 14 01:56:06 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail.420.am:/tmp/cvs-serv13344/httemplate/search/elements

Modified Files:
	search-html.html 
Log Message:
maintain freeradius nas table, RT#14697

Index: search-html.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/search-html.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -d -r1.12 -r1.13
--- search-html.html	18 Aug 2011 22:55:17 -0000	1.12
+++ search-html.html	14 Oct 2011 08:56:04 -0000	1.13
@@ -29,27 +29,13 @@
 %       }
 %     }
 %
+%     unless ( $opt{nohtmlheader} ) {
+%
 %     if ( $type eq 'html-print' ) {
-
-        <% $opt{nohtmlheader}
-             ? ''
-             : include( '/elements/header-popup.html', $opt{'title'} )
-        %>
-
-%     } elsif ( $type eq 'select' ) {
-
-        <% $opt{nohtmlheader}
-             ? ''
-             : include( '/elements/header-popup.html', $opt{'title'} )
-        %>
-        <% defined($opt{'html_init'}) 
-              ? ( ref($opt{'html_init'})
-                    ? &{$opt{'html_init'}}()
-                    : $opt{'html_init'}
-                )
-              : ''
-        %>
-
+          <& /elements/header-popup.html, $opt{'title'} &>
+%       } else {
+%         if ( $type eq 'select' ) {
+            <&/elements/header-popup.html, $opt{'title'} &>
 %     } else {
 %
 %       my @menubar = ();
@@ -59,12 +45,20 @@
 %       #  @menubar = ( 'Main menu' => $p );
 %       }
 
-        <% $opt{nohtmlheader}
-             ? ''
-             : include( '/elements/header.html', $opt{'title'},
+            <& /elements/header.html, $opt{'title'},
                           include( '/elements/menubar.html', @menubar )
-                      )
-        %>
+            &>
+
+%         }
+%       }
+%
+%     }
+%
+%     unless ( $type eq 'html-print' ) {
+
+%       if ( $opt{'add_link'} ) { #or after html_init?
+          <A HREF="<%$p%>edit/<% $opt{query}->{table} %>.html"><I>Add a <% $opt{'name_singular'} %></I></A><BR><BR>
+%       }
 
         <% defined($opt{'html_init'}) 
               ? ( ref($opt{'html_init'})



More information about the freeside-commits mailing list