Sha256: b25f225210d55fa194f17169f3e162eb865aa7bf6c7f9b310e1be34e09eaf154

Contents?: true

Size: 894 Bytes

Versions: 50

Compression:

Stored size: 894 Bytes

Contents

- form_id = SecureRandom.hex(16)
= simple_form_for(slot,
                  html: { id: form_id },
                  url: hd_scheduling_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

50 entries across 50 versions & 1 rubygems

Version Path
renalware-core-2.0.167 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.166 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.165 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.164 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.163 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.162 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.161 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.160 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.159 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.158 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.157 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.156 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.155 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.153 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.152 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.151 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.149 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.148 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.147 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim
renalware-core-2.0.146 app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim