');
+ $inset = new AphrontFormInsetView();
+ $inset->setTitle('Remote URI');
$clone_command = null;
$fetch_command = null;
@@ -435,7 +432,7 @@ final class PhabricatorRepositoryEditController
'Enter the URI to clone this repository from. It should look '.
'something like ssh://user@host.com/hg/example';
}
- $form->appendChild(
+ $inset->appendChild(
'
'.$instructions.'
');
} else if ($is_svn) {
$instructions =
@@ -444,12 +441,12 @@ final class PhabricatorRepositoryEditController
'the value in the Repository Root field. It should be a URI '.
'and look like http://svn.example.org/svn/ or '.
'svn+ssh://svn.example.com/svnroot/';
- $form->appendChild(
+ $inset->appendChild(
'
'.
'If you want to connect to this repository over SSH, enter the '.
'username and private key to use. You can leave these fields blank if '.
'the repository does not use SSH.'.
'
');
- $form
+ $inset
->appendChild(
id(new AphrontFormTextControl())
->setName('ssh-login')
@@ -490,7 +487,7 @@ final class PhabricatorRepositoryEditController
'look for a private key.'));
if ($has_http_support) {
- $form
+ $inset
->appendChild(
'
'.
'If you want to connect to this repository over HTTP Basic Auth, '.
@@ -509,7 +506,7 @@ final class PhabricatorRepositoryEditController
->setValue($repository->getDetail('http-pass')));
}
- $form
+ $inset
->appendChild(
'
'.
'To test your authentication configuration, save this '.
@@ -523,33 +520,32 @@ final class PhabricatorRepositoryEditController
'from it.'.
'
');
+ $inset = new AphrontFormInsetView();
+ $inset->setTitle('Repository Information');
if ($has_local) {
- $form->appendChild(
+ $inset->appendChild(
'
Select a path on local disk '.
'which the daemons should '.$clone_command.' the repository '.
'into. This must be readable and writable by the daemons, and '.
'readable by the webserver. The daemons will '.$fetch_command.
' and keep this repository up to date.
If you only want to parse one '.
'subpath of the repository, specify it here, relative to the '.
'repository root (e.g., trunk/ or projects/wheel/). '.
'If you want to parse multiple subdirectories, create a separate '.
'Phabricator repository for each one.
');
- $form->appendChild(
+ $inset->appendChild(
id(new AphrontFormTextControl())
->setName('svn-subpath')
->setLabel('Subpath')
@@ -561,7 +557,7 @@ final class PhabricatorRepositoryEditController
$branch_filter_str = implode(
', ',
array_keys($repository->getDetail('branch-filter', array())));
- $form
+ $inset
->appendChild(
id(new AphrontFormTextControl())
->setName('branch-filter')
@@ -573,7 +569,7 @@ final class PhabricatorRepositoryEditController
'Example: master, release'));
}
- $form
+ $inset
->appendChild(
id(new AphrontFormTextControl())
->setName('frequency')
@@ -583,11 +579,10 @@ final class PhabricatorRepositoryEditController
'Number of seconds daemon should sleep between requests. Larger '.
'numbers reduce load but also decrease responsiveness.'));
- $form->appendChild('
');
+ $inset = new AphrontFormInsetView();
+ $inset->setTitle('Application Configuration');
if ($has_branches) {
@@ -598,7 +593,7 @@ final class PhabricatorRepositoryEditController
$default_branch_name = 'master';
}
- $form
+ $inset
->appendChild(
id(new AphrontFormTextControl())
->setName('default-branch')
@@ -612,7 +607,7 @@ final class PhabricatorRepositoryEditController
'Default branch to show in Diffusion.'));
}
- $form
+ $inset
->appendChild(
id(new AphrontFormTextControl())
->setName('default-owners-path')
@@ -623,7 +618,7 @@ final class PhabricatorRepositoryEditController
'/'))
->setCaption('Default path in Owners tool.'));
- $form
+ $inset
->appendChild(
id(new AphrontFormSelectControl())
->setName('herald-disabled')
@@ -643,7 +638,7 @@ final class PhabricatorRepositoryEditController
->selectSymbolsWithoutLoading();
$parsers = ipull($parsers, 'name', 'name');
- $form
+ $inset
->appendChild(
'
If you extend the commit '.
'message format, you can provide a new parser which will extract '.
@@ -661,7 +656,7 @@ final class PhabricatorRepositoryEditController
'PhabricatorRepositoryDefaultCommitMessageDetailParser')));
if ($is_svn) {
- $form
+ $inset
->appendChild(
id(new AphrontFormTextControl())
->setName('uuid')
@@ -670,7 +665,7 @@ final class PhabricatorRepositoryEditController
->setCaption('Repository UUID from svn info.'));
}
- $form->appendChild('