Sha256: 37db0066069230a5887e29351e6b55e49e7ac3cba441b6b626c23faaeafc26fa

Contents?: true

Size: 1.72 KB

Versions: 6

Compression:

Stored size: 1.72 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.type, 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

6 entries across 6 versions & 1 rubygems

Version Path
think_feel_do_engine-3.15.4 app/views/think_feel_do_engine/bit_maker/content_providers/_form.html.erb
think_feel_do_engine-3.15.3 app/views/think_feel_do_engine/bit_maker/content_providers/_form.html.erb
think_feel_do_engine-3.15.2 app/views/think_feel_do_engine/bit_maker/content_providers/_form.html.erb
think_feel_do_engine-3.15.1 app/views/think_feel_do_engine/bit_maker/content_providers/_form.html.erb
think_feel_do_engine-3.15.0 app/views/think_feel_do_engine/bit_maker/content_providers/_form.html.erb
think_feel_do_engine-3.14.9 app/views/think_feel_do_engine/bit_maker/content_providers/_form.html.erb