% content_for :page_title do %>
<%= Spree::Property.model_name.human(count: :many) %>
<% end %>
<% content_for :page_actions do %>
<%= button_link_to Spree.t(:new_property), new_object_url, { :class => "btn-success", :icon => 'add', 'data-update' => 'new_property', :id => 'new_property_link' } %>
<% end %>
<% content_for :table_filter do %>
<%= search_form_for [:admin, @search] do |f| %>
<%- locals = {:f => f} %>
<%= f.label :name_cont, Spree.t(:name) %>
<%= f.text_field :name_cont, :class => "form-control js-quick-search-target" %>
<%= f.label :presentation_cont, Spree.t(:presentation) %>
<%= f.text_field :presentation_cont, :class => "form-control" %>
<%= button Spree.t(:search), 'search' %>
<% end %>
<% end %>
<% if @properties.any? %>
<%= Spree.t(:name) %> |
<%= Spree.t(:presentation) %> |
|
<% @properties.each do |property| %>
<%= property.name %> |
<%= property.presentation %> |
<%= link_to_edit(property, :no_text => true) %>
<%= link_to_delete(property, :no_text => true) %>
|
<% end %>
<% else %>
<%= Spree.t(:no_resource_found, resource: Spree::Property.model_name.human(count: :many)) %>,
<%= link_to Spree.t(:add_one), new_object_url %>!
<% end %>
<%= paginate @collection %>