Sha256: 1e82983c3559f66f6f6fa8d50ab2c1a24fb0c00b41d4e5f2bbf214fc7ca83e48

Contents?: true

Size: 1.75 KB

Versions: 16

Compression:

Stored size: 1.75 KB

Contents

- array_of_resources = [:admix]
- if defined? parent_type
  - array_of_resources << parent_type
- array_of_resources << resource

= content_for(:before_form)
= simple_form_for array_of_resources, :html => { :class => 'form-admix' }, wrapper: :bootstrap  do |f|
  = render partial: 'form_config', locals: {f:f}
  = content_for(:before_inner_form)
  = content_for(:before_errors)
  = f.error_notification
  = content_for(:after_errors)
  .row-fluid
    .span7
      .row-fluid  
        .span12
          .tabbable.tabs-left
            %ul#admix_form_tabs.nav.nav-tabs
              - if content_for?(:nav_tabs)
                = content_for(:nav_tabs)
              - elsif @admix_tabs 
                - @admix_tabs.each do |tab|
                  = tab.header
            .tab-content.well
              - if content_for?(:tabs_content)
                = content_for(:tabs_content)
              - elsif @admix_tabs
                - @admix_tabs.each do |tab|
                  .tab-pane{id: tab.tab_id, class: (tab.options[:first] ? 'active' : '')}
                    .span12
                      .row-fluid
                        = tab.content
    .span4
      %ul.nav.nav-list.well
        %li
          .div
            = f.button :submit, class: 'btn-primary'
            = link_to t('admix.crud.cancel'), collection_url, class: 'btn'
            - if not resource.nil? and not resource.new_record?
              = link_destroy(resource, t('admix.crud.destroy.link'), 'btn-danger')
        - if content_for?(:form_options)
          %li.nav-header Opções
          %li
            = content_for(:form_options)
        

  = content_for(:after_inner_form)
= content_for(:after_form)
:coffeescript
  $('#admix_form_tabs a').click (e) ->
    e.preventDefault()
    $(this).tab('show')

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
mix-rails-0.26.3 admix/app/views/admix/inherited/form.html.haml
admix-0.26.3 app/views/admix/inherited/form.html.haml
mix-rails-0.26.2 admix/app/views/admix/inherited/form.html.haml
admix-0.26.2 app/views/admix/inherited/form.html.haml
mix-rails-0.26.1 admix/app/views/admix/inherited/form.html.haml
admix-0.26.1 app/views/admix/inherited/form.html.haml
mix-rails-0.26.0 admix/app/views/admix/inherited/form.html.haml
admix-0.26.0 app/views/admix/inherited/form.html.haml
mix-rails-0.25.1 admix/app/views/admix/inherited/form.html.haml
admix-0.25.1 app/views/admix/inherited/form.html.haml
mix-rails-0.25.0 admix/app/views/admix/inherited/form.html.haml
admix-0.25.0 app/views/admix/inherited/form.html.haml
mix-rails-0.24.1 admix/app/views/admix/inherited/form.html.haml
admix-0.24.1 app/views/admix/inherited/form.html.haml
mix-rails-0.24.0 admix/app/views/admix/inherited/form.html.haml
admix-0.24.0 app/views/admix/inherited/form.html.haml