integreat-cms
integreat-cms copied to clipboard
[7.11.24] Create a new model for contact information and their list
Motivation
We are introducing a new feature "contact information". To save a set of informations like name, telephone number etc we need a new model.
Proposed Solution
- [x] Create a new model
contact
with following fields- Title (e.g. "Integrationsbeauftragte:r")*
- Name*
- POI*
- E-mail address
- Telephone number
- Website
- Arvhiced (default false)
- Region? (see the comment below)
Fields with * are mandatory.
A POI is mandatory for every contact. Users have to select one from the POIs of the region or create a new one to save a contact.
E-Mail address, telephone number, website must be compatible (in the same data type) with those of POI model, as those fields can be taken over from the POI assigned to the contact (but we need those field in the contact model too, as they can be different from those of the POI if users wish).
-
[ ] Create a list template and view to show contacts Respectively for not archived and archived contats, like events, POIs. Icons for archive, delete, restore can stand there without functionality (will be implemented in #2954).
-
[x] Add some contact objects to the default data To check the list is working fine. Creating some test data now, we can use them in later steps of implementation quickly.
-
[ ] Connect this list view to the menu item implemented in #2951 if it is done before this issue.
Alternatives
None. We do it.
User Story
Additional Context
Design Requirements
There is an design from UI/UX Team