Skip to content

Commit 8250fe8

Browse files
committed
fix: the namespace notation should not be mixed with PatternLab shorthand pattern naming & name is not defined in the textarea macro
1 parent 222216a commit 8250fe8

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

packages/starterkit-twig-demo/dist/_macros/forms.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
{% set show_label = label|default(true) %}
1414
<div class="field-container {{ classes }}">
1515
{% if show_label %}
16-
<label class="{{ classes }}">{{ label|default(name|title) }}{% if required %}<abbr title="Required">*</abbr>{% endif %}
16+
<label class="{{ classes }}">{{ label|default('Label') }}{% if required %}<abbr title="Required">*</abbr>{% endif %}
1717
{% endif %}
18-
<textarea placeholder="{{ placeholder|default(name|title) }}" rows="{{ rows|default(8) }}"{% if required %} required{% endif %}></textarea>
18+
<textarea placeholder="{{ placeholder|default('Placeholder') }}" rows="{{ rows|default(8) }}"{% if required %} required{% endif %}></textarea>
1919
{% if show_label %}</label>{% endif %}
2020
</div>
2121
{% endmacro %}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
{% extends "@templates/page-2col.twig" %}
1+
{% extends "@templates/00-layouts/01-page-2col.twig" %}
22
{% block main %}
33
<article class="article">
44
<header class="article-header">
55
<h1>Article Headline Lorem ipsum dolor sit aweofij</h1>
66
{% include "@molecules/00-text/00-byline.twig" %}
77
</header>
8-
{% include "@organisms/article-body.twig" %}
8+
{% include "@organisms/01-article/00-article-body.twig" %}
99
</article><!--end .article-->
10-
{% include "@molecules/social-share.twig" %}
11-
{% include "@organisms/comment-thread.twig" %}
10+
{% include "@molecules/06-components/00-social-share.twig" %}
11+
{% include "@organisms/02-comments/00-comment-thread.twig" %}
1212
{% endblock %}
1313

1414
{% block sidebar %}
15-
{% include "@organisms/related-posts.twig" %}
16-
{% include "@organisms/recent-tweets.twig" %}
15+
{% include "@organisms/03-sections/02-related-posts.twig" %}
16+
{% include "@organisms/03-sections/01-recent-tweets.twig" %}
1717
{% endblock %}

0 commit comments

Comments
 (0)