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:
1 parent
7c27fb7c1d
commit
845460b165
39 files changed
+97
-97
No files matched your search
@@ -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>
|
||||
@@ -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 %>
|
||||
|
||||
Reference in new issue
Block a user