Sha256: 28043258d10dc97359948bd3b6dc35523087a1d5d557b6d0935245e6d66a5e1d

Contents?: true

Size: 1.25 KB

Versions: 11

Compression:

Stored size: 1.25 KB

Contents

= simple_form_for event,
    url: patient_events_path(patient, event),
    as: :events_event,
    html: { autocomplete: "off" },
    wrapper: "horizontal_form" do |f|

  = f.input :date_time,
            as: :datetime_picker,
            wrapper: :horizontal_datepicker

  = f.input :disable_selection_of_event_type, as: :hidden

  - if event.disable_selection_of_event_type
    = f.input :event_type_id, as: :hidden
  - else
    = f.input :event_type_id,
              collection: event_types,
              wrapper: :horizontal_medium,
              input_html: { id: "event-type-dropdown",
                            class: "searchable_select",
                            required: :required,
                            tabindex: 2001 }

  / The contents of this div will get replaced if a user selects an alternative
  / event type in the drop-down above. See events.js.
  #event-type-specific-inputs
    = render partial: "renalware/events/events/inputs/#{event.to_partial_path}",
             locals: { event: event, f: f }

  = f.label :notes
  = snippets_modal_and_link_to_open_it(target_input_for_seleted_snippet: ".event-notes")
  = f.trix_editor :notes, class: "event-notes"
  br

  = submit_tag "Save", class: "button"
  span= " or "
  = link_to "Cancel", return_url

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc9 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.rc6 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.rc3 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.beta12 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/events/events/_form.html.slim