-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add contact creation in POI form #3196
Conversation
The new typescript file "contact_box.ts" needs to be added in "index.ts", otherwise it can't bring its effects 😿 |
Thank you for the hint! That would have been my question. |
@jarlhengstmengel |
dc6e504
to
8959822
Compare
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.
Thank you a lot to the both of you!
This is a really good step forward. I have a few questions, but other than those it looks already very good :)
integreat_cms/cms/templates/pois/poi_form_sidebar/related_contacts_box.html
Outdated
Show resolved
Hide resolved
@JoeyStk |
8b52279
to
89bd221
Compare
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.
Thank you very much!
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.
Thank you, this already looks great! 🎉
One question: why is the option to create a new contact only shown for existing POIs? IMO it would be very convenient to also be able to create a contact at the same time as the POI.
Additionally, I am a bit confused (and I suspect some users might be too) about the intended purpose of the "related contact" vs the "contact information". I think some clarification, or better yet some unification of the features, is necessary.
For example, could a checkbox be added below the "contact information" box to create a new contact based on that information? Then locations would immediately become linkable in pages/events, like @nikolahoff suggested in the last weekly.
Similarly, maybe a checkbox "set as default contact information for this location" could be added in the new ajax form this PR adds, which would then auto-fill the contact information of the POI, if it was not set beforehand?
I know this is somewhat beyond the scope of this PR, I just feel that with the addition of this feature, the POI form with its multiple overlapping ideas of contacts/contact details becomes rather confusing. Maybe @osmers also has an opinion on this? 😅
Hahah, I am an idiot, that is what #3180 is for 😂 🙈
The only thing from the above text I still stand by is that contacts should definitely be creatable during poi creation, especially once the "contact information" section is gone.
13589b7
to
820272e
Compare
ccc5654
to
aa3d9a1
Compare
@charludo |
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.
Thank you, looks great!
Co-authored-by: MizukiTemma <82345046+MizukiTemma@users.noreply.github.com> Co-authored-by: JoeyStk <72705147+JoeyStk@users.noreply.github.com> Co-authored-by: Charlotte <47758554+charludo@users.noreply.github.com>
aa3d9a1
to
631201b
Compare
Short description
This PR adds the creation of contacts with a collapsible box in the POI form.
Proposed changes
Side effects
Resolved issues
Fixes: #3088
Pull Request Review Guidelines