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.73 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.72 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.71 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.70 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.69 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.68 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.67 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.64 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.63 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.62 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.61 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.60 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.58 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.57 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.56 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.55 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.54 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.53 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.52 app/views/renalware/events/events/_form.html.slim
renalware-core-2.0.51 app/views/renalware/events/events/_form.html.slim