mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
parent
221562b294
commit
86353462cd
1 changed files with 6 additions and 4 deletions
|
@ -53,7 +53,7 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
|
||||||
->setLabel(pht('Name'))
|
->setLabel(pht('Name'))
|
||||||
->setName('name')
|
->setName('name')
|
||||||
->setValue($request->getStr('name'))
|
->setValue($request->getStr('name'))
|
||||||
->setCaption('Optional file display name.'))
|
->setCaption(pht('Optional file display name.')))
|
||||||
->appendChild(
|
->appendChild(
|
||||||
id(new AphrontFormSubmitControl())
|
id(new AphrontFormSubmitControl())
|
||||||
->setValue(pht('Upload'))
|
->setValue(pht('Upload'))
|
||||||
|
@ -66,12 +66,14 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
|
||||||
->setName(pht('Upload'))
|
->setName(pht('Upload'))
|
||||||
->setHref($request->getRequestURI()));
|
->setHref($request->getRequestURI()));
|
||||||
|
|
||||||
|
$title = pht('Upload File');
|
||||||
|
|
||||||
$header = id(new PhabricatorHeaderView())
|
$header = id(new PhabricatorHeaderView())
|
||||||
->setHeader(pht('Upload File'));
|
->setHeader($title);
|
||||||
|
|
||||||
if ($errors) {
|
if ($errors) {
|
||||||
$errors = id(new AphrontErrorView())
|
$errors = id(new AphrontErrorView())
|
||||||
->setTitle('Form Errors')
|
->setTitle(pht('Form Errors'))
|
||||||
->setErrors($errors);
|
->setErrors($errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +89,7 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
|
||||||
$global_upload,
|
$global_upload,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'title' => 'Upload File',
|
'title' => $title,
|
||||||
'device' => true,
|
'device' => true,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue