##// END OF EJS Templates
Some deprecation fixes (end_form_tag and count API)....
Jean-Philippe Lang -
r665:317b460d9652
parent child
Show More
@@ -178,9 +178,9 module ProjectsHelper
178
178
179 def new_issue_selector
179 def new_issue_selector
180 trackers = Tracker.find(:all, :order => 'position')
180 trackers = Tracker.find(:all, :order => 'position')
181 form_tag({:controller => 'projects', :action => 'add_issue', :id => @project}, :method => :get) +
181 # can't use form tag inside helper
182 select_tag('tracker_id', '<option></option' + options_from_collection_for_select(trackers, 'id', 'name'),
182 content_tag('form',
183 :onchange => "if (this.value != '') {this.form.submit()}") +
183 select_tag('tracker_id', '<option></option' + options_from_collection_for_select(trackers, 'id', 'name'), :onchange => "if (this.value != '') {this.form.submit()}"),
184 end_form_tag
184 :action => url_for(:controller => 'projects', :action => 'add_issue', :id => @project), :method => 'get')
185 end
185 end
186 end
186 end
@@ -24,5 +24,5
24
24
25 <h3><%=l(:label_activity)%></h3>
25 <h3><%=l(:label_activity)%></h3>
26 <p>
26 <p>
27 <%=l(:label_reported_issues)%>: <%= Issue.count(["author_id=?", @user.id]) %>
27 <%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
28 </p> No newline at end of file
28 </p>
@@ -1,6 +1,6
1 <h2><%=l(:label_permissions_report)%></h2>
1 <h2><%=l(:label_permissions_report)%></h2>
2
2
3 <%= start_form_tag({:action => 'report'}, :id => 'permissions_form') %>
3 <% form_tag({:action => 'report'}, :id => 'permissions_form') do %>
4 <%= hidden_field_tag 'permissions[0]', '' %>
4 <%= hidden_field_tag 'permissions[0]', '' %>
5 <table class="list">
5 <table class="list">
6 <thead>
6 <thead>
@@ -28,4 +28,4
28 </table>
28 </table>
29 <p><%= check_all_links 'permissions_form' %></p>
29 <p><%= check_all_links 'permissions_form' %></p>
30 <p><%= submit_tag l(:button_save) %></p>
30 <p><%= submit_tag l(:button_save) %></p>
31 <%= end_form_tag %>
31 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now