summaryrefslogtreecommitdiff
path: root/app/views/profiles/keys/_form.html.haml
blob: 54d64057922f5b7b167c2c257ee33a8c769002e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%div
  = form_for [:profile, @key], html: { class: 'form-horizontal' } do |f|
    - if @key.errors.any?
      .alert.alert-error
        %ul
          - @key.errors.full_messages.each do |msg|
            %li= msg

    .form-group
      = f.label :title, class: 'control-label'
      .col-sm-10= f.text_field :title, class: "form-control"
    .form-group
      = f.label :key, class: 'control-label'
      .col-sm-10
        = f.text_area :key, class: "form-control", rows: 8


    .form-actions
      = f.submit 'Add key', class: "btn btn-create"
      = link_to "Cancel", profile_keys_path, class: "btn btn-cancel"