Sha256: cf6694c9d908f165ae843b81381815a7f5590256bb59a6322651756ba82ac37a

Contents?: true

Size: 1.93 KB

Versions: 10

Compression:

Stored size: 1.93 KB

Contents

= within_admin_layout(title: "Letters") do

  .search-form.filters
      = simple_form_for q,
                        as: :q,
                        url: letters_list_path,
                        html: { autocomplete: "off" },
                        method: :get do |f|
        .row
          .small-6.medium-1.large-1.columns
            = f.input :enclosures_present, as: :select, label: "Enclosure"
          .small-6.medium-3.large-2.columns
            = f.input :state_eq, collection: state_options, label: "State"
          .small-6.medium-3.large-2.columns
            = f.input :author_id_eq, as: :user_picker, collection: authors, label: "Author"
          .small-6.medium-3.large-2.columns
            = f.input :created_by_id_eq, as: :user_picker, collection: typists, label: "Typist"
          .small-12.medium-2.large-4.columns.actions.end
            = f.submit t("helpers.submit.filter"), class: "button"
            span= " or "
            = link_to t("helpers.reset"), letters_list_path

  .row
    .columns
      = button_to "/", class: "button secondary" do
        i.fa.fa-print
        | Print All

  .row
    .columns.small-12
      table.report.letters
        thead
          tr
            th.noprint
            th Type
            th= sort_link([:renalware, q], :type, "State")
            th.col-width-medium= sort_link([:renalware, q], :patient_family_name, "Patient")
            th.col-width-nhs-no= sort_link([:renalware, q], :patient_nhs_number, "NHS No")
            th= sort_link([:renalware, q], :enclosures, "Enc.")
            th.col-width-date = sort_link([:renalware, q], :issued_on, "Date", default_order: :desc)
            th= sort_link([:renalware, q], :author_family_name, "Author")
            th= sort_link([:renalware, q], :created_by_family_name, "Typist")
            th.col-width-small Recipient
            th Description
        tbody
          = render partial: "letter", collection: letters

      = paginate letters

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc10 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc9 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc6 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc3 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/letters/lists/show.html.slim