Skip to content

Commit

Permalink
feat(models): add 'newbie' option in register proficiency on members …
Browse files Browse the repository at this point in the history
…model #338
  • Loading branch information
Creiwry committed Mar 3, 2023
1 parent 203eb08 commit a268b6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Member < ApplicationRecord
before_validation :set_unique_display_name

enum role: { member: 0, admin: 1, super_admin: 2 }
enum cash_register_proficiency: { untrained: 0, beginner: 1, proficient: 2 }
enum cash_register_proficiency: { untrained: 0,newbie: 1, beginner: 2, proficient: 3 }

def thredded_admin?
admin? || super_admin?
Expand Down
5 changes: 5 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
fr:
activerecord:
errors:
models:
static_slot:
messages:
selection_save_failure: error
messages:
creation_fail: La création de %{model} a échoué
destroy_fail: La suppression de %{model} a échoué
Expand Down Expand Up @@ -48,6 +52,7 @@ fr:
cash_register_proficiency: Formation à la caisse
cash_register_proficiencies:
untrained: non formé à la caisse
newbie: nouveau
beginner: débutant à la caisse
proficient: formé à la caisse
email: E-mail
Expand Down

0 comments on commit a268b6f

Please sign in to comment.