mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Fix disabling buttons on submit for remote forms [SCI-9241] (#6184)
This commit is contained in:
parent
b49ccefa8e
commit
a07174ed78
9 changed files with 9 additions and 16 deletions
|
@ -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 %>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue