Created
December 11, 2013 14:49
-
-
Save rubydesign/7911679 to your computer and use it in GitHub Desktop.
erb file for haml error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<tr> | |
<td> | |
<table class="index" id='listing_products'> | |
<tr> | |
<th><%= t("image") %></th> | |
<th><%= sort_link @search,:product_name, t("name"), {}, {:title => 'admin_products_listing_name_title'} %></th> | |
<th><%= sort_link @search,:price, t("master_price") %></th> | |
<th><%= t("select") %></th> | |
</tr> | |
<% @variants.each do |variant| %> | |
<% next if variant.is_master and variant.product.has_variants?%> | |
<tr <%= 'style="color:red;"' if variant.deleted? %> id="<%= dom_id variant %>"> | |
<td><% if variant.images.first %> | |
<%= image_tag variant.images.first.attachment.url(:mini) %> | |
<%elsif variant.product.images.first %> | |
<%= image_tag variant.product.images.first.attachment.url(:mini) %> | |
<% end %> | |
</td> | |
<td> <%= link_to( "#{variant.name} #{variant.options_text}" , edit_admin_product_url(variant.product)) %> | |
<br> <%== variant.description[0 .. 200] if variant.description%></td> | |
<td><%= variant.price %></td> | |
<td class="actions"> | |
<%= link_to( image_tag('admin/pos/select.jpg'), "/admin/pos/add/#{@order.number}/#{variant.id}") %> | |
</td> | |
</tr> | |
<% end %> | |
</table> | |
<% @pos = @variants %> | |
</td> | |
</tr> | |
</table> | |
<%= paginate @variants %> | |
<% content_for :sidebar do %> | |
<%= search_form_for @search , :url => "/admin/pos/find/#{@order.number}/" do |f| %> | |
<div class="box"> | |
<h3><%= t(:search) %></h3> | |
<p> | |
<%= f.label :product_name_cont, t("name") %><br /> | |
<%= f.text_field :product_name_cont, :size => 15 %> | |
</p> | |
<p> | |
<%= f.label :product_description_cont, t("description") %><br /> | |
<%= f.text_field :product_description_cont, :size => 15 %> | |
</p> | |
<p> | |
<%= f.label :product_product_properties_value_cont , t(:properties_value) %><br /> | |
<%= f.text_field :product_product_properties_value_cont, :size => 15 %> | |
</p> | |
<p> | |
<%= f.label :product_option_name_cont , t(:option_name_cont) %><br /> | |
<%= f.text_field :option_values_name_cont, :size => 15 %> | |
</p> | |
<p> | |
<%= f.label :sku_cont, t("sku") %><br /> | |
<%= f.text_field :sku_cont, :size => 15 %> | |
</p> | |
<p> | |
<%= f.label :price_gteq, t("price_min") %><br /> | |
<%= f.text_field :price_gteq, :size => 15 %> | |
</p> | |
<p> | |
<%= f.label :price_lteq, t("price_max") %><br /> | |
<%= f.text_field :price_lteq, :size => 15 %> | |
</p> | |
<p class="form-buttons"> | |
<%= button t("search") %> | |
</p> | |
</div> | |
<% end %> | |
<%end%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment