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.88 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.87 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.86 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.85 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.84 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.83 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.82 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.81 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.80 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.79 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.78 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.77 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.76 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.75 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.74 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.73 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.72 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.71 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.70 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.69 app/views/renalware/pathology/requests/requests/index.html.slim