Sha256: ce77560b90860b6d326260fb321a719c54706d370157362c008e9cb82bc2a0e8

Contents?: true

Size: 1.21 KB

Versions: 129

Compression:

Stored size: 1.21 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: event.to_input_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

129 entries across 129 versions & 1 rubygems

Version Path
renalware-core-2.0.115 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.113 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.112 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.111 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.110 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.109 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.108 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.106 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.105 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.104 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.103 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.102 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.101 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.100 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.99 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.98 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.97 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.96 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.95 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.94 app/views/renalware/events/events/_form.html.slim