Skip to content

Commit

Permalink
Merge pull request avanzu#98 from plozmun/plozmun-patch-1
Browse files Browse the repository at this point in the history
Required field only if label is defined
  • Loading branch information
quentin-st committed May 9, 2016
2 parents 901d669 + a48f875 commit 56751fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/views/layout/form-theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
{% endif %}

{{ parent() }}
{% if required %}
<span class="required" title="Dies ist ein Pflichtfeld">*</span>
{% if required and label %}
<span class="required" title="{{ "This is a mandatory field"|trans({}, translation_domain) }}">*</span>
{% endif %}

{% endblock form_label %}
Expand Down

0 comments on commit 56751fc

Please sign in to comment.