Skip to content

Commit

Permalink
Fixed inconsistent translations/plurals and billing tab UI improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Jun 16, 2024
1 parent 6f80f54 commit aebfffa
Show file tree
Hide file tree
Showing 10 changed files with 283 additions and 160 deletions.
2 changes: 1 addition & 1 deletion memberportal/api_admin_tools/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_object(self):
class PaymentPlan(ExportModelOperationsMixin("payment-plan"), models.Model):
"""A Membership Plan that specifies how a member is billed for a member tier."""

BILLING_PERIODS = [("Months", "month"), ("Weeks", "week"), ("Days", "days")]
BILLING_PERIODS = [("Month", "month"), ("Week", "week"), ("Day", "day")]

id = models.AutoField(primary_key=True)
name = models.CharField("Name", max_length=50)
Expand Down
2 changes: 1 addition & 1 deletion memberportal/profile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def get_basic_profile(self):
"full": self.get_full_name(),
},
"phone": self.phone,
"state": self.get_state_display(),
"state": self.state,
"vehicleRegistrationPlate": self.vehicle_registration_plate,
"rfid": self.rfid,
"memberBucks": {
Expand Down
4 changes: 2 additions & 2 deletions src-frontend/src/components/AccessList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="row flex content-start items-start">
<q-list bordered padding class="rounded-borders q-ma-sm access-list">
<q-item-label header>
{{ $t('access.doors') }}
{{ $tc('access.door', 2) }}
</q-item-label>

<div class="q-pa-md" v-if="!doors.length">
Expand Down Expand Up @@ -65,7 +65,7 @@

<q-list bordered padding class="rounded-borders q-ma-sm access-list">
<q-item-label header>
{{ $t('access.interlocks') }}
{{ $tc('access.interlock', 2) }}
</q-item-label>

<q-item-label class="q-pa-md" v-if="!interlocks.length">
Expand Down
Loading

0 comments on commit aebfffa

Please sign in to comment.