Sha256: d09b6fb3ea9bf5744022c7d3386101c3e5324ab6f07ab72d45ee50e772738bea
Contents?: true
Size: 1.73 KB
Versions: 28
Compression:
Stored size: 1.73 KB
Contents
<% if @content_provider.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@content_provider.errors.count, "error") %> prohibited this content_provider from being saved:</h2> <ul> <% @content_provider.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="form-group"> <%= f.label :bit_core_content_module_id %> <%= f.select :bit_core_content_module_id, @content_modules.includes(:tool).collect { |p| [ "#{ p.tool.title }: #{ p.title }", p.id ] }, { prompt: "Choose Module" }, class: "form-control" %> </div> <div class="form-group"> <%= f.label :type %> <%= f.select :type, ContentProviderDecorator.content_provider_classes.sort_by! { |p| p.new.pretty_label }.collect { |p| [p.new.pretty_label, p] }, { prompt: "Choose Type" }, class: "form-control" %> </div> <div class="form-group"> <%= f.label :source_content_type %> <%= f.select :source_content_type, ["BitCore::Slideshow"], { include_blank: true }, class: "form-control" %> <p class="help-block">Optional unless you are creating a slideshow</p> </div> <div class="form-group"> <%= f.label :source_content_id, "Slideshow" %> <%= f.select :source_content_id, @slideshows.collect { |p| [ p.title, p.id ] }, { include_blank: true }, class: "form-control" %> <p class="help-block">Optional unless you are creating a slideshow</p> </div> <div class="form-group"> <%= f.label :position %> <%= f.number_field :position, class: "form-control" %> </div> <div class="form-group"> <%= f.label :show_next_nav %> <%= f.check_box :show_next_nav %> </div> <div class="form-group"> <%= f.label :is_skippable_after_first_viewing %> <%= f.check_box :is_skippable_after_first_viewing %> </div>
Version data entries
28 entries across 28 versions & 1 rubygems