Sha256: ec12ec4ac7ff2e170bd92b606efb519296aaacc1df02b9875012a8c1fd039b2f

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

/ This is the send message modal dialog content
= simple_form_for form,
                html: { autocomplete: "off"},
                remote: true,
                url: messaging_messages_path(patient_id: patient) do |f|
    h2= t(".title")
    =f.input :replying_to_message_id, as: :hidden

    / NB the inline styling here prevents an initial flash and re-jiggle of dropdown content which
    / is subsequently hidden by select2 after 100 ms or so.
    =f.input :recipient_ids,
             label: t(".recipient_ids"),
             collection: recipient_options,
             as: :grouped_select,
             group_method: :users,
             group_label_method: :name,
             label_method: :to_s,
             value_method: :id,
             input_html: { class: "searchable_select",
                           id: "message_recipient_ids",
                           multiple: "multiple",
                           style: "visibility: hidden; height: 2.5rem" }
    =f.input :subject
    =f.input :urgent, as: :boolean, boolean_style: :inline
    =f.input :body, as: :text, input_html: { rows: 7 }
    =f.submit "Send", class: :button
    span= " or "
    =link_to t(".cancel"),
             "#",
             "aria-label" => "Close",
             class: "reveal-modal-close"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta7 app/views/renalware/messaging/messages/_form.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/messaging/messages/_form.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/messaging/messages/_form.html.slim