Sha256: e8d5311b5911e98f75aa33465e6f10a907619ec5f923b0d9e81b0290acfa1149

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 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.find_all.map { |s| s.registered_id }, @part.filter_id) %>
    </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

2 entries across 2 versions & 1 rubygems

Version Path
radiant-0.5.1 app/views/admin/page/_part.rhtml
radiant-0.5.2 app/views/admin/page/_part.rhtml