Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Cursus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Cursus
Merge requests
!52
Project 'AlekSIS/onboarding/AlekSIS-App-Cursus' was moved to 'AlekSIS/official/AlekSIS-App-Cursus'. Please update any links and bookmarks that may still have the old path.
Resolve "Add chip-like subject field"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add chip-like subject field"
24-add-chip-like-subject-field
into
master
Overview
1
Commits
1
Pipelines
4
Changes
1
Merged
Hangzhi Yu
requested to merge
24-add-chip-like-subject-field
into
master
9 months ago
Overview
1
Commits
1
Pipelines
4
Changes
1
Expand
Closes
#24 (closed)
0
0
Merge request reports
Viewing commit
1e296b12
Show latest version
1 file
+
45
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1e296b12
Add chip-like subject select field
· 1e296b12
Hangzhi Yu
authored
9 months ago
aleksis/apps/cursus/frontend/components/SubjectChipSelectField.vue
0 → 100644
+
45
−
0
Options
<
script
setup
>
import
ForeignKeyChipSelectField
from
"
aleksis.core/components/generic/forms/ForeignKeyChipSelectField.vue
"
;
// eslint-disable-next-line no-unused-vars
import
CreateSubject
from
"
./CreateSubject.vue
"
;
import
SubjectChip
from
"
./SubjectChip.vue
"
;
</
script
>
<
template
>
<foreign-key-chip-select-field
v-bind=
"$attrs"
v-on=
"$listeners"
:fields=
"headers"
create-item-i18n-key=
"cursus.subject.create"
:gql-query=
"gqlQuery"
:gql-create-mutation=
"gqlCreateMutation"
:gql-patch-mutation=
"
{}"
:default-item="defaultItem"
:get-create-data="getCreateData"
:get-patch-data="getPatchData"
:background-color="$attrs['value'].colourBg"
:color="$attrs['value'].colourFg"
return-object
>
<template
#item
="
{ item }">
<subject-chip
:subject=
"item"
/>
</
template
>
<
template
#selection=
"{ item }"
>
<span
:style=
"
{ color: item.colourFg }">
{{
item
.
name
}}
</span>
</
template
>
<
template
#createComponent=
"{ attrs, on, createMode }"
>
<create-subject
v-bind=
"attrs"
v-on=
"on"
/>
</
template
>
</foreign-key-chip-select-field>
</template>
<
script
>
import
SubjectField
from
"
./SubjectField.vue
"
;
export
default
{
name
:
"
SubjectChipSelectField
"
,
extends
:
SubjectField
,
};
</
script
>
<
style
scoped
></
style
>
Loading