% @project_sections = QuestionsSection.for_project(@project).sorted %>
<%= l(:field_name) %> | <%=l(:field_type)%> | |
---|---|---|
<%= h(section.name) %> | <%= section.l_type %> | <% if User.current.allowed_to?(:manage_sections, @project) %> <%= reorder_handle(section, url: project_questions_section_path(@project, section), param: 'questions_section') if respond_to?(:reorder_handle) %> <%= link_to l(:button_edit), edit_questions_section_path(section, project_id: @project), class: 'icon icon-edit' %> <%= delete_link questions_section_path(section, project_id: @project) %> <% end %> |
<%= l(:label_no_data) %>
<% end %> <% if User.current.allowed_to?(:manage_sections, @project) %> <%= link_to image_tag('add.png', style: 'vertical-align: middle;') + l(:label_questions_section_new), new_questions_section_path(project_id: @project) %> <% end %> <%= javascript_tag do %> $(function() { $("table.questions_sections tbody").positionedItems(); }); <% end if respond_to?(:reorder_handle) %>