-
Notifications
You must be signed in to change notification settings - Fork 920
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
Allow HTML in field labels #97
Comments
You're totally right, that SHOULD be available for all field types. Thanks for the PR! |
For escape the label of the checklist you need to do this: CRUD/src/resources/views/fields/checklist.blade.php Line 17 @endif > {!! $connected_entity_entry->{$field['attribute']} !!} |
Sorry @wtime , I didn't get that. Could you please rephrase it? Cheers! |
change to {!! $connected_entity_entry->{$field['attribute']} !!} for correct HTML unescaping of the label of the checklist field. PATH: CRUD/src/resources/views/fields/checklist.blade.php |
Thank you @wtime . It's now fixed! |
Thank you for your great work! |
During development of a project today I noticed that some fields allow HTML in field labels (e.g.
text.blade.php
) whilst others do not (e.g.textarea.blade.php
).I find the ability to use HTML in the label very useful for adding custom 'required' statements to the label. For example:
The only thing that needs to change is the
<label>
line in each template to change from:<label>{{ $field['label'] }}</label>
to:
<label>{!! $field['label'] !!}</label>
I'm putting a PR together for this right now, but any other feedback on the pros/cons of implementing this are welcomed.
The text was updated successfully, but these errors were encountered: