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

    .form-group
      = f.label :key, "公钥", class: 'label-light'
      = f.text_area :key, class: "form-control", rows: 8, required: true
    .form-group
      = f.label :title, "标题", class: 'label-light'
      = f.text_field :title, class: "form-control", required: true

    .prepend-top-default
      = f.submit '增加密钥', class: "btn btn-create"