Sha256: 1cd3c5ece04d163fcd6799a62bdca1aaed95cb0520e489e9a4d8acf8536d352a

Contents?: true

Size: 1.31 KB

Versions: 148

Compression:

Stored size: 1.31 KB

Contents

/ This is the send message modal dialog content
= simple_form_for form,
                html: { autocomplete: "off" },
                remote: true,
                as: :internal_message,
                url: messaging_internal_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

148 entries across 148 versions & 1 rubygems

Version Path
renalware-core-2.0.147 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.146 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.145 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.144 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.143 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.142 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.141 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.140 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.139 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.138 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.137 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.136 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.135 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.134 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.133 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.132 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.131 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.130 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.129 app/views/renalware/messaging/internal/messages/_form.html.slim
renalware-core-2.0.128 app/views/renalware/messaging/internal/messages/_form.html.slim