Sha256: a80e99fa8a3c2cfc3c8d1e42e7269908549d6ea1bfc7660599b2a1aff9c24833

Contents?: true

Size: 1.3 KB

Versions: 10

Compression:

Stored size: 1.3 KB

Contents

= within_new_admin_layout(title: "Request Form Print History") do
  .row
    .search-form
      fieldset
        legend Filters
        = simple_form_for query,
            as: :q,
            url: pathology_requests_requests_path,
            html: { autocomplete: "off" },
            method: :get do |f|
          .row
            .large-4.columns
              = f.input :created_on_eq, as: :date_picker, label: "Printed on"
            .large-8.columns.actions
              = f.submit t("helpers.submit.filter"), class: "button"
              span= " or "
              = link_to t("helpers.reset"), pathology_requests_requests_path

  .row
    - if requests.empty?
      p No requests forms have been printed yet.
    - else
      table#requests
        thead
          tr
            th
            th Patient
            th Clinic
            th Consultant
            th Printed On
            th Printed By

        tbody
          - requests.each do |request|
            tr
              td = link_to "View", pathology_requests_request_path(id: request.id, format: "pdf")
              td = request.patient.full_name
              td = request.clinic.name
              td = request.consultant
              td = I18n.l request.printed_on
              td = request.created_by.full_name

      = paginate requests

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
renalware-core-2.0.147 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.146 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.145 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.144 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.143 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.142 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.141 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.140 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.139 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.138 app/views/renalware/pathology/requests/requests/index.html.slim