2 <div class="page" id="page-<%= @index + 1 %>">
3 <div class="part" id="part-<%= @index + 1 %>">
4 <%= hidden_field_tag "part[#{@index}][name]", part.name, :id => "part_#{@index}_name" %>
6 <label for="part_<%= @index %>_filter_id">Filter</label>
7 <%= select_tag "part[#{@index}][filter_id]", options_for_select([['<none>', '']] + TextFilter.descendants.map { |s| s.filter_name }.sort, part.filter_id), :id => "part_#{@index}_filter_id" %>
8 <span id="reference-links">Reference: <span id="filter-reference-link-<%= @index %>"><%= link_to_function "Filter", "load_filter_reference(#{@index})" %></span> <span id="tag-reference-link-<%= @index %>"><%= link_to_function 'Available Tags', "load_tag_reference(#{@index});" %></span></span>
10 <div><%= text_area_tag "part[#{@index}][content]", h(part.content), :class => "textarea", :style => "width: 100%", :id => "part_#{@index}_content" %></div>