-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorder the user imports fields (#3722)
* Reorder the user imports fields * Swap gender and pronoun in account import field list * Use other way to order the account and participant import fields * Use lists for the order of the import fields
- Loading branch information
Showing
12 changed files
with
64 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 24 additions & 3 deletions
27
.../app/site/pages/meetings/pages/participants/pages/participant-import/definitions/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
import { userHeadersAndVerboseNames } from 'src/app/domain/models/users/user.constants'; | ||
import { GeneralUser } from 'src/app/gateways/repositories/users'; | ||
|
||
export const participantHeadersAndVerboseNames: { [key in keyof GeneralUser]?: string } = { | ||
export const participantHeadersAndVerboseNames: { [key in keyof GeneralUser]?: any } = { | ||
...userHeadersAndVerboseNames, | ||
is_present: `Is present`, | ||
structure_level: `Structure levels`, | ||
groups: `Groups`, | ||
number: `Participant number`, | ||
vote_weight: `Vote weight`, | ||
groups: `Groups`, | ||
is_present: `Is present`, | ||
comment: `Comment` | ||
}; | ||
|
||
export const participantColumns: (keyof GeneralUser)[] = [ | ||
`title`, | ||
`first_name`, | ||
`last_name`, | ||
`email`, | ||
`member_number`, | ||
`structure_level`, | ||
`groups`, | ||
`number`, | ||
`vote_weight`, | ||
`gender`, | ||
`pronoun`, | ||
`username`, | ||
`default_password`, | ||
`is_active`, | ||
`is_physical_person`, | ||
`is_present`, | ||
`saml_id`, | ||
`comment` | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters