X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c7bc953ccbd42113c18d4a8bc5e8403ba364b81d..ac5cd5913a208c463206d2fa6cf62e42148682a4:/apps/workbench/app/views/users/_setup_popup.html.erb
diff --git a/apps/workbench/app/views/users/_setup_popup.html.erb b/apps/workbench/app/views/users/_setup_popup.html.erb
index 0fc0110301..aed57da978 100644
--- a/apps/workbench/app/views/users/_setup_popup.html.erb
+++ b/apps/workbench/app/views/users/_setup_popup.html.erb
@@ -1,33 +1,38 @@
-
-
- <%= uuid = @object.uuid %>
- <%= disable_email = @object.uuid? %>
- <%= identity_url_prefix = @current_selections[:identiry_url_prefix] %>
- <%= selected_repo = @current_selections[:repo_name] %>
- <%= selected_vm = @current_selections[:vm_uuid] %>
-
- <%= form_tag setup_user_url(id: uuid), method: 'get', remote: true, class: 'form-search' do %>
+ <% if @object%>
+ <% uuid = @object.uuid %>
+ <% email = @object.email %>
+ <% end %>
+ <% disable_email = uuid != nil %>
+ <% identity_url_prefix = @current_selections[:identity_url_prefix] %>
+ <% disable_url_prefix = identity_url_prefix != nil %>
+ <% selected_repo = @current_selections[:repo_name] %>
+ <% selected_vm = @current_selections[:vm_uuid] %>
+
+ <%= form_tag setup_user_path, {id: 'setup_form', name: 'setup_form', method: 'get',
+ class: 'form-search', remote: true} do %>
+
-
-
-
+
+
+
+
<% end %>
+
+