Merge branch 'improve-project-limit-field' into 'master'

Add min attribute to projects_limit field on user's form

This PR adds `min=0` attribute to `:projects_limit` field on user's form in the admin panel. It improves UX disallowing user to enter negative values in this field.

![](http://take.ms/70V8W)

See merge request !3622
This commit is contained in:
Rémy Coutable
2016-07-08 17:10:23 +00:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -58,6 +58,7 @@ v 8.10.0 (unreleased)
- Add date when user joined the team on the member page
- Fix 404 redirect after validation fails importing a GitLab project
- Added setting to set new users by default as external !4545 (Dravere)
- Add min value for project limit field on user's form !3622 (jastkand)
v 8.9.5
- Add more debug info to import/export and memory killer. !5108
+1 -1
View File
@@ -44,7 +44,7 @@
%legend Access
.form-group
= f.label :projects_limit, class: 'control-label'
.col-sm-10= f.number_field :projects_limit, class: 'form-control'
.col-sm-10= f.number_field :projects_limit, min: 0, class: 'form-control'
.form-group
= f.label :can_create_group, class: 'control-label'