1 <div class="modal-dialog modal-with-loading-spinner">
2 <div class="modal-content">
4 <%= form_tag add_ssh_key_path, {method: 'get', id: 'add_new_key_form', name: 'add_new_key_form', class: 'form-search, new_authorized_key', remote: true} do %>
6 <div class="modal-header">
7 <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">×</button>
9 <div class="col-sm-6"> <h4 class="modal-title">Add SSH Key</h4> </div>
10 <div class="spinner spinner-32px spinner-h-center col-sm-1" hidden="true"></div>
15 <div class="modal-body">
16 <div> <%= link_to "Click here to learn about SSH keys in Arvados.",
17 "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
18 style: "font-weight: bold",
21 <div class="form-group">
22 <label for="public_key">Public Key</label>
23 <textarea class="form-control" id="public_key" rows="4" name="public_key" type="text"/>
25 <div class="form-group">
26 <label for="name">Name</label>
27 <input class="form-control" id="name" maxlength="250" name="name" type="text"/>
31 <div class="modal-footer">
32 <button type="submit" class="btn btn-primary" autofocus>Submit</button>
33 <button class="btn btn-default" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">Cancel</button>