Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
captcha-3376818
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
captcha-3376818
Commits
2805d5d1
Commit
2805d5d1
authored
1 year ago
by
Julian Pustkuchen
Committed by
Thomas Frobieter
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3357694
: Use label & description for captcha label & description instead of custom structure
parent
74595a1b
No related branches found
Branches containing commit
Tags
2.0.0-beta2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/captcha.html.twig
+7
-9
7 additions, 9 deletions
templates/captcha.html.twig
with
7 additions
and
9 deletions
templates/captcha.html.twig
+
7
−
9
View file @
2805d5d1
...
...
@@ -29,19 +29,17 @@ set classes = [
{%
if
is_visible
%}
{%
block
captcha_display
%}
<fieldset
{{
attributes.addClass
(
classes
)
}}
>
{%
if
(
title
or
description
)
%}
{%
if
title
%}
<legend
class=
"captcha__title"
>
{{
title
}}
</legend>
{%
endif
%}
{%
if
description
%}
<div
class=
"captcha__description"
>
{{
description
}}
</div>
{%
endif
%}
{%
if
title
%}
<label
class=
"captcha__title js-form-required form-required"
>
{{
title
}}
</label>
{%
endif
%}
<div
class=
"captcha__element"
>
{{
element
}}
</div>
{%
if
description
%}
<div
class=
"captcha__description description"
>
{{
description
}}
</div>
{%
endif
%}
</fieldset>
{%
endblock
%}
{%
else
%}
...
...
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