Sha256: 762b8a108bd4e8608b25a8993676fb8759a198d3b3916d0e8bbfd48bd2cd6c32

Contents?: true

Size: 1.3 KB

Versions: 101

Compression:

Stored size: 1.3 KB

Contents

= within_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.full_name
              td = I18n.l request.printed_on
              td = request.created_by.full_name

      = paginate requests

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
renalware-core-2.0.44 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.43 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.42 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.41 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.40 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.39 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.38 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.37 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.36 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.35 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.34 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.33 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.32 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.31 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.30 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.28 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.27 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.26 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.25 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.24 app/views/renalware/pathology/requests/requests/index.html.slim