Sha256: edc445c56c246f3c3267ba29ec717e5609da96318ff68e2e65ca218a6e4a7be0

Contents?: true

Size: 982 Bytes

Versions: 4

Compression:

Stored size: 982 Bytes

Contents

<% @index ||= 0 -%>
<div class="page" id="page-<%= @index + 1 %>">
  <div class="part" id="part-<%= @index + 1 %>">
    <%= hidden_field_tag "part[#{@index}][name]", part.name, :id => "part_#{@index}_name" %>
    <p>
      <label for="part_<%= @index %>_filter_id">Filter</label>
      <%= 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" %>
      <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>
    </p>
    <div><%= text_area_tag "part[#{@index}][content]", h(part.content), :class => "textarea", :style => "width: 100%", :id => "part_#{@index}_content" %></div>
  </div>
</div>
<% @index += 1 -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-0.6.4 app/views/admin/page/_part.rhtml
radiant-0.6.5.1 app/views/admin/page/_part.html.erb
radiant-0.6.5 app/views/admin/page/_part.html.erb
radiant-0.6.6 app/views/admin/page/_part.html.erb