Skip to content

Commit 9467964

Browse files
committed
Latte: prints {label/}
1 parent a8669b6 commit 9467964

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Bridges/FormsLatte/Runtime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static function renderBlueprint($form): void
8888

8989
public function getLabel($name = null)
9090
{
91-
return $this->inner->getLabel() ? '{label ' . $this->inner->lookupPath(Form::class) . '}' : null;
91+
return $this->inner->getLabel() ? '{label ' . $this->inner->lookupPath(Form::class) . '/}' : null;
9292
}
9393

9494

tests/Forms.Latte/Runtime.renderBlueprint.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Assert::match(
4949
5050
<dl>
5151
52-
<dt>{label name}:</dt>
52+
<dt>{label name/}:</dt>
5353
5454
<dd>{input name}
5555
@@ -60,7 +60,7 @@ Assert::match(
6060
6161
6262
63-
<dt>{label cont-name}:</dt>
63+
<dt>{label cont-name/}:</dt>
6464
6565
<dd class="odd">{input cont-name}
6666

0 commit comments

Comments
 (0)