-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add a data_help method in Form #26332
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c8914f5
Add a data_help method in Form
1b89f9d
Add a template fot div_layout
8b97c1b
Use a shortcut to acces help var in Twig template
e311838
Remove raw filter for help
831693a
Add trans filter
2c2c045
Adapt existant tests
d3e3e49
Fix: check translation domain
067c681
Template for table, Foundation and Bootstrap 3
8094804
Add Tests
c934e49
Add test without help set
f15bc79
Fix coding standards
4f2581d
Use array long syntax
ba798df
FrameworkBundle Tests
6ea7a20
Remove vars option from form_help
058489d
Add an id to the help
1f3a15e
Rename id
bf4d08c
Add aria-describedBy on input
30deaa9
PSR fix
77fa317
Fix Test
f948147
Rename help id (snake_case)
aada72c
Set help option on nul as default
edb95f8
Use array long syntax
98065d3
fabpot.io fix
fd53bc5
Enable aria-described in row for all Templates
69ded67
Added form_help on horizontal design and removed special variable
Nyholm f1d13a8
Fix Fabpot.io
mpiot 075fcfd
[FrameworkBundle] Add widgetAtt to formTable/form_row
mpiot d84be70
Update composer files
mpiot 437b77e
Skip renderHelp test as skipped if not override
mpiot 32bf1f6
Test the renderHelp method in all Tests about help to skip them if ne…
mpiot 8b937ff
Try without try/catch
mpiot c74e0dc
Use spaceless balises in Twig templates
mpiot d723756
Fix some mistakes
mpiot 859ee03
Revert: remove comment line from twig templates
mpiot 585ca28
Add return type hint
mpiot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add trans filter
- Loading branch information
commit 831693ad459743405e19c951a179308af31c05e4
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make sure it respects the translation domain.
{{ translation_domain is same as(false) ? help : help|trans({}, translation_domain) }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I edit it. (I don't really know what is it, but I trust you ;-))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It checks if
translation_domain
is false, it it is we just printhelp
. If it is not false we use translation with that domain.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about TranslationDomain, I don't know what it is, I'd watch.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a look here: http://symfony.com/doc/current/components/translation.html#using-message-domains
It is basically a way to categorize translation messages.
Make sure you add this fix every time you print
help
. (ie in the form_div_layout.html.twig)Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, and it's done :-) (it's interresting to do PR, it permit to learn lot of things:-))