8000 [Form] Hide label button when its setted to false by TeLiXj · Pull Request #24148 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] Hide label button when its setted to false #24148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Hide label button when its setted to false
Added same behaviour in buttons like in other form components when label is setted to false, don't show it. It's very useful with buttons with icon and without text
  • Loading branch information
TeLiXj authored Sep 11, 2017
commit 96f82f5da34873096a1c3137dcf37d12b531b909
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
{%- endblock email_widget -%}

{%- block button_widget -%}
{%- if label is empty -%}
{%- if label is not same as(false) and label is empty -%}
{%- if label_format is not empty -%}
{% set label = label_format|replace({
'%name%': name,
Expand Down
0