-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
CRM-21599: Added missing structure in templates #11457
Conversation
</div> | ||
<div style="height: auto; vertical-align: bottom">{$form.eventsByDates.html}</div> | ||
<td> | ||
<label>{ts}Event Nanme{/ts}</label> |
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.
Typo - should be "Event Name". Can you get this from $form.title.label?
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.
@@ -72,4 +73,5 @@ | |||
{crmButton q="action=add&reset=1" id="newLocationType" icon="plus-circle"}{ts}Add Option{/ts}{/crmButton} | |||
{crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton} | |||
</div> | |||
</div> |
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.
How is this file related to field name change?
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.
@pradpnayak This is not just for adding label. PR is to make the structure proper and this file adds missing wrapper around the content like other files.
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.
:)
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.
Should I understand :) as approved then?
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.
Yes APPROVED.
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.
@pradpnayak can you do that from above Review changes then? for others to know the status
I am not sure if its a great idea to have label for the text field since there is enough description about the usage of the field. I will this to core team to decide. I have tested this locally and it works as expected. However, I am not confident of having 'templates/CRM/Admin/Page/LocationType.tpl' file included in this PR. Is it some how related to the fix? And also can you squash the commits? |
@pradpnayak
Description should always depict more about field but, it is the label that ultimately tells people what the field is for. |
I am not opposed to these change but like @pradpnayak said we already had an inline description for this field. But still, if we need to show the label then we also need to made such changes to other Search forms like: @mukeshcompucorp would you like to discuss the PR on our dev channel https://chat.civicrm.org/civicrm/channels/dev ? |
CRM-21599: Added missing structure in templates
Overview
This PR
templates/CRM/Admin/Page/LocationType.tpl
Event Name
of event attemplates/CRM/Event/Form/SearchEvent.tpl
Before
After
Technical Details
Tabing and spacings are improved