mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 06:42:42 +01:00
Config User Extra Fields: link to the doc (like Maniphest)
Summary: Add a documentation link in a specific Config page, that is: Config > Setting > user.custom-field-definitions Test Plan: Visit the page and click on the new link: - /config/edit/user.custom-field-definitions/ Visit this page that was the inspirational page: - /config/edit/maniphest.custom-field-definitions/ No nuclear implosions. Reviewers: O1 Blessed Committers, aklapper Reviewed By: O1 Blessed Committers, aklapper Subscribers: aklapper, tobiaswiese, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25507
This commit is contained in:
parent
cc964550f9
commit
5de10185ce
1 changed files with 11 additions and 1 deletions
|
@ -39,12 +39,22 @@ final class PhabricatorUserConfigOptions
|
|||
|
||||
$custom_field_type = 'custom:PhabricatorCustomFieldConfigOptionType';
|
||||
|
||||
$fields_description = $this->deformat(pht(<<<EOTEXT
|
||||
List of custom fields for user profiles.
|
||||
|
||||
For details on adding new fields, see [[ %s | %s ]] in the
|
||||
documentation.
|
||||
EOTEXT
|
||||
,
|
||||
PhabricatorEnv::getDoclink('Configuring Custom Fields'),
|
||||
pht('Configuring Custom Fields')));
|
||||
|
||||
return array(
|
||||
$this->newOption('user.fields', $custom_field_type, $default)
|
||||
->setCustomData(id(new PhabricatorUser())->getCustomFieldBaseClass())
|
||||
->setDescription(pht('Select and reorder user profile fields.')),
|
||||
$this->newOption('user.custom-field-definitions', 'wild', array())
|
||||
->setDescription(pht('Add new simple fields to user profiles.')),
|
||||
->setDescription($fields_description),
|
||||
$this->newOption('user.require-real-name', 'bool', true)
|
||||
->setDescription(pht('Always require real name for user profiles.'))
|
||||
->setBoolOptions(
|
||||
|
|
Loading…
Reference in a new issue