Sha256: cb4f7fe88d80ade9002bf63dd2655a620c02e050b881763a496a4995e6672ae8

Contents?: true

Size: 1.69 KB

Versions: 2

Compression:

Stored size: 1.69 KB

Contents

<% content_for :page_title do %>
  <%= t('spree.active_sale.title.list') %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to t('spree.active_sale.link.new'), new_object_url, :icon => 'icon-plus', :id => 'admin_new_active_sale_link' %>
  </li>
<% end %>

<div id="new_active_sale" data-hook></div>

<table class="index sortable" id='listing_active_sales' data-hook data-sortable-link="<%= update_positions_admin_active_sales_url %>">
  <colgroup>
    <col style="width: 85%">
    <col style="width: 15%">
  </colgroup>
  <thead>
    <tr data-hook="active_sales_header">
      <th><%= t(:name) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @active_sales.each do |active_sale| %>
      <tr id="<%= spree_dom_id active_sale %>" data-hook="active_sales_row" class="<%= cycle('odd', 'even')%>">
        <td>
          <span class="handle"></span>&nbsp;
          <%= active_sale.name %>
        </td>
        <td class="actions">
          <%= link_to_edit active_sale.id, :no_text => true %>
          <%= link_to_delete active_sale, :no_text => true %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= paginate @active_sales %>

<% content_for :sidebar_title do %>
  <%= t(:search) %>
<% end %>

<% content_for :sidebar do %>
  <div class="box align-center" data-hook="admin_active_sales_index_search">    
    <%= search_form_for [:admin, @search] do |f| %>
      <div class="field">
        <%= f.label t(:name) %> <br>
        <%= f.text_field :name_cont, :class => 'fullwidth' %>
      </div>
      <div data-hook="admin_active_sales_index_search_buttons">
        <%= button t(:search), 'icon-search' %>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_active_sale-1.3.2 app/views/spree/admin/active_sales/index.html.erb
spree_active_sale-1.3.1 app/views/spree/admin/active_sales/index.html.erb