Skip to content
Snippets Groups Projects
Commit 0e7e8f26 authored by Dominik Seeger's avatar Dominik Seeger
Browse files

fixed submission toolbar styling

parent 150f024e
No related branches found
No related tags found
1 merge request!135Merge 127 ui improvements
<!-- TODO: remove inline stylings -->
<template>
<v-toolbar dense class="bottom-toolbar">
<v-tooltip top v-if="skippable">
<v-btn
slot="activator"
id="skip-submission"
outline round color="grey darken-2"
@click="skipSubmission"
>Skip</v-btn>
<span>Skip this submission</span>
</v-tooltip>
<v-spacer/>
<v-alert
class="score-alert ma-3"
color="error"
icon="warning"
:value="scoreError"
>{{ scoreError }}</v-alert>
<span class="mr-2">Score:</span>
<input
class="score-text-field"
type="number"
id="score-input"
v-model="score"
@input="validateScore"
@change="validateScore"
/>
<span>&nbsp;/ {{fullScore}}</span>
<v-btn
outline round flat
id="score-zero"
@click="score = 0"
color="red lighten-1"
class="score-button">0</v-btn>
<v-btn
outline round flat
id="score-full"
@click="score = fullScore"
color="blue darken-3"
class="score-button">{{fullScore}}</v-btn>
<v-tooltip top v-if="showFinalCheckbox">
<v-toolbar-items slot="activator" style="margin-top: 28px;">
<v-checkbox slot="activator" v-model="isFinal" class="final-checkbox"/>
<span>Final</span>
</v-toolbar-items>
<span>Non final feedback will be sent to the reviewer.</span>
</v-tooltip>
<v-tooltip top>
<v-btn
color="success"
slot="activator"
id="submit-feedback"
:loading="loading"
@click="submit"
>Submit<v-icon>chevron_right</v-icon></v-btn>
<span>Submit and continue</span>
</v-tooltip>
</v-toolbar>
<v-container class="bottom-container">
<v-layout wrap>
<v-flex sm4 md4 lg2>
<v-tooltip top v-if="skippable">
<v-btn slot="activator" outline round
id="skip-submission"
color="grey darken-2"
@click="skipSubmission">Skip</v-btn>
<span>Skip this submission</span>
</v-tooltip>
<v-spacer />
<v-alert class="score-alert ma-3"
color="error"
icon="warning"
:value="scoreError">{{ scoreError }}</v-alert>
</v-flex>
<v-flex>
<v-layout wrap class="score-submit-container">
<v-flex xs5 class="score-flex">
<span class="mr-2">Score:</span>
<input class="score-text-field"
id="score-input"
type="number"
v-model="score"
@input="validateScore"
@change="validateScore" />
<span>&nbsp;/ {{fullScore}}</span>
<v-btn outline round flat
id="score-zero"
class="score-button"
@click="score=0"
color="red lighten-1">0
</v-btn>
<v-btn outline round flat
id="score-full"
@click="score=fullScore"
color="blue darken-3"
class="score-button">{{fullScore}}
</v-btn>
</v-flex>
<v-flex class="submit-flex" xs3 sm3>
<v-layout>
<v-flex xs4>
<v-tooltip top v-if="showFinalCheckbox">
<v-toolbar-items class="final-container"
slot="activator">
<label>Final</label>
<v-checkbox slot="activator"
v-model="isFinal"
class="final-checkbox" />
</v-toolbar-items>
<span>Non final feedback will be sent to the reviewer.</span>
</v-tooltip>
</v-flex>
<v-flex xs>
<v-tooltip top>
<v-btn color="success"
id="submit-feedback"
slot="activator"
:loading="loading"
@click="submit">Submit
<v-icon>chevron_right</v-icon>
</v-btn>
<span>Submit and continue</span>
</v-tooltip>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-container>
</template>
<script>
......@@ -158,6 +175,9 @@ export default {
</script>
<style scoped>
.bottom-container {
padding: 0px;
}
.bottom-toolbar {
font-size: large;
}
......@@ -174,7 +194,25 @@ export default {
.score-button {
min-width: 0px;
}
.final-container {
margin-top: 15px;
height: 10px;
}
.final-checkbox {
float: left;
margin-left: 10px;
padding-top: 0;
margin-top: 0;
}
.submit-flex {
min-width: 190px;
margin-left: 10px;
}
.score-flex {
margin-left: 10px;
min-width: 250px;
}
.score-submit-container {
justify-content: space-between;
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment