Permalink
Browse files

Fixed markup in array-twig example, this time for real

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325495 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 8c94912 commit 6758fdf581091c868f30b89973ebf76ed0408e46 @sad-spirit sad-spirit committed May 1, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 docs/examples/renderers/templates/array-twig.tpl
@@ -64,10 +64,10 @@ body {
{{ element.html|raw }}
{% else %}
<div class="row">
- <label for="{{ element.id }}" class="element">
- {% if element.required %}<span class="required">* </span>{% endif %}
- {{ element.label }}
- </label>
+ <p class="label">
+ {% if element.required %}<span class="required">*</span>{% endif %}
+ {% if element.label %}<label for="{{ element.id }}">{{ element.label }}</label>{% endif %}
+ </p>
<div class="element {% if element.error %} error{% endif %}">
{% if element.error %}<span class="error">{{ element.error }}<br /></span>{% endif %}
{{ element.html|raw }}

0 comments on commit 6758fdf

Please sign in to comment.