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
d1d8acac
Commit
d1d8acac
authored
Oct 24, 2019
by
jeldergl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update selects to use custom GitLab styles
parent
7c4bc9d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
app/views/projects/mirrors/_authentication_method.html.haml
app/views/projects/mirrors/_authentication_method.html.haml
+6
-4
app/views/projects/mirrors/_mirror_repos_form.html.haml
app/views/projects/mirrors/_mirror_repos_form.html.haml
+3
-1
changelogs/unreleased/28338-different-dropdown-styles-on-settings-page.yml
...ased/28338-different-dropdown-styles-on-settings-page.yml
+5
-0
ee/app/views/projects/mirrors/_mirror_repos_form.html.haml
ee/app/views/projects/mirrors/_mirror_repos_form.html.haml
+3
-1
No files found.
app/views/projects/mirrors/_authentication_method.html.haml
View file @
d1d8acac
...
...
@@ -3,10 +3,12 @@
.form-group
=
f
.
label
:auth_method
,
_
(
'Authentication method'
),
class:
'label-bold'
=
f
.
select
:auth_method
,
options_for_select
(
auth_options
,
mirror
.
auth_method
),
{},
{
class:
"form-control js-mirror-auth-type qa-authentication-method"
}
=
f
.
hidden_field
:auth_method
,
value:
"password"
,
class:
"js-hidden-mirror-auth-type"
.select-wrapper
=
f
.
select
:auth_method
,
options_for_select
(
auth_options
,
mirror
.
auth_method
),
{},
{
class:
"form-control select-control js-mirror-auth-type qa-authentication-method"
}
=
icon
(
'chevron-down'
)
=
f
.
hidden_field
:auth_method
,
value:
"password"
,
class:
"js-hidden-mirror-auth-type"
.form-group
.collapse.js-well-changing-auth
...
...
app/views/projects/mirrors/_mirror_repos_form.html.haml
View file @
d1d8acac
.form-group
=
label_tag
:mirror_direction
,
_
(
'Mirror direction'
),
class:
'label-light'
=
select_tag
:mirror_direction
,
options_for_select
([[
_
(
'Push'
),
'push'
]]),
class:
'form-control js-mirror-direction qa-mirror-direction'
,
disabled:
true
.select-wrapper
=
select_tag
:mirror_direction
,
options_for_select
([[
_
(
'Push'
),
'push'
]]),
class:
'form-control select-control js-mirror-direction qa-mirror-direction'
,
disabled:
true
=
icon
(
'chevron-down'
)
=
render
partial:
"projects/mirrors/mirror_repos_push"
,
locals:
{
f:
f
}
changelogs/unreleased/28338-different-dropdown-styles-on-settings-page.yml
0 → 100644
View file @
d1d8acac
---
title
:
Change selects from default browser style to custom style
merge_request
:
author
:
type
:
other
ee/app/views/projects/mirrors/_mirror_repos_form.html.haml
View file @
d1d8acac
...
...
@@ -10,7 +10,9 @@
.form-group
=
label_tag
:mirror_direction
,
_
(
'Mirror direction'
),
class:
'label-light'
=
select_tag
:mirror_direction
,
options_for_select
(
direction_options
),
class:
'form-control js-mirror-direction qa-mirror-direction'
,
disabled:
(
direction_options
.
count
==
1
)
||
has_existing_pull_mirror
.select-wrapper
=
select_tag
:mirror_direction
,
options_for_select
(
direction_options
),
class:
'form-control select-control js-mirror-direction qa-mirror-direction'
,
disabled:
(
direction_options
.
count
==
1
)
||
has_existing_pull_mirror
=
icon
(
'chevron-down'
)
.js-form-insertion-point
...
...
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