<% widget = assigned.widget %> <%= form_for assigned, url: { action: (assigned.new_record? ? "create" : "update"), controller: "admin/appearances/widgets/assign", id: assigned, sidebar_id: assigned.sidebar.id }, html: { role: 'form', class: "validate assign_form", "data-id" => assigned.id, id: "form-assigned-#{assigned.id}" } do |f| %>

<%= widget.name %>

<% unless widget.is_simple? %>
<%= render partial: "admin/settings/custom_fields/render", locals: {record: assigned, field_groups: widget.get_field_groups, skip_panel: true} %>
<% end %>
<% end %>