Sha256: df9645c804a89c10eb4260bddd67b5454c63c6e74e7bfbbf150469c8c4e00c80

Contents?: true

Size: 1.25 KB

Versions: 15

Compression:

Stored size: 1.25 KB

Contents

%script
  $(document).ready(function() {
  $('#selling_setup form').validate({
  rules: {
  quantity: {
  required: true,
  number: true
  },
  price: {
  required: true,
  number: true
  },
  confirmation: {
  required: true
  }
  }
  });
  });

#selling_setup
  To sell <span class='selling_description'>#{description}</span> please confirm:

  = form_tag "/calendar/sell_tickets_setup" do 
    = hidden_field_tag :item_id, model.id
    = hidden_field_tag :item_model, model.class.name
    = hidden_field_tag :redirect, options[:redirect]
    %ul

      %li.quantity
        %label(for="quantity") Quantity Available:
        = text_field_tag :quantity, model.tickets_remaining

      %li.price
        %label(for="price") Price (exclusive)
        = text_field_tag :price, model.ticket_price 

      %li.tax_rate
        %label(for='tax_rate') Tax Rate
        = text_field_tag :tax_rate, model.tax_rate
        .help
          For example, for UK VAT the tax rate should be entered as 0.20

      - if options[:terms_link]
        %li.confirmation
          %label(for="confirmation") 
            Accept our 
            = link_to "Terms and Conditions", options[:terms_link], :target=>"_blank"

        = check_box_tag :confirmation

    = submit_tag options[:submit]


Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.20 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.19 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.18 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.17 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.16 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.15 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.14 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.13 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.11 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.10 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.9 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.8 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.7 app/views/calendar/_sell_tickets.html.haml
kit_cms-2.3.6 app/views/calendar/_sell_tickets.html.haml