-
Notifications
You must be signed in to change notification settings - Fork 1
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
1481 implement similar positions on recruitmentapplicationformpage #1596
base: master
Are you sure you want to change the base?
1481 implement similar positions on recruitmentapplicationformpage #1596
Conversation
…for applicant serializer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ikke testa, tror ikke det funker, men kan da ikke være så ille heller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kan kanskje være litt forvirrende om navn og tags ikke stemmer? Ikke så farlig for meg assa
recruitment_id = self.kwargs.get('id') | ||
tags_param = self.request.query_params.get('tags') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funker det ikke å bruke getlist her?
} as const; No newline at end of file | ||
} as const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
{recruitmentPositionsForGang && recruitmentPositionsForGang.length > 0 && ( | ||
<div className={styles.other_positions}> | ||
<h2 className={styles.sub_header}> | ||
{t(KEY.recruitment_otherpositions)} {dbT(recruitmentPosition?.gang, 'name')} | ||
</h2> | ||
{recruitmentPositionsForGang.map((pos) => ( | ||
<Button | ||
key={pos.id} | ||
display="pill" | ||
theme="outlined" | ||
onClick={() => { | ||
navigate({ | ||
url: reverse({ | ||
pattern: ROUTES.frontend.recruitment_application, | ||
urlParams: { positionId: pos.id, gangId: pos.gang.id }, | ||
}), | ||
}); | ||
}} | ||
> | ||
{dbT(pos, 'name')} | ||
</Button> | ||
))} | ||
</div> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dette kan flyttes ut i en konstant
What
Created backend and frontend for fetching positions from tags. This makes it possible to fetch positions similar to each other.
Modified seed script to create more realisitc tags.
Fixes some rendering issues on RecruitmentApplicationFromPage
Bette styling will be done in another PR. The entire page should get a glow-up.
Why
Fetching similar positions is a feature on Samf3
closes #1481