class @TicketProduct
  @access_start = (start) ->
    $('#ticket_product_access_start').datepicker({
      defaultDate: start
      format: 'yyyy-mm-dd'
      viewMode: 0
      minViewMode: 0
    })
    
  @access_end = (end) ->
    $('#ticket_product_access_end').datepicker({
      defaultDate: end
      format: 'yyyy-mm-dd'
      viewMode: 0
      minViewMode: 0
    })