Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-24 19:24:14 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-24 19:24:14 +0400
commit3e09e6f7b8032859a82266282dfd35715b3b3727 (patch)
tree7f882004565743b11cb4c734cbdfb9417fa1a9ab /app/views/profiles/keys/_form.html.haml
parente55e23bbda6f6a95982109bc46e48a5550e4c181 (diff)
Move Profile related controllers under Profiles:: module
Diffstat (limited to 'app/views/profiles/keys/_form.html.haml')
-rw-r--r--app/views/profiles/keys/_form.html.haml24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/views/profiles/keys/_form.html.haml b/app/views/profiles/keys/_form.html.haml
new file mode 100644
index 00000000000..59808d60022
--- /dev/null
+++ b/app/views/profiles/keys/_form.html.haml
@@ -0,0 +1,24 @@
+%div
+ = form_for [:profile, @key] do |f|
+ - if @key.errors.any?
+ .alert.alert-error
+ %ul
+ - @key.errors.full_messages.each do |msg|
+ %li= msg
+
+ .clearfix
+ = f.label :title
+ .input= f.text_field :title
+ .clearfix
+ = f.label :key
+ .input
+ = f.text_area :key, class: [:xxlarge, :thin_area]
+ %p.hint
+ Paste your public key here. Read more about how generate it
+ = link_to "here", help_ssh_path
+
+
+ .actions
+ = f.submit 'Save', class: "btn btn-save"
+ = link_to "Cancel", profile_keys_path, class: "btn btn-cancel"
+