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.136 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.135 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.134 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.133 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.132 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.131 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.130 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.129 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.128 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.127 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.126 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.125 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.124 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.123 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.121 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.120 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.119 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.118 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.117 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.116 app/views/renalware/events/events/_form.html.slim