Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / users / _add_ssh_key_popup.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <div class="modal-dialog modal-with-loading-spinner">
6   <div class="modal-content">
7
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 %>
9
10       <div class="modal-header">
11         <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">&times;</button>
12         <div>
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>
15         </div>
16         <br/>
17       </div>
18
19       <div class="modal-body">
20         <div> <%= link_to "Click here to learn about SSH keys in Arvados.",
21                   "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
22                   style: "font-weight: bold",
23                   target: "_blank" %>
24         </div>
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"/>
28         </div>
29         <div class="form-group">
30           <label for="name">Name</label>
31           <input class="form-control" id="name" maxlength="250" name="name" type="text"/>
32         </div>
33       </div>
34
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>
38       </div>
39
40     <% end #form %>
41   </div>
42 </div>