FS/FS/pbx_extension.pm
[freeside.git] / httemplate / elements / tr-pbx_extension.html
diff --git a/httemplate/elements/tr-pbx_extension.html b/httemplate/elements/tr-pbx_extension.html
new file mode 100644 (file)
index 0000000..a9d640d
--- /dev/null
@@ -0,0 +1,24 @@
+%   unless ( $opt{'js_only'} ) {                                                
+                                                                                
+      <% include('tr-td-label.html', %opt) %>                                   
+        <TD <% $cell_style %>>                                                  
+                                                                                
+%   }                                                                           
+%                                                                               
+            <% include( '/elements/pbx_extension.html', %opt ) %>                     
+%                                                                               
+%   unless ( $opt{'js_only'} ) {                                                
+                                                                                
+        </TD>                                                                   
+      </TR>                                                                     
+                                                                                
+%   }                                                                           
+<%init>                                                                         
+                                                                                
+my( %opt ) = @_;                                                                
+                                                                                
+my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';  
+                                                                                
+$opt{'label'} ||= 'Extension';                                                    
+                                                                                
+</%init>