- <input type="submit" name="close" value="<%= t("javascripts.notes.show.resolve") %>" class="btn btn-primary" data-method="POST" data-url="<%= close_api_note_url(@note, "json") %>">
- <input type="submit" name="comment" value="<%= t("javascripts.notes.show.comment") %>" class="btn btn-primary" data-method="POST" data-url="<%= comment_api_note_url(@note, "json") %>" disabled="1">
+ <%= button_tag t(".resolve"), :name => "close", :class => "btn btn-primary",
+ :data => { :method => "POST",
+ :url => close_api_note_url(@note, "json"),
+ :default_action_text => t(".resolve"),
+ :comment_action_text => t(".comment_and_resolve") } %>
+ <%= button_tag t(".comment"), :name => "comment", :class => "btn btn-primary", :disabled => true,
+ :data => { :method => "POST",
+ :url => comment_api_note_url(@note, "json") } %>