diff --git a/app/views/acquired_media_releases/index.html.erb b/app/views/acquired_media_releases/index.html.erb index 9a9f33a..9218015 100644 --- a/app/views/acquired_media_releases/index.html.erb +++ b/app/views/acquired_media_releases/index.html.erb @@ -3,15 +3,17 @@ />
<% if policy(AcquiredMediaRelease).new? %> - <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :acquired_media_release], class: "btn btn-primary mr-2 mb-2" %> +
+ <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :acquired_media_release], class: "btn btn-primary mr-2 mb-2" %> +
<% end %> <% if @acquired_media_releases.any? && policy(AcquiredMediaRelease).tag_multiple? %> <%= button_to_bulk_tagging(@project) %> <% end %> - + <% if @acquired_media_releases.any? && policy(AcquiredMediaRelease).download_multiple? %> - <%= button_to "Download", [@project, :contract_downloads, release_type: @acquired_media_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border ml-auto mr-2 mb-2", data: { + <%= button_to "Download", [@project, :contract_downloads, release_type: @acquired_media_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border mr-2 mb-2", data: { disable_with: "Please wait..." } %> <% end %> diff --git a/app/views/location_releases/index.html.erb b/app/views/location_releases/index.html.erb index afc39b5..e1227b8 100644 --- a/app/views/location_releases/index.html.erb +++ b/app/views/location_releases/index.html.erb @@ -3,7 +3,9 @@ />
<% if policy(LocationRelease).new? %> - <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :location_release], class: "btn btn-primary mr-2 mb-2" %> +
+ <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :location_release], class: "btn btn-primary mr-2 mb-2" %> +
<% end %> <% if @location_releases.any? && policy(LocationRelease).tag_multiple? %> @@ -11,7 +13,7 @@ <% end %> <% if @location_releases.any? && policy(LocationRelease).download_multiple? %> - <%= button_to "Download", [@project, :contract_downloads, release_type: @location_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border ml-auto mr-2 mb-2", data: { + <%= button_to "Download", [@project, :contract_downloads, release_type: @location_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border mr-2 mb-2", data: { disable_with: "Please wait..." } %> <% end %> diff --git a/app/views/material_releases/index.html.erb b/app/views/material_releases/index.html.erb index bf06d21..e2c518d 100644 --- a/app/views/material_releases/index.html.erb +++ b/app/views/material_releases/index.html.erb @@ -3,7 +3,9 @@ />
<% if policy(MaterialRelease).new? %> - <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :material_release], class: "btn btn-primary mr-2 mb-2" %> +
+ <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :material_release], class: "btn btn-primary mr-2 mb-2" %> +
<% end %> <% if @material_releases.any? && policy(MaterialRelease).tag_multiple? %> @@ -11,7 +13,7 @@ <% end %> <% if @material_releases.any? && policy(MaterialRelease).download_multiple? %> - <%= button_to "Download", [@project, :contract_downloads, release_type: @material_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border ml-auto mr-2 mb-2", data: { + <%= button_to "Download", [@project, :contract_downloads, release_type: @material_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border mr-2 mb-2", data: { disable_with: "Please wait..." } %> <% end %> diff --git a/app/views/medical_releases/index.html.erb b/app/views/medical_releases/index.html.erb index 5519695..f30d323 100644 --- a/app/views/medical_releases/index.html.erb +++ b/app/views/medical_releases/index.html.erb @@ -3,11 +3,13 @@ />
<% if @medical_releases.any? && policy(MedicalRelease).tag_multiple? %> - <%= button_to_bulk_tagging(@project) %> +
+ <%= button_to_bulk_tagging(@project) %> +
<% end %> <% if @medical_releases.any? && policy(MedicalRelease).download_multiple? %> - <%= button_to "Download", [@project, :contract_downloads, release_type: @medical_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border ml-auto mr-2 mb-2", data: { + <%= button_to "Download", [@project, :contract_downloads, release_type: @medical_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border mr-2 mb-2", data: { disable_with: "Please wait..." } %> <% end %> diff --git a/app/views/misc_releases/index.html.erb b/app/views/misc_releases/index.html.erb index 6dcbda8..a0b296a 100644 --- a/app/views/misc_releases/index.html.erb +++ b/app/views/misc_releases/index.html.erb @@ -3,11 +3,13 @@ />
<% if @misc_releases.any? && policy(MiscRelease).tag_multiple? %> - <%= button_to_bulk_tagging(@project) %> +
+ <%= button_to_bulk_tagging(@project) %> +
<% end %> <% if @misc_releases.any? && policy(MiscRelease).download_multiple? %> - <%= button_to "Download", [@project, :contract_downloads, release_type: @misc_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border ml-auto mr-2 mb-2", data: { + <%= button_to "Download", [@project, :contract_downloads, release_type: @misc_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border mr-2 mb-2", data: { disable_with: "Please wait..." } %> <% end %> diff --git a/app/views/music_releases/index.html.erb b/app/views/music_releases/index.html.erb index 0b4cfc2..5f52754 100644 --- a/app/views/music_releases/index.html.erb +++ b/app/views/music_releases/index.html.erb @@ -3,7 +3,9 @@ />
<% if policy(MusicRelease).new? %> - <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :music_release], class: "btn btn-primary mr-2 mb-2" %> +
+ <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :music_release], class: "btn btn-primary mr-2 mb-2" %> +
<% end %> <% if @music_releases.any? && policy(MusicRelease).tag_multiple? %> @@ -11,7 +13,7 @@ <% end %> <% if @music_releases.any? && policy(MusicRelease).download_multiple? %> - <%= button_to "Download", [@project, :contract_downloads, release_type: @music_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border ml-auto mr-2 mb-2" %> + <%= button_to "Download", [@project, :contract_downloads, release_type: @music_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border mr-2 mb-2" %> <% end %> <%= bootstrap_form_with url: [@project, :music_releases], method: :get, remote: true, layout: :inline, id: "search" do |form| %> diff --git a/app/views/talent_releases/index.html.erb b/app/views/talent_releases/index.html.erb index b16edcb..6182f78 100644 --- a/app/views/talent_releases/index.html.erb +++ b/app/views/talent_releases/index.html.erb @@ -3,7 +3,9 @@ />
<% if policy(TalentRelease).new? %> - <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :talent_release], class: "btn btn-primary mr-2 mb-2" %> +
+ <%= link_to fa_icon("plus", text: t(".actions.new")), [:new, @project, :talent_release], class: "btn btn-primary mr-2 mb-2" %> +
<% end %> <% if @talent_releases.any? && policy(TalentRelease).tag_multiple? %> @@ -11,7 +13,7 @@ <% end %> <% if @talent_releases.any? && policy(TalentRelease).download_multiple? %> - <%= button_to "Download", [@project, :contract_downloads, release_type: @talent_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border ml-auto mr-2 mb-2", data: { + <%= button_to "Download", [@project, :contract_downloads, release_type: @talent_releases.name], id: "download_releases", method: :post, remote: true, class: "btn btn-light border mr-2 mb-2", data: { disable_with: "Please wait..." } %> <% end %>