Fix disabling buttons on submit for remote forms [SCI-9241] (#6184)

This commit is contained in:
Alex Kriuchykhin 2023-09-11 15:22:25 +02:00 committed by GitHub
parent b49ccefa8e
commit a07174ed78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 16 deletions

View file

@ -68,9 +68,7 @@
:name,
{},
{ class: 'selectpicker' }) %>
<%= f.button class: 'btn btn-primary' do %>
<span><%= t("experiments.canvas.modal_manage_tags.create") %></span>
<% end %>
<%= f.submit t("experiments.canvas.modal_manage_tags.create"), class: 'btn btn-primary' %>
</div>
</div>
<% end %>

View file

@ -80,7 +80,7 @@
<button type="button" class="btn btn-secondary" data-dismiss="modal">
<%= t('general.cancel') %>
</button>
<%= f.button t('experiments.canvas.new_my_module_modal.create'), class: "btn btn-primary" %>
<%= f.submit t('experiments.canvas.new_my_module_modal.create'), class: "btn btn-primary" %>
</div>
</div>
</div>

View file

@ -40,7 +40,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%= t('general.cancel') %></button>
<%= f.button t('projects.index.modal_new_project.create'), class: "btn btn-primary" %>
<%= f.submit t('projects.index.modal_new_project.create'), class: "btn btn-primary" %>
</div>
</div>
</div>

View file

@ -41,7 +41,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%= t('general.cancel') %></button>
<%= f.button t("protocols.new_protocol_modal.create_#{type}") , class: "btn btn-primary create-protocol-button" %>
<%= f.submit t("protocols.new_protocol_modal.create_#{type}") , class: "btn btn-primary create-protocol-button" %>
</div>
</div>
</div>

View file

@ -17,8 +17,7 @@
<button type="button" class="btn btn-secondary cancel-edit">
<%= t("general.cancel")%>
</button>
<%= f.button t("general.save"),
class: 'btn btn-primary save-result' %>
<%= f.submit t("general.save"), class: 'btn btn-primary save-result' %>
</div>
<% end %>
</div>

View file

@ -18,8 +18,7 @@
<button type="button" class="btn btn-secondary cancel-edit">
<%= t("general.cancel")%>
</button>
<%= f.button t("general.save"),
class: 'btn btn-primary save-result' %>
<%= f.submit t("general.save"), class: 'btn btn-primary save-result' %>
</div>
<% end %>
</div>

View file

@ -17,8 +17,7 @@
<button type="button" class="btn btn-secondary cancel-new">
<%= t("general.cancel")%>
</button>
<%= f.button t("result_tables.new.create"),
class: 'btn btn-primary save-result' %>
<%= f.submit t("result_tables.new.create"), class: 'btn btn-primary save-result' %>
</div>
<% end %>
</div>

View file

@ -19,8 +19,7 @@
<button type="button" class="btn btn-secondary cancel-edit">
<%= t("general.cancel")%>
</button>
<%= f.button t("general.save"),
class: 'btn btn-primary save-result' %>
<%= f.submit t("general.save"), class: 'btn btn-primary save-result' %>
</div>
<% end %>
</div>

View file

@ -18,8 +18,7 @@
<button type="button" class="btn btn-secondary cancel-new">
<%= t("general.cancel")%>
</button>
<%= f.button t("result_texts.new.create"),
class: 'btn btn-primary save-result' %>
<%= f.submit t("result_texts.new.create"), class: 'btn btn-primary save-result' %>
</div>
<% end %>
</div>