summaryrefslogtreecommitdiff
path: root/app/views/profiles/keys
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-07 13:48:18 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-07 13:48:18 +0100
commitdddfbb653eee2037ede922ca4eafc0ca9d7b0af0 (patch)
treebbdba7e460b30f425b22987f35a6b385c4953174 /app/views/profiles/keys
parent7d3edf2520c4884b896c962989eaea2d19340e1d (diff)
parenta468bf346af9f86b4a9e5d3ba027e0debad948cc (diff)
downloadgitlab-ce-dddfbb653eee2037ede922ca4eafc0ca9d7b0af0.tar.gz
Merge branch 'master' into ui/misc
Diffstat (limited to 'app/views/profiles/keys')
-rw-r--r--app/views/profiles/keys/_form.html.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/profiles/keys/_form.html.haml b/app/views/profiles/keys/_form.html.haml
index b76a5b636ac..2a8800de60e 100644
--- a/app/views/profiles/keys/_form.html.haml
+++ b/app/views/profiles/keys/_form.html.haml
@@ -1,5 +1,5 @@
%div
- = form_for [:profile, @key], html: { class: 'form-horizontal' } do |f|
+ = form_for [:profile, @key], html: { class: 'form-horizontal js-requires-input' } do |f|
- if @key.errors.any?
.alert.alert-danger
%ul
@@ -9,12 +9,11 @@
.form-group
= f.label :key, class: 'control-label'
.col-sm-10
- = f.text_area :key, class: "form-control", rows: 8
+ = f.text_area :key, class: "form-control", rows: 8, autofocus: true, required: true
.form-group
= f.label :title, class: 'control-label'
- .col-sm-10= f.text_field :title, class: "form-control"
+ .col-sm-10= f.text_field :title, class: "form-control", required: true
.form-actions
= f.submit 'Add key', class: "btn btn-create"
= link_to "Cancel", profile_keys_path, class: "btn btn-cancel"
-