Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Grady Corp.
grady
Commits
0e7e8f26
Commit
0e7e8f26
authored
6 years ago
by
Dominik Seeger
Browse files
Options
Downloads
Patches
Plain Diff
fixed submission toolbar styling
parent
150f024e
Loading
Loading
1 merge request
!135
Merge 127 ui improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionBottomToolbar.vue
+96
-58
96 additions, 58 deletions
...ssion_notes/toolbars/AnnotatedSubmissionBottomToolbar.vue
with
96 additions
and
58 deletions
frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionBottomToolbar.vue
+
96
−
58
View file @
0e7e8f26
<!-- 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>
/
{{
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>
/
{{
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
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment