Skip to content

Commit 2123f16

Browse files
Show whether an activity is payable in the overview of activities for admin
1 parent f5f1c1d commit 2123f16

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

app/assets/stylesheets/cards.css

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
font-size: 30px;
2727
}
2828

29+
.size-small {
30+
font-size: 10px;
31+
}
32+
2933
.card .table {
3034
margin-bottom: 0;
3135
}

app/views/admin/activities/index.html.haml

+9
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,12 @@
4343
- else
4444
%td.d-none.d-md-block
4545
%span
46+
47+
%td
48+
- if activity.is_payable && activity.price != 0
49+
%span.badge.badge-success.size-small= I18n.t('admin.activities.is_payable')
50+
- elsif activity.price == 0
51+
%span.badge.badge-primary.size-small= I18n.t('admin.activities.free')
52+
- else
53+
%span.badge.badge-warning.size-small= I18n.t('admin.activities.is_not_payable')
54+

config/locales/admin.en.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
en:
33
admin:
44
activities:
5+
is_payable: Payable
6+
is_not_payable: Not payable
7+
free: Free
58
added_reservist: has been placed on the participants list
69
copy_wa_msg: Copy for WhatsApp
710
ended: Ended

config/locales/admin.nl.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
nl:
33
admin:
44
activities:
5+
is_payable: Betaalbaar
6+
is_not_payable: Niet betaalbaar
7+
free: Gratis
58
added_reservist: is op de deelnemerslijst geplaatst
69
copy_wa_msg: Kopieer voor WhatsApp
710
ended: Afgelopen

0 commit comments

Comments
 (0)