-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
modified shared address note under contact dashboard #15666
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
add to whitelist |
This looks good but I think we still need the word 'that' |
Please check updated PR. |
I hate to say this but I think I've spotted another issue! 'That contact' is not translated Ideally the link html should be paramterised - see Also it looks like we usually use cmURL eg
It's probably less at risk of breaking on different CMS |
Thanks @eileenmcnaughton ! I have updated PR with required changes. Can you please check once. |
Looking good - I think you still need to close the first ts earlier & open a new one at the end - ie {ts escape='js'}Selected contact does not have an address. Please edit{/ts} & then open another one in a bit |
hmm, the mix of smarty and javascript from the original code makes this way more complicated to fix/improve than it should. I'm not sure what's the right way to do this, without rewriting more of the original code to clean it up. For example, it might be best to move this javascript into a real javascript file, and then we could use the The current PR mixes smarty and javascript to create URLs, and breaks translation. Sentences should not be split in different 'ts' calls, otherwise they will be impossible to translate accurately. |
Suggestion from @demeritcowboy on the translation channel chat:
"Edit Contact Details" might be better than "Edit link" (and already exists as a string in CiviCRM) |
OH wow this good drawn out huh? @mlutfy is the final version good |
yeah. I agreed. Thanks @mlutfy and @eileenmcnaughton ! |
test fail not related but I'll run again to get a green tick since I'm hoping to get a last eyeball on this by @mlutfy |
test this please |
Test fail is un related i'm going to merge this and then do a follow up PR for @mlutfy's improvement |
Phew - thanks @revati90 @mlutfy @seamuslee001 |
Overview
While creating the share address for any contact , if we select contact who don't have address there is no way to jump on the selected contact and edit the address so that we can use that contact in for sharing the address.
Before
While creating a new contact and using shared address feature if selected contact don't have any address it will show the note like
Selected contact does not have an address.....
There is no such way to update selected contact address under Address tab.After
Given patch gives us a link under shared address note itself to jump on selected contact to update contact address.
Comments
https://lab.civicrm.org/dev/core/issues/1351