Added bootstrap css
[arvados.git] / apps / workbench / app / views / users / _setup_popup.html.erb
1   <div class="modal-header">
2     <h3 id="myModalLabel">Information you had already provided is prefilled for you. You may change it as needed.</h3>
3   </div>
4
5   <div class="modal-body">
6     <% uuid = @object.uuid %>
7     <% disable_email = @object.uuid? %>
8     <% identity_url_prefix = @current_selections[:identiry_url_prefix] %>
9     <% selected_repo = @current_selections[:repo_name] %>
10     <% selected_vm = @current_selections[:vm_uuid] %>
11
12     <%= form_tag setup_user_url(id: uuid), method: 'get', remote: true, class: 'form-search' do %>    
13       <div>
14         <table><tbody>
15           <tr>
16             <% if disable_email %>
17               <td> Email </td>
18               <td> <input id="email" maxlength="250" name="email" type="text" value="<%=@object.email%>" disabled=<%=disable_email%> > </td>
19             <% else %>
20               <td> Email </td>
21               <td> <input id="email" maxlength="250" name="email" type="text" > </td>
22             <% end %>
23           </tr>
24           <tr>
25             <% if disable_email %>
26               <td> Identity URL Prefix </td>
27               <td> <input id="openid_prefix" maxlength="250" name="openid_prefix" type="text" value="<%=identity_url_prefix%>" disabled=<%=disable_email%> > </td>
28             <% else %>
29               <td> Openid Prefix </td>
30               <td> <input id="openid_prefix" maxlength="250" name="openid_prefix" type="text"> </td>
31             <% end %>
32           </tr>
33           <tr>
34             <td> Repository Name </td>
35             <td> <input id="repo_name" maxlength="250" name="repo_name" type="text" value="<%=selected_repo%>">
36           </tr>
37           <tr>
38             <td> Virtual Machine </td>
39             <td>
40               <select name="vm_uuid">
41                 <% @vms.each do |vm| %>
42                   <% if selected_vm == vm.uuid %>
43                     <option value=<%=vm.uuid%> selected> <%=vm.hostname%> </option>
44                   <% else %> 
45                     <option value=<%=vm.uuid%> > <%=vm.hostname%> </option>
46                   <% end %>
47                 <% end %>
48               </select>
49             </td>
50           </tr>
51         </tbody></table>
52       </div>
53       <div align="left">
54         <button type="submit" class="btn btn-primary" autofocus>Submit</button>
55         <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Cancel</button>
56       </div>
57     <% end %>
58   </div>