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.109 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.108 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.106 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.105 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.104 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.103 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.102 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.101 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.100 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.99 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.98 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.97 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.96 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.95 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.94 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.93 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.92 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.91 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.90 app/views/renalware/pathology/requests/requests/index.html.slim
renalware-core-2.0.89 app/views/renalware/pathology/requests/requests/index.html.slim