Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Madis Cyber
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Soluris
Madis Cyber
Commits
8e59fa85
Commit
8e59fa85
authored
2 years ago
by
Jonathan Foucher
Browse files
Options
Downloads
Patches
Plain Diff
Add top bar with list of steps.
parent
e79845c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/js/components/Evaluations/Single/Components/Steps.vue
+95
-4
95 additions, 4 deletions
...ces/js/components/Evaluations/Single/Components/Steps.vue
with
95 additions
and
4 deletions
resources/js/components/Evaluations/Single/Components/Steps.vue
+
95
−
4
View file @
8e59fa85
<
template
>
<div>
Barre du haut qui montre ou on en est
Etape
{{
evaluation
.
current_step
}}
sur 5
</div>
<div
class=
"row"
>
<div
class=
"col"
v-for=
"step in steps"
>
<div
class=
"step-done"
v-if=
"evaluation.current_step > step.num"
>
<div
class=
"checkmark"
>
<i
class=
"fas fa-check bg-success"
></i>
</div>
<span
class=
"line bg-success"
v-if=
"step.num
<
=
4"
></span>
<div
class=
"text-sm"
>
{{
step
.
title
}}
- Terminé
</div>
<div>
{{
step
.
name
}}
</div>
</div>
<div
class=
"step-done"
v-if=
"evaluation.current_step === step.num"
>
<div
class=
"checkmark"
>
<i
class=
"fas fa-spinner bg-info"
></i>
</div>
<span
class=
"line bg-info"
v-if=
"step.num
<
=
4"
></span>
<div
class=
"text-sm"
>
{{
step
.
title
}}
- En cours
</div>
<div>
{{
step
.
name
}}
</div>
</div>
<div
class=
"step-done"
v-if=
"evaluation.current_step
<
step.num
"
>
<div
class=
"checkmark"
>
<i
class=
"fas fa-lock bg-primary text-white"
></i>
</div>
<span
class=
"line bg-primary"
v-if=
"step.num
<
=
4"
></span>
<div
class=
"text-sm"
>
{{
step
.
title
}}
- En attente
</div>
<div>
{{
step
.
name
}}
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'
EvaluationSteps
'
,
props
:
[
'
evaluation
'
],
data
()
{
return
{
steps
:
[
{
num
:
1
,
name
:
'
Dangers
'
,
title
:
'
Étape 1
'
,
},
{
num
:
2
,
name
:
'
Mesures de sécurité
'
,
title
:
'
Étape 2
'
,
},
{
num
:
3
,
name
:
'
Synthèse des mesures de sécurité
'
,
title
:
'
Étape intermédiaire
'
,
},
{
num
:
4
,
name
:
'
Plan d
\'
action
'
,
title
:
'
Étape 3
'
,
},
{
num
:
5
,
name
:
'
Mesurer la maturité cyber
'
,
title
:
'
Étape 4
'
,
},
]
}
}
}
</
script
>
<
style
scoped
>
.checkmark
{
position
:
relative
;
}
.checkmark
i
{
font-size
:
1.2rem
;
border-radius
:
50%
;
padding
:
0.4rem
;
width
:
2.2rem
;
text-align
:
center
;
line-height
:
1.4rem
;
height
:
2.2rem
;
color
:
white
;
}
.line
{
position
:
absolute
;
display
:
block
;
top
:
1rem
;
left
:
4rem
;
right
:
0.8rem
;
height
:
2px
;
}
</
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