diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 19:56:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 19:56:25 +0000 |
commit | 845460b16525dc350a12a9f1bde2109caa1a53b6 (patch) | |
tree | 746f9b896bc13b3165c4507652adfe8294fa3efc /app/views/users | |
parent | 7c27fb7c1d9866f68b9e444cd3af68256cdc637a (diff) | |
download | redmine-845460b16525dc350a12a9f1bde2109caa1a53b6.tar.gz redmine-845460b16525dc350a12a9f1bde2109caa1a53b6.zip |
deprecated start_form_tag replaced by form_tag
git-svn-id: http://redmine.rubyforge.org/svn/trunk@184 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/_memberships.rhtml | 8 | ||||
-rw-r--r-- | app/views/users/list.rhtml | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/views/users/_memberships.rhtml b/app/views/users/_memberships.rhtml index 709aeb7a3..c3d1fd79e 100644 --- a/app/views/users/_memberships.rhtml +++ b/app/views/users/_memberships.rhtml @@ -2,7 +2,7 @@ <h3><%= l(:label_project_plural) %></h3>
<% @user.memberships.each do |membership| %>
-<%= start_form_tag({ :action => 'edit_membership', :id => @user, :membership_id => membership }, :class => "tabular") %>
+<% form_tag({ :action => 'edit_membership', :id => @user, :membership_id => membership }, :class => "tabular") do %>
<p style="margin:0;padding-top:0;">
<label><%= membership.project.name %></label>
<select name="membership[role_id]">
@@ -11,12 +11,12 @@ <%= submit_tag l(:button_change), :class => "button-small" %>
<%= link_to l(:button_delete), {:action => 'destroy_membership', :id => @user, :membership_id => membership }, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
</p>
-<%= end_form_tag %>
+<% end %>
<% end %>
<hr />
<p>
<label><%=l(:label_project_new)%></label><br/>
-<%= start_form_tag({ :action => 'edit_membership', :id => @user }) %>
+<% form_tag({ :action => 'edit_membership', :id => @user }) do %>
<select name="membership[project_id]">
<%= options_from_collection_for_select @projects, "id", "name", @membership.project_id %>
</select>
@@ -24,6 +24,6 @@ <%= options_from_collection_for_select @roles, "id", "name", @membership.role_id %>
</select>
<%= submit_tag l(:button_add) %>
-<%= end_form_tag %>
+<% end %>
</p>
</div>
\ No newline at end of file diff --git a/app/views/users/list.rhtml b/app/views/users/list.rhtml index 8e660329c..36d0c438c 100644 --- a/app/views/users/list.rhtml +++ b/app/views/users/list.rhtml @@ -28,7 +28,7 @@ <td align="center"><%= format_time(user.created_on) %></td>
<td align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
<td align="center">
- <%= start_form_tag :action => 'edit', :id => user %>
+ <% form_tag({:action => 'edit', :id => user}) do %>
<% if user.locked? %>
<%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %>
<%= submit_tag l(:button_unlock), :class => "button-small" %>
@@ -39,7 +39,7 @@ <%= hidden_field_tag 'user[status]', User::STATUS_LOCKED %>
<%= submit_tag l(:button_lock), :class => "button-small" %>
<% end %>
- <%= end_form_tag %>
+ <% end %>
</td> </tr> <% end %> |