<%= render :partial => 'new_users_form' %>
<p class="buttons">
<%= submit_tag l(:button_add) %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
<p class="buttons">
<%= submit_tag l(:button_create), :name => nil %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
<% end %>
<p class="buttons">
<%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button', :data => { :disable_with => false } %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
</div>
<%= render :partial => 'new_form' %>
<p class="buttons">
<%= submit_tag l(:button_add), :id => 'member-add-submit' %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
<%= render :partial => 'new_form' %>
<p class="buttons">
<%= submit_tag l(:button_add), :name => nil %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
<p class="buttons">
<%= submit_tag l(:button_submit), onclick: "hideModal(this);" %>
- <%= submit_tag l(:button_cancel), name: nil, onclick: "hideModal(this);", type: 'button' %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
<%= export_csv_encoding_select_tag %>
<p class="buttons">
<%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button', :data => { :disable_with => false } %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
</div>
<%= render :partial => 'versions/form', :locals => { :f => f } %>
<p class="buttons">
<%= submit_tag l(:button_create), :name => nil %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
<p class="buttons">
<%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
<p class="buttons">
<%= submit_tag l(:label_next), :name => nil %>
- <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ <%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>