Show different buttons based on if the Rate is new. #1914
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
<td align="center">
|
<td align="center">
|
||||||
<%= f.hidden_field "user_id" %>
|
<%= f.hidden_field "user_id" %>
|
||||||
<%= hidden_field_tag "back_url", @back_url %>
|
<%= hidden_field_tag "back_url", @back_url %>
|
||||||
<%= submit_tag l(:button_add),:class => 'button-small' -%>
|
<%= submit_tag((@rate.new_record? ? l(:button_add) : l(:button_update)), :class => 'button-small')-%>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user