Sha256: 190156af976adbe287a7edf0e38de779cd116ca567fc28a42d4f70ae6f7a0fd1

Contents?: true

Size: 879 Bytes

Versions: 3

Compression:

Stored size: 879 Bytes

Contents

- form_id = SecureRandom.hex(16)
= simple_form_for(slot,
                  html: { id: form_id },
                  url: hd_diary_slot_path(weekly_diary.id, slot),
                  remote: true,
                  wrapper: :horizontal_form) do |f|

  -if scheduled_only
    =f.input :patient_id,
             collection: patients,
             label_method: ->(item){ item.to_s(:long) },
             value_method: :id,
             input_html: { class: "searchable_select" }
  - else
    = f.input :patient_id,
              collection: [],
              input_html: { \
                id: "patient-ajax-search",
                data: { "ajax--url" => search_patients_path(format: :json) }\
              }

  =f.submit "Select", class: :button
  = blank_separator
  =link_to "Cancel",
           "#",
           "aria-label" => "Close",
           class: "reveal-modal-close"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta12 app/views/renalware/hd/diary_slots/_tab.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/hd/diary_slots/_tab.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/hd/diary_slots/_tab.html.slim