Sha256: 5220fac14c5b76edb50a4b9b035d6ff383a2bef05a05b7bb3cdb6f3298916aae
Contents?: true
Size: 707 Bytes
Versions: 13
Compression:
Stored size: 707 Bytes
Contents
= tabs do = tab '<%= resource.human_name.titleize %>' do = render '<%= resource.view_file_path("form_#{resource.name}") %>', <%= resource.name %>: <%= resource.name %> <%- if resource.nested_resources.present? %> - 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, inline: true)
Version data entries
13 entries across 13 versions & 1 rubygems