Sha256: f404f7dcef949941ab91cb4bc4de693000773fce92f49e0469eec8450237864a

Contents?: true

Size: 839 Bytes

Versions: 40

Compression:

Stored size: 839 Bytes

Contents

<%= content_tag(:div,
  id: object.id,
  data: object.data,
  class: object.classname) do %>
  <%= pb_rails("person", props: {
      first_name: object.first_name,
      last_name: object.last_name,
  }) %>
  <% object.valid_contacts.each do |contact| %>
    <%= pb_rails("contact", props: {
        contact_type: contact[:contact_type],
        contact_value: contact[:contact_value],
        contact_detail: contact[:contact_detail],
    }) %>
  <% end %>
  <% if object.wrong_contacts.present? %>
    <%= pb_rails("caption", props: { classname: "wrong_numbers", text: "wrong number" }) %>

    <% object.wrong_contacts.each do |wrong_number| %>
      <%= pb_rails("contact", props: {
        contact_type: wrong_number[:contact_type],
        contact_value: wrong_number[:contact_value],
      }) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
playbook_ui-4.6.1 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.6.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.5.2 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.5.1 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.5.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.4.1 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.4.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.3.1 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.3.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.2.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.1.2 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.1.1 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.1.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.0.1 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-4.0.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-3.5.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-3.4.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-3.3.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-3.2.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb
playbook_ui-3.1.0 app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb