Sprankelprachtig aan/afmeldsysteem

_mobile_participant_row.html.haml 742B

12345678910111213141516
  1. - p = participant
  2. - all_buttons = show_all_buttons
  3. %tr.participant-row{data: {person_id: p.person.id, activity_id: @activity.id, subgroup_id: p.subgroup_id}}
  4. %td
  5. = p.person.full_name
  6. - if p.is_organizer
  7. %i.far.fa-star
  8. %td
  9. - if p.person.id == current_person.id || all_buttons
  10. = render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending}
  11. %tr.participant-row{data: {person_id: p.person_id, activity_id: @activity.id, subgroup_id: p.subgroup_id}}
  12. %td{colspan: "2"}
  13. = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: t('activities.participant.notes'), value: p.notes, emptytext: "--"