Sha256: 804f2b4801f58ecd1732658864197f4fbc448b0c65fdb825746741e03e5b16ac
Contents?: true
Size: 1.58 KB
Versions: 4
Compression:
Stored size: 1.58 KB
Contents
- @page_title = t('tienda.stock_level_adjustments.stock_levels_title', item_name: @item.name) = content_for :header do %p.buttons - case @item - when Tienda::Product - @active_nav = :products = link_to t('tienda.stock_level_adjustments.edit_product'), [:edit, @item], :class => 'button' = link_to t('tienda.stock_level_adjustments.back_to_product'), :products, :class => 'button' %h2.products= t('tienda.stock_level_adjustments.stock_levels_for', item_name: @item.name) .table %p.info = t('tienda.stock_level_adjustments.current_stock_level_html', item_stock: @item.stock).html_safe %span.float-right= page_entries_info @stock_level_adjustments = form_for @new_sla do |f| = hidden_field_tag 'item_type', params[:item_type] = hidden_field_tag 'item_id', params[:item_id] %table.data %thead %tr %th{:width => '25%'}= t('tienda.stock_level_adjustments.date') %th{:width => '50%'}= t('tienda.stock_level_adjustments.description') %th{:width => '25%'}= t('tienda.stock_level_adjustments.adjustment') %tbody %tr.form %td %td.desc= f.text_field :description %td.adjustment = f.text_field :adjustment = f.submit t('tienda.stock_level_adjustments.add'), :class => 'button button-mini green' - for sla in @stock_level_adjustments %tr %td= l(sla.created_at, format: :long) %td= sla.description %td= sla.adjustment > 0 ? "+#{sla.adjustment}" : sla.adjustment = paginate @stock_level_adjustments
Version data entries
4 entries across 4 versions & 1 rubygems