fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled
Some checks failed
Deploy Application / deploy (push) Has been cancelled
This commit is contained in:
@@ -36,7 +36,7 @@ final readonly class TextField implements FormField
|
||||
): self {
|
||||
return new self(
|
||||
metadata: new FieldMetadata($name, $label, $help),
|
||||
attributes: new FieldAttributes(
|
||||
attributes: FieldAttributes::create(
|
||||
name: $name,
|
||||
id: $name,
|
||||
required: $required,
|
||||
@@ -57,10 +57,21 @@ final readonly class TextField implements FormField
|
||||
$attrArray['value'] = (string) $this->value;
|
||||
}
|
||||
|
||||
$input = FormElement::create('input', $attrArray);
|
||||
$wrapped = $this->wrapper->wrap($input, $this->metadata);
|
||||
$input = FormElement::textInput($this->attributes->name(), $this->value !== null ? (string) $this->value : '')
|
||||
->withId($this->attributes->id())
|
||||
->withClass($this->attributes->class());
|
||||
|
||||
return $form->addElement($wrapped);
|
||||
if ($this->attributes->required()) {
|
||||
$input = $input->withRequired();
|
||||
}
|
||||
|
||||
if ($this->attributes->placeholder() !== null) {
|
||||
$input = $input->withAttribute('placeholder', $this->attributes->placeholder());
|
||||
}
|
||||
|
||||
$wrapped = $this->wrapper->wrap((string) $input, $this->metadata);
|
||||
|
||||
return $form->addRawHtml($wrapped);
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
|
||||
Reference in New Issue
Block a user