Sha256: 62a425f23e69f50a0a0245f55111a25461272f6a6267e525af883e9f73b4822c

Contents?: true

Size: 1.42 KB

Versions: 28

Compression:

Stored size: 1.42 KB

Contents

- @page_title = t('workarea.admin.reports.sales_by_tender.title')

.view
  .view__header
    .view__heading
      = link_to "↑ #{t('workarea.admin.reports.all_reports')}", reports_dashboards_path
      %h1.heading.heading--no-margin= t('workarea.admin.reports.sales_by_tender.title')
      %p= t('workarea.admin.reports.reference_link_html', path: reference_report_path)

  .view__container.view__container--narrow
    .browsing-controls.browsing-controls--with-divider.browsing-controls--center.browsing-controls--filters-displayed
      = form_tag sales_by_tender_report_path, method: 'get', class: 'browsing-controls__form' do
        = render 'workarea/admin/shared/date_selector', starts_at: @report.starts_at, ends_at: @report.ends_at

      .browsing-controls__count
        = render_reports_results_message(@report)
        = render 'workarea/admin/reports/export', report: @report

    %table
      %thead
        %tr
          %th= t('workarea.admin.fields.tender')
          %th.align-center= link_to_reports_sorting t('workarea.admin.fields.orders'), report: @report, sort_by: 'orders'
          %th.align-right= link_to_reports_sorting t('workarea.admin.fields.revenue'), report: @report, sort_by: 'revenue'
      %tbody
        - @report.results.each do |result|
          %tr
            %td= result.name
            %td.align-center= number_with_delimiter result.orders
            %td.align-right= number_to_currency(result.revenue)

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.26 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.25 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.23 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.22 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.21 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.20 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.19 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.15 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.14 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.13 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.12 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.11 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.10 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.9 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.8 app/views/workarea/admin/reports/sales_by_tender.html.haml
workarea-admin-3.5.7 app/views/workarea/admin/reports/sales_by_tender.html.haml