_form.html.haml 611 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
1
%div
2
  = form_for @key do |f|
gitlabhq's avatar
gitlabhq committed
3
    -if @key.errors.any?
4 5 6 7
      .alert-message.block-message.error
        %ul
          - @key.errors.full_messages.each do |msg|
            %li= msg
gitlabhq's avatar
gitlabhq committed
8

9
    .clearfix
gitlabhq's avatar
gitlabhq committed
10
      = f.label :title
11 12
      .input= f.text_field :title
    .clearfix
gitlabhq's avatar
gitlabhq committed
13
      = f.label :key
14 15 16 17 18 19 20
      .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


21
    .actions
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
22 23
      = f.submit 'Save', class: "btn btn-save"
      = link_to "Cancel", keys_path, class: "btn btn-cancel"
gitlabhq's avatar
gitlabhq committed
24