Sha256: 9bf5de186edf87227de17dc3eb2c397c80e1cf0b1b6765908519bebe654a7d87

Contents?: true

Size: 765 Bytes

Versions: 13

Compression:

Stored size: 765 Bytes

Contents

= tabs do
  = tab '<%= resource.human_name.titleize %>' do
    = render '<%= resource.view_file_path("form_#{resource.name}").sub('effective/', '') %>', <%= resource.name %>: <%= resource.name %>

<%- if resource.nested_resources.present? || resource.instance.respond_to?(:logs_datatable) %>
  - if <%= resource.name %>.persisted?
<%- resource.nested_resources.each do |nested_resource| -%>
    = tab '<%= nested_resource.plural_name.titleize %>' do
      = render_datatable(<%= nested_resource.klass.name %>Datatable.new(<%= resource.name %>: <%= resource.name %>))

<%- end -%>
<% end -%>
  - if <%= resource.name %>.persisted? && <%= resource.name %>.respond_to?(:logs_datatable)
    = tab 'Logs' do
      = render_datatable(<%= resource.name %>.logs_datatable)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
effective_developer-0.8.2 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.8.1 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.8.0 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.8 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.7 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.6 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.5 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.4 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.3 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.2 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.1 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.7.0 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.6.17 lib/scaffolds/admin_effective/views/_form.html.haml