Skip to content
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

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

jarlhengstmengel
Copy link
Contributor

Short description

This PR adds the creation of contacts with a collapsible box in the POI form.

Proposed changes

  • Add collapsibele box with a contact form in POI form
  • Add view for the box
  • Trigger creation of a contact with clicking at publish and setting the location automatically to the POI that is created parallel

Side effects

  • None

Resolved issues

Fixes: #3088


Pull Request Review Guidelines

@@ -167,6 +167,9 @@ <h3 class="font-bold text-black heading">
<div id="right-sidebar-column"
class="flex flex-col flex-wrap 3xl:col-end-3 4xl:col-end-auto md:w-full">
{% include "./poi_form_sidebar/contact_box.html" with box_id="poi-contact" %}
{% if not poi_form.instance.id and perms.cms.change_contact %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% if not poi_form.instance.id and perms.cms.change_contact %}
{% if poi_form.instance.id and perms.cms.change_contact %}

I guess you want to show this box only when an existing POI is being edited, not when a new POI is being created on the POI form.

@MizukiTemma
Copy link
Member

The new typescript file "contact_box.ts" needs to be added in "index.ts", otherwise it can't bring its effects 😿

@jarlhengstmengel
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2024-11-07] Add a button to create a contact in the POI form.
2 participants