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>
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] %>
12 <%= form_tag setup_user_url(id: uuid), method: 'get', remote: true, class: 'form-search' do %>
16 <% if disable_email %>
18 <td> <input id="email" maxlength="250" name="email" type="text" value="<%=@object.email%>" disabled=<%=disable_email%> > </td>
21 <td> <input id="email" maxlength="250" name="email" type="text" > </td>
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>
29 <td> Openid Prefix </td>
30 <td> <input id="openid_prefix" maxlength="250" name="openid_prefix" type="text"> </td>
34 <td> Repository Name </td>
35 <td> <input id="repo_name" maxlength="250" name="repo_name" type="text" value="<%=selected_repo%>">
38 <td> Virtual Machine </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>
45 <option value=<%=vm.uuid%> > <%=vm.hostname%> </option>
54 <button type="submit" class="btn">Submit</button>
55 <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>