Sha256: e08ebc739d0646d9ce08d62f9d5724286ccc0d2efb5085ee7b7200ae31025830
Contents?: true
Size: 1.7 KB
Versions: 12
Compression:
Stored size: 1.7 KB
Contents
- array_of_resources = [:admix] - if defined? parent_type - array_of_resources << parent_type - array_of_resources << resource = simple_form_for array_of_resources, :html => {:name => 'AdmixForm', :class => 'form-admix', 'ng-controller' => 'FormController' }, wrapper: :bootstrap do |f| %h1 {{method}} = render partial: 'form_config', locals: {f:f} = f.error_notification .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
12 entries across 12 versions & 2 rubygems