Sha256: 6dd07aee4ba6467be1161e9d52d151c16e841bb82d7f528ff436f692b926b11f

Contents?: true

Size: 818 Bytes

Versions: 23

Compression:

Stored size: 818 Bytes

Contents

= tabs do
  = tab '<%= resource.human_name.titleize %>' do
    = render '/<%= resource.plural_name %>/form_<%= resource.name %>', <%= resource.name %>: <%= resource.name %>, namespace: <%= resource.namespace ? ":#{resource.namespace}" : 'nil' %>

<%- if resource.nested_resources.present? || resource.instance.respond_to?(:log_changes_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 %>_id: <%= resource.name %>.id))
<%- end -%>
<%- if resource.instance.respond_to?(:log_changes_datatable) -%>
    = tab 'Logs' do
      = render_datatable(<%= resource.name %>.log_changes_datatable)
<% end -%>
<% end -%>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
effective_developer-0.4.2 lib/scaffolds/forms/tabbed/_form.html.haml
effective_developer-0.4.1 lib/scaffolds/forms/tabbed/_form.html.haml
effective_developer-0.4.0 lib/scaffolds/forms/tabbed/_form.html.haml