Sha256: cc5d5ca888d346961b4ffe37ea3fc43c0d9c5f3bf47f3f304818cd0548d77fd0
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
.nested-field-wrapper data-table-name=table_name data-model-name=table_name.to_s.classify label.nested-field-label = table_name.to_s.titleize .accordion.nested-form-accordion = f.fields_for table_name do |record| - if record.object.persisted? = render partial: '/cm_admin/main/nested_fields', locals: { f: record, assoc_name: table_name } - if @reflections.select {|x| x if x.name == table_name}.first.macro == :has_many .links = link_to_add_association "+ Add #{table_name.to_s.titleize}", f, table_name, partial: '/cm_admin/main/nested_fields', render_options: {locals: { assoc_name: table_name }}, class: 'd-inline-block secondary-btn mt-2'
Version data entries
3 entries across 3 versions & 1 rubygems