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