Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_suite_dsfr
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ui_suite_dsfr
Commits
99801607
Commit
99801607
authored
9 months ago
by
Sorya
Committed by
Mikael Meulle
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3460549
by spryah, pdureau, just_like_good_vibes: Add stepper component (indicateur d'étape)
parent
e0b8b35e
No related branches found
No related tags found
1 merge request
!106
Issue #3460549 by musathomas: add stepper pattern
Pipeline
#326069
passed with warnings
9 months ago
Stage: build
Stage: validate
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/patterns/stepper/pattern-stepper.html.twig
+17
-0
17 additions, 0 deletions
templates/patterns/stepper/pattern-stepper.html.twig
templates/patterns/stepper/stepper.ui_patterns.yml
+49
-0
49 additions, 0 deletions
templates/patterns/stepper/stepper.ui_patterns.yml
with
66 additions
and
0 deletions
templates/patterns/stepper/pattern-stepper.html.twig
0 → 100644
+
17
−
0
View file @
99801607
{%
set
title_tag
=
title_tag
|
default
(
'h2'
)
%}
<div
{{
attributes.addClass
(
'fr-stepper'
)
}}
>
<
{{
title_tag
}}
class
="
fr-stepper__title
"
>
{{
title
}}
<span
class=
"fr-stepper__state"
>
{{
state
}}
</span>
</
{{
title_tag
}}
>
{%
set
current_step
=
current_step
|
default
(
1
)
%}
{%
set
steps
=
steps
|
default
(
2
)
%}
<div
class=
"fr-stepper__steps"
data-fr-current-step=
"
{{
current_step
}}
"
data-fr-steps=
"
{{
steps
}}
"
></div>
{%
if
detail
and
current_step
<
steps
%}
<p
class=
"fr-stepper__details"
>
<span
class=
"fr-text--bold"
>
{{
'Next step:'
|
t
}}
</span>
{{
detail
}}
</p>
{%
endif
%}
</div>
This diff is collapsed.
Click to expand it.
templates/patterns/stepper/stepper.ui_patterns.yml
0 → 100644
+
49
−
0
View file @
99801607
stepper
:
label
:
Stepper
description
:
"
The
stepper
shows
the
user
where
they
are
in
a
form
or
process."
links
:
-
"
https://www.systeme-de-design.gouv.fr/composants-et-modeles/composants/indicateur-d-etapes"
settings
:
title_tag
:
type
:
select
label
:
HTML tag for title
options
:
h1
:
h1
h2
:
h2 (default)
h3
:
h3
h4
:
h4
h5
:
h5
h6
:
h6
default_value
:
h2
preview
:
h2
current_step
:
type
:
number
label
:
Current step
description
:
"
Number
of
the
current
step."
preview
:
2
default_value
:
1
min
:
1
max
:
8
steps
:
type
:
number
label
:
Total steps
description
:
"
Number
of
steps
in
total."
preview
:
8
min
:
2
max
:
8
fields
:
title
:
type
:
text
label
:
Title
description
:
"
Title
of
the
current
step."
preview
:
"
Title
of
the
current
step"
state
:
type
:
text
label
:
State
description
:
"
State
of
the
process"
preview
:
"
Step
2
of
8"
detail
:
type
:
text
label
:
Bottom detail
description
:
"
Title
of
the
next
step."
preview
:
"
Title
of
the
next
step"
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