Sha256: da33e4cd001d5945ef85bc5b4fca833fa876d3ea110869d772a06c4179156674

Contents?: true

Size: 1.66 KB

Versions: 3

Compression:

Stored size: 1.66 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_for_receptionists, 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.small-12
      = render "table", letters: letters, q: q

/ The modal dialog container for the dialog which will ask the user
/ if they want to mark the letter as printed. We load this dialog via ajax.
/ See letters/completed_letters/new.html.slim for th dialog content.
/ See also
/ - letters/completed_letters/create.js.erb
/ - ./show.js.erb
/ - letters.js
/ for the complete works. Using ujs for these sort of dialog -> -> post -> page refresh
/ cycles is a bit complex and we could move to using something like stimulus
/ to keep thing a bit simpler
#letter-print-modal.reveal-modal.small(data-reveal data-refresh-url=request.original_fullpath)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.1 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0 app/views/renalware/letters/lists/show.html.slim
renalware-core-2.0.0.pre.rc13 app/views/renalware/letters/lists/show.html.slim