1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <div class="modal-dialog modal-with-loading-spinner">
6 <div class="modal-content">
8 <%= 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 %>
10 <div class="modal-header">
11 <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">×</button>
13 <div class="col-sm-6"> <h4 class="modal-title">Add SSH Key</h4> </div>
14 <div class="spinner spinner-32px spinner-h-center col-sm-1" hidden="true"></div>
19 <div class="modal-body">
20 <div> <%= link_to "Click here to learn about SSH keys in Arvados.",
21 "#{Rails.configuration.Workbench.ArvadosDocsite}/user/getting_started/ssh-access-unix.html",
22 style: "font-weight: bold",
25 <div class="form-group">
26 <label for="public_key">Public Key</label>
27 <textarea class="form-control" id="public_key" rows="4" name="public_key" type="text"/>
29 <div class="form-group">
30 <label for="name">Name</label>
31 <input class="form-control" id="name" maxlength="250" name="name" type="text"/>
35 <div class="modal-footer">
36 <button type="button" class="btn btn-default" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">Cancel</button>
37 <button type="submit" class="btn btn-primary" autofocus>Submit</button>