summaryrefslogtreecommitdiff
path: root/app/views/projects/deploy_keys/_form.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-23 19:47:22 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-23 19:47:22 +0300
commit2ed7cbfba4ff3c6a4cf3e72515a0375544998de0 (patch)
treeae6d7530745c80633cd993c99f7820e1452f3e1b /app/views/projects/deploy_keys/_form.html.haml
parent95791316f4037273af7b747ce1851d5f4e46933f (diff)
downloadgitlab-ce-2ed7cbfba4ff3c6a4cf3e72515a0375544998de0.tar.gz
Move projects controllers/views in Projects module
Diffstat (limited to 'app/views/projects/deploy_keys/_form.html.haml')
-rw-r--r--app/views/projects/deploy_keys/_form.html.haml23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/views/projects/deploy_keys/_form.html.haml b/app/views/projects/deploy_keys/_form.html.haml
new file mode 100644
index 00000000000..71bf309dd8b
--- /dev/null
+++ b/app/views/projects/deploy_keys/_form.html.haml
@@ -0,0 +1,23 @@
+%div
+ = form_for [@project, @key], url: project_deploy_keys_path 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 a machine public key here. Read more about how generate it
+ = link_to "here", help_ssh_path
+
+ .actions
+ = f.submit 'Create', class: "btn-create btn"
+ = link_to "Cancel", project_deploy_keys_path(@project), class: "btn btn-cancel"
+