deprecated start_form_tag replaced by form_tag

git-svn-id: http://redmine.rubyforge.org/svn/trunk@184 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2007-01-26 19:56:25 +00:00
1 parent 7c27fb7c1d
commit 845460b165
39 files changed
+97 -97

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
<div>
<div class="rightbox">
<%= start_form_tag %>
<% form_tag do %>
<p><%= select_month(@month, :prefix => "month", :discard_type => true) %>
<%= select_year(@year, :prefix => "year", :discard_type => true) %></p>
<p>
@@ -12,7 +12,7 @@
<%= check_box_tag 'show_documents', 1, @show_documents %><%= hidden_field_tag 'show_documents', 0, :id => nil %> <%=l(:label_document_plural)%>
</p>
<p class="textcenter"><%= submit_tag l(:button_apply), :class => 'button-small' %></p>
<%= end_form_tag %>
<% end %>
</div>
<% @events_by_day.keys.sort {|x,y| y <=> x }.each do |day| %>
+2 -2
View File
@@ -1,6 +1,6 @@
<h2><%=l(:label_document_new)%></h2>
<%= start_form_tag( { :action => 'add_document', :id => @project }, :class => "tabular", :multipart => true) %>
<% form_tag( { :action => 'add_document', :id => @project }, :class => "tabular", :multipart => true) do %>
<%= render :partial => 'documents/form' %>
<div class="box">
@@ -10,6 +10,6 @@
</div>
<%= submit_tag l(:button_create) %>
<%= end_form_tag %>
<% end %>
+2 -2
View File
@@ -2,7 +2,7 @@
<%= error_messages_for 'attachment' %>
<div class="box">
<%= start_form_tag ({ :action => 'add_file', :id => @project }, :multipart => true, :class => "tabular") %>
<% form_tag({ :action => 'add_file', :id => @project }, :multipart => true, :class => "tabular") do %>
<p><label for="version_id"><%=l(:field_version)%> <span class="required">*</span></label>
<%= select_tag "version_id", options_from_collection_for_select(@versions, "id", "name") %></p>
@@ -12,4 +12,4 @@
<%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
</div>
<%= submit_tag l(:button_add) %>
<%= end_form_tag %>
<% end %>
+2 -2
View File
@@ -1,6 +1,6 @@
<h2><%= l(:label_query_new) %></h2>
<%= start_form_tag :action => 'add_query', :id => @project %>
<% form_tag({:action => 'add_query', :id => @project}) do %>
<%= render :partial => 'queries/form', :locals => {:query => @query} %>
<%= submit_tag l(:button_create) %>
<%= end_form_tag %>
<% end %>
+2 -2
View File
@@ -1,6 +1,6 @@
<h2><%= l(:label_calendar) %></h2>
<%= start_form_tag :action => 'calendar', :id => @project %>
<% form_tag({:action => 'calendar', :id => @project}) do %>
<table width="100%">
<tr>
<td align="left" style="width:150px">
@@ -22,7 +22,7 @@
</td>
</tr>
</table>
<%= end_form_tag %>
<% end %>
<br />
<table class="list with-cells">
+2 -2
View File
@@ -3,14 +3,14 @@
<div>
<div class="rightbox" style="width:140px;">
<%= start_form_tag %>
<% form_tag do %>
<p><strong><%=l(:label_tracker_plural)%></strong></p>
<% @trackers.each do |tracker| %>
<%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %>
<%= tracker.name %><br />
<% end %>
<p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p>
<%= end_form_tag %>
<% end %>
</div>
<% ver_id = nil
+2 -2
View File
@@ -5,10 +5,10 @@
<%=l(:text_project_destroy_confirmation)%></p>
<p>
<%= start_form_tag({:controller => 'projects', :action => 'destroy', :id => @project}) %>
<% form_tag({:controller => 'projects', :action => 'destroy', :id => @project}) do %>
<%= hidden_field_tag "confirm", 1 %>
<%= submit_tag l(:button_delete) %>
<%= end_form_tag %>
<% end %>
</p>
</center>
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<table width="100%">
<tr>
<td align="left">
<%= start_form_tag %>
<% form_tag do %>
<p>
<input type="text" name="months" size="2" value="<%= @months %>" />
<%= l(:label_months_from) %>
@@ -17,7 +17,7 @@
<%= hidden_field_tag 'zoom', @zoom %>
<%= submit_tag l(:button_submit), :class => "button-small" %>
</p>
<%= end_form_tag %>
<% end %>
</td>
<td align="right">
<%= if @zoom < 4
+4 -4
View File
@@ -4,9 +4,9 @@
</div>
<h2><%=l(:label_issue_plural)%></h2>
<%= start_form_tag({:action => 'list_issues'}, :id => 'query_form') %>
<% form_tag({:action => 'list_issues'}, :id => 'query_form') do %>
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
<%= end_form_tag %>
<% end %>
<div class="contextual">
<%= link_to_remote l(:button_apply),
{ :url => { :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 },
@@ -42,7 +42,7 @@
<p><i><%= l(:label_no_data) %></i></p>
<% else %>
&nbsp;
<%= start_form_tag({:controller => 'projects', :action => 'move_issues', :id => @project}, :id => 'issues_form' ) %>
<% form_tag({:controller => 'projects', :action => 'move_issues', :id => @project}, :id => 'issues_form' ) do %>
<table class="list">
<thead><tr>
<th></th>
@@ -79,6 +79,6 @@
<%= pagination_links_full @issue_pages %>
[ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]
</p>
<%= end_form_tag %>
<% end %>
<% end %>
<% end %>
+2 -2
View File
@@ -1,7 +1,7 @@
<h2><%=l(:button_move)%></h2>
<%= start_form_tag({:action => 'move_issues', :id => @project}, :class => "tabular") %>
<% form_tag({:action => 'move_issues', :id => @project}, :class => "tabular") do %>
<div class="box">
<p><label><%= l(:label_issue_plural) %>:</label>
@@ -21,4 +21,4 @@
<%= select_tag "new_tracker_id", options_from_collection_for_select(@trackers, "id", "name") %></p>
</div>
<%= submit_tag l(:button_move) %>
<%= end_form_tag %>
<% end %>
+9 -9
View File
@@ -29,12 +29,12 @@
<td><%= member.user.display_name %></td>
<td align="center">
<% if authorize_for('members', 'edit') %>
<%= start_form_tag :controller => 'members', :action => 'edit', :id => member %>
<% form_tag({:controller => 'members', :action => 'edit', :id => member}) do %>
<select name="member[role_id]">
<%= options_from_collection_for_select @roles, "id", "name", member.role_id %>
</select>
<%= submit_tag l(:button_change), :class => "button-small" %>
<%= end_form_tag %>
<% end %>
<% end %>
</td>
<td align="center">
@@ -47,7 +47,7 @@
</table>
<% if authorize_for('projects', 'add_member') %>
<label><%=l(:label_member_new)%></label><br/>
<%= start_form_tag :controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project %>
<% form_tag({:controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project}) do %>
<select name="member[user_id]">
<%= options_from_collection_for_select @users, "id", "display_name", @member.user_id %>
</select>
@@ -55,7 +55,7 @@
<%= options_from_collection_for_select @roles, "id", "name", @member.role_id %>
</select>
<%= submit_tag l(:button_add) %>
<%= end_form_tag %>
<% end %>
<% end %>
</div>
@@ -80,17 +80,17 @@
<div id="tab-content-categories" class="tab-content" style="display:none;">
<table class="list">
<thead><th><%= l(:label_issue_status) %></th><th></th></thead>
<thead><th><%= l(:label_issue_category) %></th><th></th></thead>
<tbody>
<% for @category in @project.issue_categories %>
<% unless @category.new_record? %>
<tr class="<%= cycle 'odd', 'even' %>">
<td>
<%= start_form_tag :controller => 'issue_categories', :action => 'edit', :id => @category %>
<% form_tag({:controller => 'issue_categories', :action => 'edit', :id => @category}) do %>
<%= text_field 'category', 'name', :size => 25 %>
<% if authorize_for('issue_categories', 'edit') %>
<%= submit_tag l(:button_save), :class => "button-small" %>
<%= end_form_tag %>
<% end %>
<% end %>
</td>
<td align="center">
@@ -102,12 +102,12 @@
</tbody>
</table>
<% if authorize_for('projects', 'add_issue_category') %>
<%= start_form_tag :action => 'add_issue_category', :tab => 'categories', :id => @project %>
<% form_tag({:action => 'add_issue_category', :tab => 'categories', :id => @project}) do %>
<label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/>
<%= error_messages_for 'issue_category' %>
<%= text_field 'issue_category', 'name', :size => 25 %>
<%= submit_tag l(:button_create) %>
<%= end_form_tag %>
<% end %>
<% end %>
</div>