Sha256: 660440c70edc45f7df1d371426f1e5302e3ef554121184789cd7e874d09d3e93
Contents?: true
Size: 1021 Bytes
Versions: 4
Compression:
Stored size: 1021 Bytes
Contents
<% if @content_block.errors.any? %> <div class='form-errors'> <h3>Whoops!</h3> <p>Please correct the following errors:</p> <ul> <% @content_block.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div><!-- form-errors --> <% end %> <%= 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
4 entries across 4 versions & 1 rubygems