test/tmp/views/product/destroy.rhtml in masterview-0.2.5 vs test/tmp/views/product/destroy.rhtml in masterview-0.3.0
- old
+ new
@@ -1,27 +1,27 @@
<div class="destroy_div" id="product_destroy" mv:preview="showOne">
<div class="product_destroy sidebar">
<h1>Tasks:</h1>
<ul>
- <li><%= link_to 'Back to overview', :action => 'list' %></li>
- <li><%= link_to 'Show this product', :action => 'show', :id => @product.id %></li>
+ <li><%= link_to( 'Back to overview', { :action => 'list' }, :class => "list_link" ) %></li>
+ <li><%= link_to( 'Show this product', { :action => 'show', :id => @product.id }, :class => "show_link" ) %></li>
</ul>
</div>
<div class="product_destroy content">
<h1>Products</h1>
<%= error_messages_for :product %>
<div class="messages">Are you sure you want to delete this item?</div>
<br />
- <%= form_tag :action => 'destroy', :id => @product.id %>
+ <%= form_tag( :action => 'destroy', :id => @product.id ) %>
<%= render :partial => 'show' %>
<br />
<div class="product_edit operations">
- <%= submit_tag 'Delete' %>
+ <%= submit_tag( 'Delete', :class => "save_button" ) %>
<input class="cancel_button" onclick="window.location.href = '<%= url_for :action => %q{list} %>';" style="width: auto;" type="button" value="Cancel" />
</div>
- <%= end_form_tag %>
+ </form>
</div>
</div>
\ No newline at end of file