% container_element = element.is_a?(Fe::QuestionGrid) || (element.is_a?(Fe::ChoiceField) && element.style == "yes-no") %>
<% if container_element %>
<% end %>
" id="element_<%= element.id %>" data-element_id="<%= element.id %>">
- <%= link_to "edit", edit_fe_admin_question_sheet_page_element_path(@page.question_sheet.id, @page.id, element.id), remote: true, method: :get, class: "edit", title: "Edit this element" %>
<% if in_grid -%>
- <%= link_to("remove", remove_from_grid_fe_admin_question_sheet_page_element_path(@page.question_sheet.id, @page.id, element.id), remote: true, class: "remove", title: "remove" )%>
<% end -%>
- <%= link_to "duplicate", duplicate_fe_admin_question_sheet_page_element_path(@page.question_sheet.id, @page.id, element.id), remote: true, method: :post, class: "duplicate", title: "Duplicate this element" %>
- <%= link_to("Delete", fe_admin_question_sheet_page_element_path( @page.question_sheet_id, @page.id, element.id), remote: true, method: :delete, class: "delete", data: {confirm: "Are you sure you want to remove this element from this form?"}, title: "Permanently delete this item") %>
- drag
<%= render "fe/admin/question_pages/element_show", element: element %>
<% if container_element %>
<% end %>