Sha256: 964b6a375c503cbf2dae29a1a0fdaa1927d45af0685333e86762cf8794dfc912

Contents?: true

Size: 1.74 KB

Versions: 37

Compression:

Stored size: 1.74 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-12
        - if patient.primary_care_physician.nil? || patient.practice.nil?
          .panel
            | No option to send to GP as patient is missing a practice or GP

        = 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

37 entries across 37 versions & 1 rubygems

Version Path
renalware-core-2.0.46 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.45 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.44 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.43 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.42 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.41 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.40 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.39 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.38 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.37 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.36 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.35 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.34 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.33 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.32 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.31 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.30 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.28 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.27 app/views/renalware/letters/letters/_main_recipient.html.slim
renalware-core-2.0.26 app/views/renalware/letters/letters/_main_recipient.html.slim