Sprankelprachtig aan/afmeldsysteem

_wide_presence_buttons.haml 661B

1234567891011121314151617
  1. .btn-group.btn-group-justified{role: "group"}
  2. .btn-group
  3. %button.btn.btn-success.btn-present.btn-presence{data: {wide: 1, person_id: person.id, activity_id: activity.id, group_id: activity.group.id, new_state: "present"}}
  4. - if !state
  5. %i.fas.fa-check
  6. - else
  7. %i.fas.fa-check-circle
  8. = t 'activities.state.present'
  9. .btn-group
  10. %button.btn.btn-danger.btn-absent.btn-presence{data: {wide: 1, person_id: person.id, activity_id: activity.id, group_id: activity.group.id, new_state: "absent"}}
  11. - if state == false
  12. %i.fas.fa-times-circle
  13. - else
  14. %i.fas.fa-times
  15. = t 'activities.state.absent'