-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added deletion of room booking upon changing exam type
- Loading branch information
1 parent
d8b7068
commit 6c1c1b9
Showing
2 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
frontend/src/components/exams/edit-exam-confirmation-modal.vue
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<template> | ||
<div v-if="visible" class="confirmation-modal"> | ||
<div class="modal-content"> | ||
<p>Room booking for the exam will be deleted. Are you sure you want to proceed?</p> | ||
<div class="button-container"> | ||
<b-btn class="btn-primary" @click="$emit('cancel')">Cancel</b-btn> | ||
<b-btn class="btn-danger mr-2" @click="$emit('confirm')">Confirm</b-btn> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
visible: { | ||
type: Boolean, | ||
default: false | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.confirmation-modal { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 1000; /* Ensure it's above the parent component */ | ||
} | ||
.modal-content { | ||
background-color: #fff; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); | ||
max-width: 25%; | ||
text-align: center; | ||
} | ||
.modal-content p { | ||
margin-bottom: 20px; | ||
} | ||
.button-container { | ||
display: flex; | ||
justify-content: center; | ||
margin-top: 20px; /* Adjust margin as needed */ | ||
} | ||
</style> |
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