|
|
@ -53,6 +53,7 @@ class Widget::Table::ReportTable < Widget::Table |
|
|
|
render_tfoot |
|
|
|
render_tfoot |
|
|
|
render_tbody |
|
|
|
render_tbody |
|
|
|
write "</table>" |
|
|
|
write "</table>" |
|
|
|
|
|
|
|
render_xls_export |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def render_tbody |
|
|
|
def render_tbody |
|
|
@ -130,6 +131,12 @@ class Widget::Table::ReportTable < Widget::Table |
|
|
|
write "</tfoot>" |
|
|
|
write "</tfoot>" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def render_xls_export |
|
|
|
|
|
|
|
write (content_tag :div, :id => "result-formats", :style => "font-size: 14px; line-height: 2;" do |
|
|
|
|
|
|
|
link_to l(:export_as_excel), :action => :index, :format => "xls" |
|
|
|
|
|
|
|
end) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def debug_content |
|
|
|
def debug_content |
|
|
|
content_tag :pre do |
|
|
|
content_tag :pre do |
|
|
|
debug_pre_content = "[ Query ]" + |
|
|
|
debug_pre_content = "[ Query ]" + |
|
|
|