diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-08 17:10:23 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-08 17:10:23 +0000 |
commit | 79304c6a7f4433b6c00a2eb3db13bfeb68a87ea1 (patch) | |
tree | 3879091d3b483c51ccad7b90d45081c66ae2e2ad /app/views | |
parent | df97d5514e065d229dabe24f436923c4931ea828 (diff) | |
parent | 8e1a18f11f671249404b94f4c9e2639918ab3773 (diff) | |
download | gitlab-ce-79304c6a7f4433b6c00a2eb3db13bfeb68a87ea1.tar.gz |
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
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/users/_form.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml index fe0b9d3a491..3145212728f 100644 --- a/app/views/admin/users/_form.html.haml +++ b/app/views/admin/users/_form.html.haml @@ -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' |