It would be great if the pages (list) of adding contacts and adding organizations had the same style as other entity pages to maintain consistency.

There is a template (entity_add_list. twig) that we could use instead of the default one that brings redhen, for that several changes are required:

First you need to change the schema for ContactType and OrgType in the configuration to allow a new "description" field, which will be used on the add new page (contact, organization).

Then it is necessary to update ContactTypeInterface and OrgTypeInterface to add a new method to obtain the new "description" field, as well as to update the respective classes that implement these interfaces.

It's also necessary to modify the "add" method in the ContactAddController and OrgAddController controllers to make use of entity_add_list.twig

patch in progress!.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

roberto_araya created an issue. See original summary.

roberto_araya’s picture

The patch.

The issue says it is related to redhen_contact but the patch affects redhen_contact and redhen_org.

roberto_araya’s picture

Issue summary: View changes
roberto_araya’s picture

I forgot to mention that the forms are also modified to add contact types and organization types to include the new description field.

gcb’s picture

Assigned: roberto_araya » gcb