1 <div class="modal-dialog modal-with-loading-spinner">
2 <div class="modal-content">
4 <%= form_tag setup_user_path, {id: 'setup_form', name: 'setup_form', method: 'get',
5 class: 'form-search', remote: true} do %>
7 <div class="modal-header">
8 <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">×</button>
10 <div class="col-sm-6"> <h4 class="modal-title">Setup Shell Account</h4> </div>
11 <div class="spinner spinner-32px spinner-h-center col-sm-1" hidden="true"></div>
16 <div class="modal-body">
18 <% uuid = @object.uuid %>
19 <% email = @object.email %>
21 <% disable_email = uuid != nil %>
22 <% identity_url_prefix = @current_selections[:identity_url_prefix] %>
23 <% disable_url_prefix = identity_url_prefix != nil %>
24 <% selected_vm = @current_selections[:vm_uuid] %>
25 <% groups = @current_selections[:groups] %>
27 <input id="user_uuid" maxlength="250" name="user_uuid" type="hidden" value="<%=uuid%>">
28 <div class="form-group">
29 <label for="email">Email</label>
30 <% if disable_email %>
31 <input class="form-control" id="email" maxlength="250" name="email" type="text" value="<%=email%>" disabled>
33 <input class="form-control" id="email" maxlength="250" name="email" type="text">
36 <div class="form-group">
37 <label for="openid_prefix">Identity URL Prefix</label>
38 <% if disable_url_prefix %>
39 <input class="form-control" id="openid_prefix" maxlength="250" name="openid_prefix" type="text"
40 value="<%=identity_url_prefix%>" disabled=true>
42 <input class="form-control" id="openid_prefix" maxlength="250" name="openid_prefix" type="text"
43 value="<%= Rails.configuration.default_openid_prefix %>">
46 <div class="form-group">
47 <label for="vm_uuid">Virtual Machine</label>
48 <select class="form-control" name="vm_uuid">
49 <option value="" <%= 'selected' unless selected_vm %>>
52 <% @vms.each do |vm| %>
53 <option value="<%=vm.uuid%>"
54 <%= 'selected' if selected_vm == vm.uuid %>>
60 <div class="groups-group">
61 <label for="groups">Groups for virtual machine (comma separated list)</label>
62 <input class="form-control" id="groups" maxlength="250" name="groups" type="text" value="<%=groups%>">
66 <div class="modal-footer">
67 <button class="btn btn-default" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">Cancel</button>
68 <button type="submit" id="register" class="btn btn-primary" autofocus>Submit</button>