Sha256: 7ebb1a6b9059e40aefe46df449f2931ec626657f8aa649e79940860f6d10c610

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

%fieldset
  .control-group
    .controls
      %label.checkbox
        = f.check_box :active
        Pass is active and can be used now.

%fieldset
  .control-group
    = f.label :ticket_types, "Allowed Ticket Types", :class => 'control-label'
    .controls
      = f.select :ticket_types, options_for_select(@ticket_type_names, @events_pass_type.ticket_types.to_a), {}, {'data-placeholder' => "All Prices", :class => 'input chosen', :multiple => true}
  .control-group
    = f.label :excluded_shows, "Excluded Shows", :class => 'control-label'
    .controls
      = f.select :excluded_shows, options_for_select(@event.shows.collect {|s| [l(DateTime.parse(s.local_datetime), :format => :day_time), s.id] }, @events_pass_type.excluded_shows.collect(&:to_i)), {}, {'data-placeholder' => "No Shows Selected", :class => 'input chosen', :multiple => true}

- content_for :custom_js do
  = stylesheet_link_tag 'jquery/chosen'
  = javascript_include_tag 'jquery-lib/chosen.jquery'

  :javascript
    $(document).ready(function() {
      $('.chosen').chosen();
    });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.23 app/views/events_pass_types/_form.html.haml