Multiple input elements in popup
[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     <%= form_tag setup_user_url(id: uuid), method: 'get', remote: true, class: 'form-search' do %>    
9       <div>
10         <table><tbody>
11           <tr>
12             <% if disable_email %>
13               <td> Email : </td>
14               <td> <input id="email" maxlength="250" name="email" type="text" disabled=<%=disable_email%> > </td>
15             <% else %>
16               <td> Email : </td>
17               <td> <input id="email" maxlength="250" name="email" type="text" > </td>
18             <% end %>
19           </tr>
20           <tr>
21             <% if disable_email %>
22               <td> Openid Prefix : </td>
23               <td> <input id="openid_prefix" maxlength="250" name="openid_prefix" type="text" disabled=<%=disable_email%> > </td>
24             <% else %>
25               <td> Openid Prefix : </td>
26               <td> <input id="openid_prefix" maxlength="250" name="openid_prefix" type="text"> </td>
27             <% end %>
28           </tr>
29           <tr>
30             <td> Repository Name : </td>
31             <td> <input id="repo_name" maxlength="250" name="repo_name" type="text">
32           </tr>
33           <tr>
34             <td> Virtual Machine : </td>
35             <td> <input id="vm_uuid" maxlength="250" name="vm_uuid" type="text">
36           </tr>
37         </tbody></table>
38       </div>
39       <div align="left">
40         <button type="submit" class="btn">Submit</button>
41         <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
42       </div>
43     <% end %>
44   </div>