Sha256: 84f80fee25aada80389d92e981cfeab73dfe36e2a17367a83bfb433aa1ba1293

Contents?: true

Size: 795 Bytes

Versions: 5

Compression:

Stored size: 795 Bytes

Contents

<%= render 'manifest/shared/form_error_list', object: @content_block %>

<%= form_for [:manifest, @content_block], builder: Manifest::LabelledFormBuilder do |f| %>
  <% if current_editor.admin? %>
    <%= f.text_field :title %>
  <% else %>
    <p><strong>Title:</strong> <%= @content_block.title %></p>
  <% end %>

  <% if current_editor.admin? %>
    <%= f.collection_select :page_id, Page.all, :id, :title %>
  <% else %>
    <p><strong>Page:</strong> <%= @content_block.page ? @content_block.page.title : 'No page' %></p>
  <% end %>

  <% if current_editor.admin? %>
    <%= f.check_box :allow_html %>
  <% end %>

  <% if @content_block.allow_html? %>
    <%= f.text_area :content, class: 'tinymce' %>
  <% else %>
    <%= f.text_area :content %>
  <% end %>
  <%= f.submit %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
manifest-rails-0.2.8 app/views/manifest/content_blocks/_form.html.erb
manifest-rails-0.2.7 app/views/manifest/content_blocks/_form.html.erb
manifest-rails-0.2.6 app/views/manifest/content_blocks/_form.html.erb
manifest-rails-0.2.5 app/views/manifest/content_blocks/_form.html.erb
manifest-rails-0.2.4 app/views/manifest/content_blocks/_form.html.erb