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:
Diffstat (limited to 'app/views/keys/_form.html.haml')
-rw-r--r--app/views/keys/_form.html.haml16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/keys/_form.html.haml b/app/views/keys/_form.html.haml
new file mode 100644
index 00000000000..7d3e14efc1e
--- /dev/null
+++ b/app/views/keys/_form.html.haml
@@ -0,0 +1,16 @@
+%div
+ = form_for @key, :remote => true do |f|
+ -if @key.errors.any?
+ %ul
+ - @key.errors.full_messages.each do |msg|
+ %li= msg
+
+ .span-6
+ = f.label :title
+ = f.text_field :title, :style => "width:300px"
+ .span-6
+ = f.label :key
+ = f.text_area :key, :style => "width:300px; height:130px"
+ .span-6
+ = f.submit 'Save', :class => "lbutton vm"
+