Project

General

Profile

Patch #22277 ยป 0001-Add-id-to-query-create-and-edit-form-to-ease-theme-d.patch

Gregor Schmidt, 2016-03-17 15:21

View differences:

app/views/queries/edit.html.erb
1 1
<h2><%= l(:label_query) %></h2>
2 2

  
3
<%= form_tag(query_path(@query), :method => :put) do %>
3
<%= form_tag(query_path(@query), :method => :put, :id => "query-form") do %>
4 4
  <%= render :partial => 'form', :locals => {:query => @query} %>
5 5
  <%= submit_tag l(:button_save) %>
6 6
<% end %>
app/views/queries/new.html.erb
1 1
<h2><%= l(:label_query_new) %></h2>
2 2

  
3
<%= form_tag(@project ? project_queries_path(@project) : queries_path) do %>
3
<%= form_tag(@project ? project_queries_path(@project) : queries_path, :id => "query-form") do %>
4 4
  <%= render :partial => 'form', :locals => {:query => @query} %>
5 5
  <%= submit_tag l(:button_save) %>
6 6
<% end %>
    (1-1/1)