Merge branch 'master' into 3193-manage-account
[arvados.git] / apps / workbench / app / views / users / _manage_account.html.erb
1 <div class="col-sm-6">
2   <div class="panel-group" id="arv-adv-accordion">
3     <% ['Virtual Machines',
4        'Repositories',
5        'Current Token'].each do |section| %>
6       <% section_id = section.gsub(" ","_").downcase %>
7       <div class="panel panel-default">
8         <div class="panel-heading">
9           <h4 class="panel-title">
10             <a data-parent="#arv-adv-accordion" href="#manage_<%=section_id%>">
11               <%= section %>
12             </a>
13           </h4>
14         </div>
15         <div id="manage_<%=section_id%>">
16           <div class="panel-body">
17             <%= render partial: "manage_#{section_id}" %>
18           </div>
19         </div>
20       </div>
21     <% end %>
22   </div>
23 </div>
24 <div class="col-sm-6">
25   <div class="panel-group" id="arv-adv-accordion">
26     <% ['SSH Keys'].each do |section| %>
27       <% section_id = section.gsub(" ","_").downcase %>
28       <div class="panel panel-default">
29         <div class="panel-heading">
30           <div class="pull-right">
31             <%= link_to "Add new SSH key", add_ssh_key_popup_url,
32                          {class: 'btn btn-xs btn-primary', :remote => true, 'data-toggle' =>  "modal",
33                           'data-target' => '#add-ssh-key-modal-window'}  %>
34           </div>
35           <h4 class="panel-title">
36             <a data-parent="#arv-adv-accordion" href="#manage_<%=section_id%>">
37               <%= section %>
38             </a>
39           </h4>
40         </div>
41         <div id="manage_<%=section_id%>">
42           <div class="panel-body">
43             <%= render partial: "manage_#{section_id}" %>
44           </div>
45         </div>
46       </div>
47     <% end %>
48   </div>
49   <div id="add-ssh-key-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
50 </div>