Sha256: 5ab1bba167c2a3cfd7a82bca5949f01f4807108d2764be16b9cecb04b8c919c1

Contents?: true

Size: 571 Bytes

Versions: 7

Compression:

Stored size: 571 Bytes

Contents

-no_editing = false if no_editing.nil?
-new_show   = false if new_show.nil? 

=f.hidden_field :name
- unless no_editing
  .control-group
    =f.label :capacity, :class => 'control-label'
    .controls
      =f.text_field :capacity, :class => 'span3', :disabled => no_editing

%fieldset
  -unless new_show
    %legend Ticket Types
  = f.fields_for :ticket_types do |builder|
    = render 'events/ticket_type_fields', :f => builder

.control-group
  .controls
    %i.fa.fa-plus-cirlce.icon-gray
    = link_to_add_fields 'Add another ticket type', f, :ticket_types, 'events'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/views/events/_section_fields.html.haml
artfully_ose-1.2.0.beta.1 app/views/events/_section_fields.html.haml
artfully_ose-1.2.0.alpha.2 app/views/events/_section_fields.html.haml
artfully_ose-1.2.0.alpha.1 app/views/events/_section_fields.html.haml
artfully_ose-1.2.0.pre.27 app/views/events/_section_fields.html.haml
artfully_ose-1.2.0.pre.26 app/views/events/_section_fields.html.haml
artfully_ose-1.2.0.pre.24 app/views/events/_section_fields.html.haml