mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-12 20:34:54 +01:00
Add instructions to Create Repository form fields for Callsign and Short Name
Summary: When I create new repos, I always forget which is which (between Callsign and Short Name) This adds helpful text as a placeholder and as control instructions I am not sure if this layout is 100% better, but this is an option as well **Add new Repository** {F3169761 width=800} **Edit existing Repository** {F3169775 width=800} Closes T15742 Test Plan: Added a new repository and saw these control instructions Reviewers: O1 Blessed Committers, aklapper Reviewed By: O1 Blessed Committers, aklapper Subscribers: aklapper, avivey, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15742 Differential Revision: https://we.phorge.it/D25898
This commit is contained in:
parent
fa00599de5
commit
5bd99a394a
1 changed files with 6 additions and 0 deletions
|
@ -287,6 +287,9 @@ final class DiffusionRepositoryEditEngine
|
||||||
id(new PhabricatorTextEditField())
|
id(new PhabricatorTextEditField())
|
||||||
->setKey('callsign')
|
->setKey('callsign')
|
||||||
->setLabel(pht('Callsign'))
|
->setLabel(pht('Callsign'))
|
||||||
|
->setControlInstructions(
|
||||||
|
pht('Callsign is the monogram rXXXX for this repository. '.
|
||||||
|
'It cannot contain spaces.'))
|
||||||
->setTransactionType(
|
->setTransactionType(
|
||||||
PhabricatorRepositoryCallsignTransaction::TRANSACTIONTYPE)
|
PhabricatorRepositoryCallsignTransaction::TRANSACTIONTYPE)
|
||||||
->setDescription(pht('The repository callsign.'))
|
->setDescription(pht('The repository callsign.'))
|
||||||
|
@ -296,6 +299,9 @@ final class DiffusionRepositoryEditEngine
|
||||||
id(new PhabricatorTextEditField())
|
id(new PhabricatorTextEditField())
|
||||||
->setKey('shortName')
|
->setKey('shortName')
|
||||||
->setLabel(pht('Short Name'))
|
->setLabel(pht('Short Name'))
|
||||||
|
->setControlInstructions(
|
||||||
|
pht('Short Name is part of the URI paths for this repository. '.
|
||||||
|
'It cannot contain spaces.'))
|
||||||
->setTransactionType(
|
->setTransactionType(
|
||||||
PhabricatorRepositorySlugTransaction::TRANSACTIONTYPE)
|
PhabricatorRepositorySlugTransaction::TRANSACTIONTYPE)
|
||||||
->setDescription(pht('Short, unique repository name.'))
|
->setDescription(pht('Short, unique repository name.'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue