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
37fb9034
Commit
37fb9034
authored
Aug 09, 2018
by
Jacopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes input alignment in user admin form with errors
parent
d0f03ed9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
15 deletions
+35
-15
app/views/admin/users/_access_levels.html.haml
app/views/admin/users/_access_levels.html.haml
+8
-4
app/views/admin/users/_form.html.haml
app/views/admin/users/_form.html.haml
+22
-11
changelogs/unreleased/49770-fixes-input-alignment-on-user-admin-form-with-errors.yml
...-fixes-input-alignment-on-user-admin-form-with-errors.yml
+5
-0
No files found.
app/views/admin/users/_access_levels.html.haml
View file @
37fb9034
%fieldset
%legend
Access
.form-group.row
=
f
.
label
:projects_limit
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:projects_limit
,
class:
'col-form-label'
.col-sm-10
=
f
.
number_field
:projects_limit
,
min:
0
,
max:
Gitlab
::
Database
::
MAX_INT_VALUE
,
class:
'form-control'
.form-group.row
=
f
.
label
:can_create_group
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:can_create_group
,
class:
'col-form-label'
.col-sm-10
=
f
.
check_box
:can_create_group
.form-group.row
=
f
.
label
:access_level
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:access_level
,
class:
'col-form-label'
.col-sm-10
-
editing_current_user
=
(
current_user
==
@user
)
...
...
@@ -29,7 +32,8 @@
You cannot remove your own admin rights.
.form-group.row
=
f
.
label
:external
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:external
,
class:
'col-form-label'
.col-sm-10
=
f
.
check_box
:external
do
External
...
...
app/views/admin/users/_form.html.haml
View file @
37fb9034
...
...
@@ -5,17 +5,20 @@
%fieldset
%legend
Account
.form-group.row
=
f
.
label
:name
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:name
,
class:
'col-form-label'
.col-sm-10
=
f
.
text_field
:name
,
required:
true
,
autocomplete:
'off'
,
class:
'form-control'
%span
.help-inline
* required
.form-group.row
=
f
.
label
:username
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:username
,
class:
'col-form-label'
.col-sm-10
=
f
.
text_field
:username
,
required:
true
,
autocomplete:
'off'
,
autocorrect:
'off'
,
autocapitalize:
'off'
,
spellcheck:
false
,
class:
'form-control'
%span
.help-inline
* required
.form-group.row
=
f
.
label
:email
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:email
,
class:
'col-form-label'
.col-sm-10
=
f
.
text_field
:email
,
required:
true
,
autocomplete:
'off'
,
class:
'form-control'
%span
.help-inline
* required
...
...
@@ -24,7 +27,8 @@
%fieldset
%legend
Password
.form-group.row
=
f
.
label
:password
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:password
,
class:
'col-form-label'
.col-sm-10
%strong
Reset link will be generated and sent to the user.
...
...
@@ -34,10 +38,12 @@
%fieldset
%legend
Password
.form-group.row
=
f
.
label
:password
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:password
,
class:
'col-form-label'
.col-sm-10
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
,
class:
'form-control'
.form-group.row
=
f
.
label
:password_confirmation
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:password_confirmation
,
class:
'col-form-label'
.col-sm-10
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
,
class:
'form-control'
=
render
partial:
'access_levels'
,
locals:
{
f:
f
}
...
...
@@ -45,21 +51,26 @@
%fieldset
%legend
Profile
.form-group.row
=
f
.
label
:avatar
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:avatar
,
class:
'col-form-label'
.col-sm-10
=
f
.
file_field
:avatar
.form-group.row
=
f
.
label
:skype
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:skype
,
class:
'col-form-label'
.col-sm-10
=
f
.
text_field
:skype
,
class:
'form-control'
.form-group.row
=
f
.
label
:linkedin
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:linkedin
,
class:
'col-form-label'
.col-sm-10
=
f
.
text_field
:linkedin
,
class:
'form-control'
.form-group.row
=
f
.
label
:twitter
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:twitter
,
class:
'col-form-label'
.col-sm-10
=
f
.
text_field
:twitter
,
class:
'form-control'
.form-group.row
=
f
.
label
:website_url
,
'Website'
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
=
f
.
label
:website_url
,
'Website'
,
class:
'col-form-label'
.col-sm-10
=
f
.
text_field
:website_url
,
class:
'form-control'
.form-actions
...
...
changelogs/unreleased/49770-fixes-input-alignment-on-user-admin-form-with-errors.yml
0 → 100644
View file @
37fb9034
---
title
:
Fixes input alignment in user admin form with errors
merge_request
:
21108
author
:
Jacopo Beschi @jacopo-beschi
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