Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
20be2218
Commit
20be2218
authored
Apr 14, 2022
by
Cynthia Ng
Committed by
Andrew Fontaine
Apr 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate checkbox to GitLab UI component
parent
d2b2e94e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
app/views/shared/deploy_keys/_project_group_form.html.haml
app/views/shared/deploy_keys/_project_group_form.html.haml
+3
-7
No files found.
app/views/shared/deploy_keys/_project_group_form.html.haml
View file @
20be2218
=
form_for
[
@project
.
namespace
,
@project
,
@deploy_keys
.
new_key
],
url:
namespace_project_deploy_keys_path
,
html:
{
class:
"js-requires-input container"
}
do
|
f
|
=
gitlab_ui_
form_for
[
@project
.
namespace
,
@project
,
@deploy_keys
.
new_key
],
url:
namespace_project_deploy_keys_path
,
html:
{
class:
"js-requires-input container"
}
do
|
f
|
=
form_errors
(
@deploy_keys
.
new_key
)
.form-group.row
=
f
.
label
:title
,
class:
"label-bold"
...
...
@@ -13,12 +13,8 @@
=
f
.
fields_for
:deploy_keys_projects
do
|
deploy_keys_project_form
|
.form-group.row
=
deploy_keys_project_form
.
label
:can_push
do
=
deploy_keys_project_form
.
check_box
:can_push
%strong
=
_
(
'Grant write permissions to this key'
)
.form-group.row
%p
.light.gl-mb-0
=
_
(
'Allow this key to push to this repository'
)
=
deploy_keys_project_form
.
gitlab_ui_checkbox_component
:can_push
,
_
(
'Grant write permissions to this key'
),
help_text:
_
(
'Allow this key to push to this repository'
)
.form-group.row
=
f
.
submit
_
(
"Add key"
),
class:
"btn gl-button btn-confirm"
,
data:
{
qa_selector:
"add_deploy_key_button"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment