Sha256: bf8086425d2cfc28481288a98122847c9dfc0952aab8c17bbd990f86a71566fa

Contents?: true

Size: 564 Bytes

Versions: 5

Compression:

Stored size: 564 Bytes

Contents

<% args = properties.except('model') %>
<%= f.select(
  attribute,
  (
    @collections["#{properties["model"]}"].collect do |resource|
      [resource.name, resource.id]
    end
  ),
  args
) %>


<% if (
    !is_modal &&
    (
      properties['remote_resource'].nil? ||
      properties['remote_resource']
    )
) %>
  <!-- if rendering the form inside a modal, so we don't have to
  manage infinited nested forms -->

  <%= render 'adminpanel/shared/create_remote_resource_button', belongs_request: true, remote_resource_name: properties['model'] %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminpanel-2.4.2 app/views/adminpanel/form/_belongs_to.html.erb
adminpanel-2.4.1 app/views/adminpanel/form/_belongs_to.html.erb
adminpanel-2.4.0 app/views/adminpanel/form/_belongs_to.html.erb
adminpanel-2.3.1 app/views/adminpanel/form/_belongs_to.html.erb
adminpanel-2.3.0 app/views/adminpanel/form/_belongs_to.html.erb