Sha256: d21ccc15ca5d950cad6fa21ec9e5c5e356dec2f8a77285edf40ecf5a7b5a48fb
Contents?: true
Size: 954 Bytes
Versions: 4
Compression:
Stored size: 954 Bytes
Contents
<% @part = part @index = (params[:index] || @index || 1).to_i -%> <div class="page" id="page-<%= @index %>"> <div class="part" id="part-<%= @index %>"> <%= hidden_field_tag "part[#{@index - 1}][name]", @part.name %> <p> <label for="part[<%= @index - 1 %>][filter_id]">Filter</label> <%= select_tag "part[#{@index - 1}][filter_id]", options_for_select([['<none>', '']] + TextFilter.descendants.map { |s| s.filter_name }.sort, @part.filter_id) %> <span id="reference-links">Reference: <span id="filter-reference-link-<%= @index-1 %>"><%= link_to_function "Filter", "load_filter_reference(#{@index - 1})" %></span> <span id="tag-reference-link-<%= @index -1 %>"><%= link_to_function 'Available Tags', "load_tag_reference(#{@index-1});" %></span></span> </p> <div><%= text_area_tag "part[#{@index - 1}][content]", h(@part.content), :class => "textarea", :style => "width: 100%" %></div> </div> </div> <% @index += 1; -%>
Version data entries
4 entries across 4 versions & 1 rubygems