From b93e8253b6c785bb7b99c3538c8a05ee3d30bc01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 27 Aug 2021 11:26:53 +0200 Subject: [PATCH] Add placeholder to the 'path' input in DevtoolsProjectAddForm --- .../install/files/lib/acp/form/DevtoolsProjectAddForm.class.php | 1 + wcfsetup/install/lang/de.xml | 2 +- wcfsetup/install/lang/en.xml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php index 503dd57296..ae8746f6ce 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php @@ -140,6 +140,7 @@ class DevtoolsProjectAddForm extends AbstractFormBuilderForm TextFormField::create('path') ->label('wcf.acp.devtools.project.path') ->description('wcf.acp.devtools.project.path.description') + ->placeholder(WCF_DIR) ->required() ->addValidator(new FormFieldValidator('validPath', function (TextFormField $formField) { // ensure that unified directory separators are used diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 80eef8de32..719961887a 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -419,7 +419,7 @@ - + getPackageArchive()->getOpenRequirements()|empty}class="jsDevtoolsInstallPackage"{else}class="jsStaticDialog" data-dialog-id="openPackageRequirements"{/if}>{if LANGUAGE_USE_INFORMAL_VARIANT}Willst du{else}Wollen Sie{/if} das Paket installieren?]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index c55c805f43..62d7463d23 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -396,7 +396,7 @@ - + getPackageArchive()->getOpenRequirements()|empty}class="jsDevtoolsInstallPackage"{else}class="jsStaticDialog" data-dialog-id="openPackageRequirements"{/if}>Do you want to install the package?]]> -- 2.20.1