mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix change user class + medal display
This commit is contained in:
@@ -160,7 +160,7 @@ class UserProfile extends ViewRecord
|
||||
->hidden(fn (\Closure $get) => $get('field') != 'tmp_invites')
|
||||
,
|
||||
|
||||
Forms\Components\Textarea::make('reason')
|
||||
Forms\Components\TextInput::make('reason')
|
||||
->label(__('admin.resources.user.actions.change_bonus_etc_reason_label'))
|
||||
,
|
||||
])
|
||||
@@ -365,7 +365,7 @@ class UserProfile extends ViewRecord
|
||||
->label(__('admin.resources.user.actions.change_class_btn'))
|
||||
->form([
|
||||
Forms\Components\Select::make('class')
|
||||
->options(User::listClass())
|
||||
->options(User::listClass(User::CLASS_PEASANT, Auth::user()->class - 1))
|
||||
->default($this->record->class)
|
||||
->label(__('user.labels.class'))
|
||||
->required()
|
||||
|
||||
Reference in New Issue
Block a user