app/views/spotlight/pages/_form.html.erb in blacklight-spotlight-0.32.0 vs app/views/spotlight/pages/_form.html.erb in blacklight-spotlight-0.33.0

- old
+ new

@@ -7,11 +7,11 @@ :'form-observer' => true, :'blacklight-configuration-index-fields' => available_index_fields, :'blacklight-configuration-search-views' => available_view_fields.map { |k,v| { key: k, label: view_label(k) }}, :'attachment-endpoint' => spotlight.exhibit_attachments_path(@page.exhibit), :'autocomplete-exhibit-catalog-path'=> spotlight.autocomplete_exhibit_catalog_path(@page.exhibit, q: "%QUERY", format: "json"), - :'autocomplete-exhibit-feature-pages-path' => spotlight.exhibit_feature_pages_path(@page.exhibit, format: "json"), + :'autocomplete-exhibit-pages-path' => spotlight.exhibit_pages_path(@page.exhibit, format: "json"), :'autocomplete-exhibit-searches-path' => spotlight.exhibit_searches_path(@page.exhibit, format: "json"), :'preview-url' => (spotlight.exhibit_preview_block_url(@page.exhibit, @page) if @page.persisted?) } }) do |f| %> <%= render @page.lock if @page.lock and not @page.lock.stale? and not @page.lock.current_session? %> @@ -49,11 +49,11 @@ <%= f.label :title, class: 'sr-only' %> <%= f.text_field_without_bootstrap :title, class: 'form-control input-lg', placeholder: t(:'.title_placeholder') %> </div> <div class="form-group"> <%= f.label :content, class: 'sr-only' %> - <%= f.text_area_without_bootstrap :content, value: f.object['content'], class: 'js-st-instance' %> + <%= f.text_area_without_bootstrap :content, value: { data: f.object.content.as_json }.to_json, class: 'js-st-instance' %> </div> </div> <div role="tabpanel" class="tab-pane" id="page-options"> <%= render "page_options", f: f %> @@ -61,10 +61,10 @@ <% if @page.respond_to? :thumbnail %> <div role="tabpanel" class="tab-pane" id="page-thumbnail"> <%= f.fields_for :thumbnail, (@page.thumbnail || @page.build_thumbnail) do |m| %> <p class="instructions"><%= t(:'.thumbnail.help') %></p> - <%= render '/spotlight/featured_images/form', f: m, jcrop_options: default_thumbnail_jcrop_options %> + <%= render '/spotlight/featured_images/form', f: m, initial_crop_selection: Spotlight::Engine.config.featured_image_thumb_size, crop_type: :thumbnail %> <% end %> </div> <% end %> </div> </div>