diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-10-21 14:54:24 +0300 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-11-01 18:48:38 +0300 |
commit | a15e278e4ad8066bd99bb323b4f6d58803f9a2aa (patch) | |
tree | 691c00bf998258d48581f60d00c30052d6445c0a /app/views/shared/_group_form.html.haml | |
parent | 93bd3dd8a8f587dc860c72653364d853c27bc6fd (diff) |
Add gl field errors to group name edit form.
Diffstat (limited to 'app/views/shared/_group_form.html.haml')
-rw-r--r-- | app/views/shared/_group_form.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/shared/_group_form.html.haml b/app/views/shared/_group_form.html.haml index 67072b9fc2a..ba25e09d638 100644 --- a/app/views/shared/_group_form.html.haml +++ b/app/views/shared/_group_form.html.haml @@ -9,11 +9,13 @@ = f.label :path, class: 'control-label' do Group path .col-sm-10 - .input-group + .input-group.gl-field-error-anchor .input-group-addon = root_url = f.text_field :path, placeholder: 'open-source', class: 'form-control', - autofocus: local_assigns[:autofocus] || false + autofocus: local_assigns[:autofocus] || false, pattern: "[a-zA-Z0-9-_]+", + required: true, title: 'Please choose a group name with no special characters.' + - if @group.persisted? .alert.alert-warning.prepend-top-10 %ul |