-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7112349
commit 9bfb2c4
Showing
7 changed files
with
47 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -511,47 +511,47 @@ protected static function defineCardAttributes(): array | |
return array_merge(parent::defineCardAttributes(), [ | ||
'email' => [ | ||
'label' => Craft::t('app', 'Email'), | ||
'placeholder' => '[email protected]', | ||
'placeholder' => fn() => '[email protected]', | ||
], | ||
'username' => [ | ||
'label' => Craft::t('app', 'Username'), | ||
'placeholder' => Craft::t('app', 'Username'), | ||
'placeholder' => fn() => Craft::t('app', 'Username'), | ||
], | ||
'firstName' => [ | ||
'label' => Craft::t('app', 'First Name'), | ||
'placeholder' => Craft::t('app', 'First Name'), | ||
'placeholder' => fn() => Craft::t('app', 'First Name'), | ||
], | ||
'lastName' => [ | ||
'label' => Craft::t('app', 'Last Name'), | ||
'placeholder' => Craft::t('app', 'Last Name'), | ||
'placeholder' => fn() => Craft::t('app', 'Last Name'), | ||
], | ||
'groups' => [ | ||
'label' => Craft::t('app', 'Groups'), | ||
'placeholder' => Craft::t('app', 'Group Name'), | ||
'placeholder' => fn() => Craft::t('app', 'Group Name'), | ||
], | ||
'affiliatedSite' => [ | ||
'label' => Craft::t('app', 'Affiliated Site'), | ||
'placeholder' => Craft::t('app', 'Site Name'), | ||
'placeholder' => fn() => Craft::t('app', 'Site Name'), | ||
], | ||
'preferredLanguage' => [ | ||
'label' => Craft::t('app', 'Preferred Language'), | ||
'placeholder' => $i18n->getLocaleById('en')->getDisplayName(Craft::$app->language), | ||
'placeholder' => fn() => $i18n->getLocaleById('en')->getDisplayName(Craft::$app->language), | ||
], | ||
'preferredLocale' => [ | ||
'label' => Craft::t('app', 'Preferred Locale'), | ||
'placeholder' => $i18n->getLocaleById('en-US')->getDisplayName(Craft::$app->language), | ||
'placeholder' => fn() => $i18n->getLocaleById('en-US')->getDisplayName(Craft::$app->language), | ||
], | ||
'isCredentialed' => [ | ||
'label' => Craft::t('app', 'Credentialed'), | ||
'placeholder' => Template::raw(Cp::statusLabelHtml([ | ||
'placeholder' => fn() => Template::raw(Cp::statusLabelHtml([ | ||
'color' => Color::Teal, | ||
'label' => Craft::t('app', 'Credentialed'), | ||
'icon' => 'check', | ||
])), | ||
], | ||
'lastLoginDate' => [ | ||
'label' => Craft::t('app', 'Last Login'), | ||
'placeholder' => (new \DateTime())->sub(new \DateInterval('P14D')), | ||
'placeholder' => fn() => (new \DateTime())->sub(new \DateInterval('P14D')), | ||
], | ||
]); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters