Skip to content

Draft: Issue #3198674 by chmez: As a LU I would like be able to provide the details about gender and types of organisation in my profile

Problem

As a LU I would like be able to provide the details about gender and types of organisation in my profile.

Solution

  • add “gender” to the profile fields
    • disable it by default
    • allow SM to add / define options for this field
      • create new vocabulary
      • add male, female and other as default options
  • and “types of organisation”
  • create “types of organisations” taxonomy term
  • it should be possible to enable / disable gender field in social_profile_fields module
  • if gender field is filled in, information should be displayed in profile
  • if “types of organisations” taxonomy is added to the profile - it should be shown
  • make sure to works with
    • social_profile_privacy
    • social_registration fields

Issue tracker

How to test

  • Enable the "Social Profile Fields" module and log in as SM.
  • When you navigate to the "/admin/structure/taxonomy" page then you should see "Gender" and "Types of organization" taxonomy vocabularies.
  • Add "Organization 1" and "Organization 2" terms to the "Types of organization" vocabulary and log in as a normal member.
  • When you open the profile edit page then you should see the "Gender" field in the "Names and profile image" section and the "Types of organization" field in the "Function and organization" section.
  • Both fields shouldn't be required.
  • When a drop-down list of the "Gender" field should contain the following items: "Male", "Female", "Other", "Prefer not to tell".
  • Select the "Male" option in the "Gender" field.
  • Start typing "org" in the "Types of organization" field and select the "Organization 1" item in a drop-down list.
  • Put then comma-symbol and start typing "org" and select the "Organization 2" item in the drop-down list.
  • When you press "Save" then you should see the "Gender" field with the "Male" option and the "Types of organization" field with "Organization 1" and "Organization 2" options.

Release notes

Add "Gender" and "Types of organization" fields to the user profile.

Edited by Oleksandr Horbatiuk

Merge request reports