Sha256: ab06663b1fde97a970c15425520eabcde4b1002f266957efe35747a7b994ca3e

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

<%= form.field_container :title do %>
	<%= form.label :title %>
	<%= form.text_field :title %><br/>
<% end %>

<%= form.field_container :weight do %>
  <%= form.label :weight %>
  <%= form.text_field :weight %>
<% end %>

<%= form.field_container :category do %>
	<%= form.label :category_id %>
	<%= form.select :category_id, ContentCategory.all.map { |c| [c.name, c.id] } %><br/>
<% end %>

<%= form.field_container :image do %>

	<% if @content_part.image %>
	  <%= image_tag @content_part.image.image.url(:medium) %>
	
		<p>
			<%= form.label :image %>
			<%= form.file_field :image_path %>
		</p>
	<% else %>
		<%= form.label :image %>
		<%= form.file_field :image_path %>
	<% end %>
<% end %>


<%= form.field_container :image_overlay do %>

	<% if @content_part.image_overlay %>
	  <%= image_tag @content_part.image_overlay.image.url(:medium) %>
	
		<p>
			<%= form.label :image_overlay %>
			<%= form.file_field :image_overlay_path %>
		</p>
	<% else %>
		<%= form.label :image_overlay %>
		<%= form.file_field :image_overlay_path %>
	<% end %>
<% end %>

<%= form.field_container :excerpt do %>
	<%= form.label :excerpt %>
	<%= form.text_area :excerpt%><br/>
<% end %>

<% form.field_container :body_raw do %>
	<%= form.label :body_raw %>
	<%= form.text_area :body_raw%><br/>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree-cms-0.2.1 app/views/admin/content_parts/_form.html.erb
spree-cms-0.2.0 app/views/admin/content_parts/_form.html.erb
spree-cms-0.1.0 app/views/admin/content_parts/_form.html.erb