[ARVADOS] updated: 04589f063341ff2438ffb62217362c6998346e86
git at public.curoverse.com
git at public.curoverse.com
Wed Apr 2 13:02:04 EDT 2014
Summary of changes:
.../app/views/users/_setup_popup.html.erb | 17 ++++++++++++-----
.../workbench/app/views/users/_show_admin.html.erb | 11 ++++++-----
2 files changed, 18 insertions(+), 10 deletions(-)
via 04589f063341ff2438ffb62217362c6998346e86 (commit)
from b5971601148a7ede860c029ae3931e88d6466abe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 04589f063341ff2438ffb62217362c6998346e86
Author: radhika chippada <radhika at radhika.curoverse>
Date: Wed Apr 2 12:57:13 2014 -0400
Minor UI tweaks
diff --git a/apps/workbench/app/views/users/_setup_popup.html.erb b/apps/workbench/app/views/users/_setup_popup.html.erb
index 8d44e90..5711d95 100644
--- a/apps/workbench/app/views/users/_setup_popup.html.erb
+++ b/apps/workbench/app/views/users/_setup_popup.html.erb
@@ -2,6 +2,7 @@
<% uuid = @object.uuid %>
<% disable_email = @object.uuid? %>
<% 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] %>
@@ -11,16 +12,16 @@
<tr>
<% if disable_email %>
<td> Email </td>
- <td> <input id="email" maxlength="250" name="email" type="text" value="<%=@object.email%>" disabled=<%=disable_email%> > </td>
+ <td> <input id="email" maxlength="250" name="email" type="text" value="<%=@object.email%>" disabled=true > </td>
<% else %>
<td> Email </td>
<td> <input id="email" maxlength="250" name="email" type="text" > </td>
<% end %>
</tr>
<tr>
- <% if disable_email %>
- <td> Identity URL Prefix </td>
- <td> <input id="openid_prefix" maxlength="250" name="openid_prefix" type="text" value="<%=identity_url_prefix%>" disabled=<%=disable_email%> > </td>
+ <% if disable_url_prefix %>
+ <td> Identity URL Prefix   </td>
+ <td> <input id="openid_prefix" maxlength="250" name="openid_prefix" type="text" value="<%=identity_url_prefix%>" disabled=true > </td>
<% else %>
<td> Openid Prefix </td>
<td> <input id="openid_prefix" maxlength="250" name="openid_prefix" type="text" value="https://www.google.com/accounts/o8/id"> </td>
@@ -34,6 +35,11 @@
<td> Virtual Machine </td>
<td>
<select name="vm_uuid">
+ <% if selected_vm %>
+ <option value=""> Choose One: </option>
+ <% else %>
+ <option value="" selected> Choose One: </option>
+ <% end %>
<% @vms.each do |vm| %>
<% if selected_vm == vm.uuid %>
<option value=<%=vm.uuid%> selected> <%=vm.hostname%> </option>
@@ -46,7 +52,8 @@
</tr>
</tbody></table>
</div>
- <div align="left">
+ <div align="center">
+ <br/>
<button type="submit" id="register" class="btn btn-primary" autofocus>Submit</button>
<button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Cancel</button>
</div>
diff --git a/apps/workbench/app/views/users/_show_admin.html.erb b/apps/workbench/app/views/users/_show_admin.html.erb
index d9db19c..072d7ee 100644
--- a/apps/workbench/app/views/users/_show_admin.html.erb
+++ b/apps/workbench/app/views/users/_show_admin.html.erb
@@ -6,15 +6,16 @@ account.</p>
<%= button_to "Log in as #{@object.full_name}", sudo_user_url(id: @object.uuid), class: 'btn btn-primary' %>
</blockquote>
-<p>As an admin, you can deactivate and reset this user. This will remove all repository/VM permissions for the user. If you "setup" the user again, the user will have to sign the user agreement again.</p>
+<p>As an admin, you can setup this user. Please input a VM and repository for the user. If you had previously provided any of these items, they are pre-filled for you and you can leave them as is if you would like to reuse them.</p>
<blockquote>
-<%= button_to "Deactivate #{@object.full_name}", unsetup_user_url(id: @object.uuid), class: 'btn btn-primary', confirm: "Are you sure you want to deactivate #{@object.full_name}?"%>
+<%= link_to "Setup #{@object.full_name}", setup_popup_user_url(id: @object.uuid), {class: 'btn btn-primary', :remote => true, 'data-toggle' => "modal", 'data-target' => '#modal-window'} %>
+<div id="modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
</blockquote>
-<p>As an admin, you can setup this user. Please input a VM and repository for the user. If you had previously provided any of these items, they are pre-filled for you and you can leave them as is if you would like to reuse them.</p>
+<p>As an admin, you can deactivate and reset this user. This will remove all repository/VM permissions for the user. If you "setup" the user again, the user will have to sign the user agreement again.</p>
<blockquote>
-<%= link_to "Setup #{@object.full_name}", setup_popup_user_url(id: @object.uuid), {class: 'btn btn-primary', :remote => true, 'data-toggle' => "modal", 'data-target' => '#modal-window'} %>
-<div id="modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
+<%= button_to "Deactivate #{@object.full_name}", unsetup_user_url(id: @object.uuid), class: 'btn btn-primary', confirm: "Are you sure you want to deactivate #{@object.full_name}?"%>
</blockquote>
+
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list