Sha256: 5b5e474698a69bf02912420cac12e1cabe0f148be5eade5fd00f1c3a5f7626f3

Contents?: true

Size: 1.66 KB

Versions: 16

Compression:

Stored size: 1.66 KB

Contents

article
  header
    h2 Main Recipient

  = f.simple_fields_for :main_recipient do |fmr|

    .radio_buttons.row.optional.letter_main_recipient_person_role.field_with_hint
      .columns.small-3
        label.right.inline.radio_buttons.optional Recipient
      .columns.small-9

        = fmr.collection_radio_buttons(:person_role,
                                       f.object.person_roles,
                                       :second,
                                       :first,
                                       label: false) do |b|

          .radio
            = b.label { \
              b.radio_button(data: { salutation: b.object.last },
                             class: "radio_buttons recipient-person-role-picker has_salutation") \
                                    + b.text \
              }
        .hint=f.object.patient_cc_hint

    = fmr.input :id, as: :hidden

    div#contact-selector(style="display: none")
      #contact-selector-input
        = fmr.input :addressee_id,
                    as: :select,
                    collection: contacts.array_for_drop_down_with_options,
                    input_html: { :class => "containing_salutations" },
                    label: false,
                    include_blank: "-- Choose contact --"

      .row
        .small-offset-3.small-9.columns
          = link_to t(".add_contact"),
                    "#",
                    class: "tiny button",
                    data: { behaviour: "add-new-contact-as-main-recipient",
                            source: contact_added_patient_letters_letters_path(patient),
                            modal: "#add-patient-contact-modal" }
          br
          br

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
renalware-core-2.0.1 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc13 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc11 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc10 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc9 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc6 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc3 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.beta12 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/letters/letters/_main_recipient.html.slim