app/views/groups/_officers_card.html.haml
- officer_groups ||= group.important_officer_groups
- officer_groups = group.officers_groups unless officer_groups.present?
.card
.card-body
.row
- officer_groups.each do |office|
- for officer in office.members
.col-sm-6.col-md-12.row.row-sm.mb-3.align-items-center
.col-auto
= user_avatar(officer)
.col
.text-body.d-block.user= officer.title
%small.d-block.mt-n1.text-muted= office.name
%small.d-block.mt-n1.text-muted.phone= officer.phone
- if email = office.email || officer.email
%small.d-block.mt-n1.text-muted.obscure-in-demo= email
- if group && can?(:update, group)
.card-footer
= link_to "Amtsträger ändern", group_officers_path(group_id: group.id), class: "btn btn-sm btn-white"