2023-10-26 06:33:44 +09:00
|
|
|
- progress_index = { rules: 0, details: 1, confirm: 2, confirmed: 3, completed: 4 }[stage.to_sym]
|
2023-04-16 14:01:24 +09:00
|
|
|
|
|
|
|
%ol.progress-tracker
|
|
|
|
%li{ class: progress_index.positive? ? 'completed' : 'active' }
|
|
|
|
.circle
|
|
|
|
- if progress_index.positive?
|
|
|
|
= check_icon
|
|
|
|
.label= t('auth.progress.rules')
|
|
|
|
%li.separator{ class: progress_index.positive? ? 'completed' : nil }
|
|
|
|
%li{ class: [progress_index > 1 && 'completed', progress_index == 1 && 'active'] }
|
|
|
|
.circle
|
|
|
|
- if progress_index > 1
|
|
|
|
= check_icon
|
|
|
|
.label= t('auth.progress.details')
|
|
|
|
%li.separator{ class: progress_index > 1 ? 'completed' : nil }
|
|
|
|
%li{ class: [progress_index > 2 && 'completed', progress_index == 2 && 'active'] }
|
|
|
|
.circle
|
|
|
|
- if progress_index > 2
|
|
|
|
= check_icon
|
|
|
|
.label= t('auth.progress.confirm')
|
|
|
|
- if approved_registrations?
|
|
|
|
%li.separator{ class: progress_index > 2 ? 'completed' : nil }
|
2023-10-26 06:33:44 +09:00
|
|
|
%li{ class: [progress_index > 3 && 'completed', progress_index == 3 && 'active'] }
|
2023-04-16 14:01:24 +09:00
|
|
|
.circle
|
2023-10-26 06:33:44 +09:00
|
|
|
- if progress_index > 3
|
|
|
|
= check_icon
|
2023-04-16 14:01:24 +09:00
|
|
|
.label= t('auth.progress.review')
|