Sha256: bbc3711c2b66d9c186e885c86aec60f91b73840330ec516a558bff4f670523f3

Contents?: true

Size: 1.31 KB

Versions: 24

Compression:

Stored size: 1.31 KB

Contents

#form-header
  = f.title_field :title, :explanation => "Sale tagline. e.g. 'All widgets 10% off this week!'"

.inner-form.with-normal-sidebar
  .column.side
    %label Sale Dates
    .explanation When should the sale start and end?
    .extendable-inset
      %table.datetime_select
        %tr
          %td Start:
          %td= f.super_text_field :start, :class => "datepicker", :size => 12, :value => @sale.start ? @sale.start.strftime('%m/%d/%Y') : Time.now.strftime('%m/%d/%Y')
        %tr
          %td End:
          %td= f.super_text_field :end, :class => "datepicker", :size => 12, :value => @sale.end ? @sale.end.strftime('%m/%d/%Y') : Time.now.strftime('%m/%d/%Y')
    %hr
    = f.text_field :value, :explanation => "How much is the sale reduction? Enter a positive number."

    = f.super_label :sale_type, "Type"
    = f.select(:sale_type, Sale.sale_types.collect {|name, desc| [name.to_s.titleize, name.to_s] })
    .explanation
      The reduction to apply to all products in this sale. e.g.
      %br Percentage: All widgets are 10% off
      %br Fixed: All widgets are $5
      %br Reduction: All widgets are $2 off

  .column.main.last
    = f.cktext_area :description, :explanation => "", :width => '100%', :height => '300px;', :last => true
  .spacer
  -#= render :partial => "products", :locals => {:item => Product}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.4 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/sales/modules/_details.html.haml
forge-cli-0.0.10 lib/forge/app/views/forge/sales/modules/_details.html.haml