X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8917fa82999bdf0020f623db9869abae99930b56..6aac88a912ded276ed151501ac3977cfcc78600d:/apps/workbench/app/views/user_agreements/index.html.erb diff --git a/apps/workbench/app/views/user_agreements/index.html.erb b/apps/workbench/app/views/user_agreements/index.html.erb index d37360188d..4c80cafd8d 100644 --- a/apps/workbench/app/views/user_agreements/index.html.erb +++ b/apps/workbench/app/views/user_agreements/index.html.erb @@ -9,7 +9,7 @@ User agreements <% end %> <% end %> -<%= form_for(unsigned_user_agreements.first, {url: {action: 'sign', controller: 'user_agreements'}, method: 'post'}) do |f| %> +<%= form_for(unsigned_user_agreements.first, {url: {action: 'sign', controller: 'user_agreements'}, method: :post}) do |f| %> <%= hidden_field_tag :return_to, request.url %>
@@ -23,17 +23,19 @@ User agreements
<% unsigned_user_agreements.each do |ua| %> <% ua.files.each do |file| %> - <%= f.label 'checked[]', class: 'checkbox inline' do %> - <%= check_box_tag 'checked[]', "#{ua.uuid}/#{file[0]}/#{file[1]}", false %> - Accept <%= file[1].sub(/\.[a-z]{3,4}$/,'') %> - <%= link_to 'View agreement', {controller: 'collections', action: 'show_file', uuid: ua.uuid, file: "#{file[0]}/#{file[1]}"}, {target: '_blank', class: 'btn btn-mini btn-primary'} %> - <% end %> +
+ <%= f.label 'checked[]' do %> + <%= check_box_tag 'checked[]', "#{ua.uuid}/#{file[0]}/#{file[1]}", false %> + Accept <%= file[1].sub(/\.[a-z]{3,4}$/,'') %> + <%= link_to 'View agreement', {controller: 'collections', action: 'show_file', uuid: ua.uuid, file: "#{file[0]}/#{file[1]}"}, {target: '_blank', class: 'btn btn-xs btn-info'} %> + <% end %> +
<% end %> <% end %>
- <%= f.submit 'Continue', {class: 'btn btn-primary', disabled: true} %> + <%= f.submit 'Continue', {class: 'btn btn-primary'} %>
<% end %>