Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
grady
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
grady
Merge requests
!134
WIP Merge 127 ui improvements
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
WIP Merge 127 ui improvements
merge-127-ui-improvements
into
master
Overview
0
Commits
6
Pipelines
1
Changes
1
Closed
Dominik Seeger
requested to merge
merge-127-ui-improvements
into
master
6 years ago
Overview
0
Commits
6
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
8a8cb89f
Prev
Next
Show latest version
1 file
+
79
−
67
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
8a8cb89f
further improved line wrapping
· 8a8cb89f
Dominik Seeger
authored
6 years ago
frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionBottomToolbar.vue
+
79
−
67
Options
<!-- TODO: remove inline stylings -->
<
template
>
<v-container>
<v-layout
wrap
>
<v-flex
sm4
md4
lg3
>
<v-tooltip
top
v-if=
"skippable"
>
<v-btn
slot=
"activator"
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>
</v-flex>
<v-flex
xs
>
<span
class=
"mr-2"
>
Score:
</span>
<input
class=
"score-text-field"
type=
"number"
v-model=
"score"
@
input=
"validateScore"
@
change=
"validateScore"
/>
<span>
/
{{
fullScore
}}
</span>
<v-btn
outline
round
flat
@
click=
"score = 0"
color=
"red lighten-1"
class=
"score-button"
>
0
</v-btn>
<v-btn
outline
round
flat
@
click=
"score = fullScore"
color=
"blue darken-3"
class=
"score-button"
>
{{
fullScore
}}
</v-btn>
<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
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
class=
"submit-container"
xs4
sm4
>
<v-layout
wrap
>
<v-flex
xs4
md3
>
<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"
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-container>
<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"
type=
"number"
v-model=
"score"
@
input=
"validateScore"
@
change=
"validateScore"
/>
<span>
/
{{
fullScore
}}
</span>
<v-btn
outline
round
flat
class=
"score-button"
@
click=
"score=0"
color=
"red lighten-1"
>
0
</v-btn>
<v-btn
outline
round
flat
@
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"
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
>
@@ -169,6 +170,9 @@ export default {
</
script
>
<
style
scoped
>
.bottom-container
{
padding
:
0px
;
}
.bottom-toolbar
{
font-size
:
large
;
}
@@ -194,8 +198,16 @@ export default {
padding-top
:
0
;
margin-top
:
0
;
}
.submit-container
{
min-width
:
260px
;
.submit-flex
{
min-width
:
190px
;
margin-left
:
10px
;
}
.score-flex
{
margin-left
:
10px
;
min-width
:
250px
;
}
.score-submit-container
{
justify-content
:
space-between
;
}
</
style
>
Loading