Skip to content

Commit

Permalink
last changes on create subject
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiscauwel committed May 20, 2024
1 parent 1d15183 commit 76d4d50
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,4 @@ defineEmits<{
}>();
</script>

<style scoped>
.body {
height: 53vh;
}
</style>
<style scoped></style>
41 changes: 25 additions & 16 deletions frontend/src/views/subject/CreateSubjectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,24 @@
</v-card-actions>
</v-card>
</v-dialog>
<CreateSubjectHeaderContainer
:image-path="`https://www.ugent.be/img/dcom/faciliteiten/ufo-logo.png`"
:current-user-as-instructor="currentUserAsInstructor"
:is-form-error="isFormError"
@update:subject-name="onSubjectNameUpdated"
@update:active-academic-year="activeAcademicYear = $event"
@update:current-user-as-instructor="currentUserAsInstructor = $event"
>
</CreateSubjectHeaderContainer>
<CreateSubjectBody
:current-user="currentUser"
:instructors="shownInstructors"
@add-instructor="addInstructor"
@remove-instructor="removeInstructor"
>
</CreateSubjectBody>
<div class="flex-container">
<CreateSubjectHeaderContainer
:image-path="`https://www.ugent.be/img/dcom/faciliteiten/ufo-logo.png`"
:current-user-as-instructor="currentUserAsInstructor"
:is-form-error="isFormError"
@update:subject-name="onSubjectNameUpdated"
@update:active-academic-year="activeAcademicYear = $event"
@update:current-user-as-instructor="currentUserAsInstructor = $event"
>
</CreateSubjectHeaderContainer>
<CreateSubjectBody
:current-user="currentUser"
:instructors="shownInstructors"
@add-instructor="addInstructor"
@remove-instructor="removeInstructor"
>
</CreateSubjectBody>
</div>

<div class="confirm-btn-container">
<v-btn class="ma-2" color="grey" @click="dialog = true">
Expand Down Expand Up @@ -177,4 +179,11 @@ async function handleSubmit() {
.back-button {
margin: 30px;
}
.flex-container {
display: flex;
flex-direction: column;
align-items: stretch;
width: 100%;
}
</style>

0 comments on commit 76d4d50

Please sign in to comment.