Added a back_url field to the Rate for that will store the redirect path.
* Used in the User Administration panel so RatesController can redirect back to the panel as needed. #1914
This commit is contained in:
1 parent
cc063768b6
commit
22ec6f56b7
4 files changed
+21
-1
No files matched your search
@@ -23,6 +23,7 @@
|
||||
</td>
|
||||
<td align="center">
|
||||
<%= f.hidden_field "user_id" %>
|
||||
<%= hidden_field_tag "back_url", @back_url %>
|
||||
<%= submit_tag l(:button_add),:class => 'button-small' -%>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<h1><%= l(:rate_label_new_rate) %></h1>
|
||||
|
||||
<% @rate = Rate.new(:user => @user ) %>
|
||||
<% @back_url = url_for(:controller => 'users', :action => 'edit', :id => @user, :tab => 'rates') %>
|
||||
<%= render :partial => 'rates/form' %>
|
||||
|
||||
<h1><%= l(:rate_label_rate_history) %></h1>
|
||||
|
||||
Reference in new issue
Block a user