mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-17 00:07:24 +00:00
You can reach a development server under localhost, 127.0.0.1, 0.0.0.0 or other names you define in your environment. The reports were using absolute links to localhost though and therefore breaking your session (login) while navigating. I'm not sure why this was done though. Sebastian didn't explain this in the commit message and it may have been accidental.
26 lines
814 B
Plaintext
26 lines
814 B
Plaintext
- content_for :page_title do
|
|
= @report_title
|
|
|
|
= form_for @report.search, :url => url_for do |f|
|
|
%fieldset.no-border-bottom.print-hidden
|
|
%legend{ align: 'center'}= t(:report_filters)
|
|
= render partial: "admin/reports/filters/#{@report_type}", locals: { f: f }
|
|
|
|
%fieldset.print-hidden
|
|
%legend{ align: 'center'}= t(:report_render_options)
|
|
= render partial: "rendering_options"
|
|
|
|
.actions.filter-actions
|
|
= button t(:go), "report__submit-btn"
|
|
|
|
.report__header.print-hidden
|
|
- if @report.message.present?
|
|
%p.report__message= @report.message
|
|
- if request.post?
|
|
%button.btn-print.icon-print{ onclick: "window.print()"}= t(:report_print)
|
|
|
|
/ We don't want to render data unless search params are supplied.
|
|
/ Compiling data can take a long time.
|
|
- if request.post?
|
|
= render "table"
|