Sha256: 766f64cbfc4cc66b04df759c66744d940a475bcba913cf968b0bc80ee1961b00

Contents?: true

Size: 749 Bytes

Versions: 3

Compression:

Stored size: 749 Bytes

Contents

= tabs do
  = tab(<%= resource.name %>) 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

3 entries across 3 versions & 1 rubygems

Version Path
effective_developer-0.8.5 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.8.4 lib/scaffolds/admin_effective/views/_form.html.haml
effective_developer-0.8.3 lib/scaffolds/admin_effective/views/_form.html.haml