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
91134115
Commit
91134115
authored
Sep 21, 2018
by
Annabel Dunstone Gray
Committed by
Clement Ho
Sep 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align form labels following Bootstrap 4 docs
parent
b7dfe76e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
10 deletions
+14
-10
app/assets/stylesheets/bootstrap_migration.scss
app/assets/stylesheets/bootstrap_migration.scss
+0
-1
app/views/admin/appearances/_form.html.haml
app/views/admin/appearances/_form.html.haml
+3
-3
app/views/admin/applications/_form.html.haml
app/views/admin/applications/_form.html.haml
+2
-2
app/views/groups/_group_admin_settings.html.haml
app/views/groups/_group_admin_settings.html.haml
+2
-2
app/views/groups/settings/_permissions.html.haml
app/views/groups/settings/_permissions.html.haml
+1
-1
app/views/shared/_visibility_level.html.haml
app/views/shared/_visibility_level.html.haml
+1
-1
changelogs/unreleased/align-form-labels.yml
changelogs/unreleased/align-form-labels.yml
+5
-0
No files found.
app/assets/stylesheets/bootstrap_migration.scss
View file @
91134115
...
...
@@ -93,7 +93,6 @@ hr {
}
.form-group.row
.col-form-label
{
padding-top
:
0
;
// Bootstrap 4 aligns labels to the left
// for horizontal forms
@include
media-breakpoint-up
(
md
)
{
...
...
app/views/admin/appearances/_form.html.haml
View file @
91134115
...
...
@@ -5,7 +5,7 @@
%legend
Navigation bar:
.form-group.row
=
f
.
label
:header_logo
,
'Header logo'
,
class:
'col-sm-2 col-form-label'
=
f
.
label
:header_logo
,
'Header logo'
,
class:
'col-sm-2 col-form-label
pt-0
'
.col-sm-10
-
if
@appearance
.
header_logo?
=
image_tag
@appearance
.
header_logo_url
,
class:
'appearance-light-logo-preview'
...
...
@@ -22,7 +22,7 @@
%legend
Favicon:
.form-group.row
=
f
.
label
:favicon
,
'Favicon'
,
class:
'col-sm-2 col-form-label'
=
f
.
label
:favicon
,
'Favicon'
,
class:
'col-sm-2 col-form-label
pt-0
'
.col-sm-10
-
if
@appearance
.
favicon?
=
image_tag
@appearance
.
favicon_url
,
class:
'appearance-light-logo-preview'
...
...
@@ -51,7 +51,7 @@
.hint
Description parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_page_path
(
'user/markdown'
),
target:
'_blank'
}
.
.form-group.row
=
f
.
label
:logo
,
class:
'col-sm-2 col-form-label'
=
f
.
label
:logo
,
class:
'col-sm-2 col-form-label
pt-0
'
.col-sm-10
-
if
@appearance
.
logo?
=
image_tag
@appearance
.
logo_url
,
class:
'appearance-logo-preview'
...
...
app/views/admin/applications/_form.html.haml
View file @
91134115
...
...
@@ -21,14 +21,14 @@
for local tests
=
content_tag
:div
,
class:
'form-group row'
do
=
f
.
label
:trusted
,
class:
'col-sm-2 col-form-label'
=
f
.
label
:trusted
,
class:
'col-sm-2 col-form-label
pt-0
'
.col-sm-10
=
f
.
check_box
:trusted
%span
.form-text.text-muted
Trusted applications are automatically authorized on GitLab OAuth flow.
.form-group.row
=
f
.
label
:scopes
,
class:
'col-sm-2 col-form-label'
=
f
.
label
:scopes
,
class:
'col-sm-2 col-form-label
pt-0
'
.col-sm-10
=
render
'shared/tokens/scopes_form'
,
prefix:
'doorkeeper_application'
,
token:
application
,
scopes:
@scopes
...
...
app/views/groups/_group_admin_settings.html.haml
View file @
91134115
.form-group.row
=
f
.
label
:lfs_enabled
,
'Large File Storage'
,
class:
'col-form-label col-sm-2'
=
f
.
label
:lfs_enabled
,
'Large File Storage'
,
class:
'col-form-label col-sm-2
pt-0
'
.col-sm-10
.form-check
=
f
.
check_box
:lfs_enabled
,
checked:
@group
.
lfs_enabled?
,
class:
'form-check-input'
...
...
@@ -11,7 +11,7 @@
%span
.descr
This setting can be overridden in each project.
.form-group.row
=
f
.
label
:require_two_factor_authentication
,
'Two-factor authentication'
,
class:
'col-form-label col-sm-2'
=
f
.
label
:require_two_factor_authentication
,
'Two-factor authentication'
,
class:
'col-form-label col-sm-2
pt-0
'
.col-sm-10
.form-check
=
f
.
check_box
:require_two_factor_authentication
,
class:
'form-check-input'
...
...
app/views/groups/settings/_permissions.html.haml
View file @
91134115
...
...
@@ -10,7 +10,7 @@
=
render
'shared/allow_request_access'
,
form:
f
.form-group.row
%label
.col-form-label.col-sm-2
%label
.col-form-label.col-sm-2
.pt-0
=
s_
(
'GroupSettings|Share with group lock'
)
.col-sm-10
.form-check
...
...
app/views/shared/_visibility_level.html.haml
View file @
91134115
...
...
@@ -2,7 +2,7 @@
.form-group.row.visibility-level-setting
-
if
with_label
=
f
.
label
:visibility_level
,
class:
'col-form-label col-sm-2'
do
=
f
.
label
:visibility_level
,
class:
'col-form-label col-sm-2
pt-0
'
do
Visibility Level
=
link_to
icon
(
'question-circle'
),
help_page_path
(
"public_access/public_access"
)
%div
{
:class
=>
(
with_label
?
"col-sm-10"
:
"col-sm-12"
)
}
...
...
changelogs/unreleased/align-form-labels.yml
0 → 100644
View file @
91134115
---
title
:
Align form labels following Bootstrap 4 docs
merge_request
:
21752
author
:
type
:
fixed
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