Sha256: 67a5fc4d259da9300deb2bf663ee966494e411468394db6e48779373953f002e

Contents?: true

Size: 996 Bytes

Versions: 6

Compression:

Stored size: 996 Bytes

Contents

<h1>Editing a Slide</h1>

<% form_for([:admin, @slide], :html => { :multipart => true}) do |f| %>
  <%= f.hidden_field :slide_show_id %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :strapline %><br />
    <%= f.text_field :strapline %>
  </p>
  <p>
    <%= f.label :link %><br />
    <%= f.text_field :link %>
  </p>
  <p>
    <%= f.label :uploaded_data, "Image" %><br />
    <%= f.file_field :uploaded_data %>
  </p>
  <div class="module">
	
  <%= publish_select(f) %>
  
  <p class="submission">
    <%= f.submit 'Publish', :name => 'slide[publish]' %>
    <%= f.submit 'Save as draft', :name => 'slide[hide]' %>
     or <%= link_to 'Cancel', admin_slide_show_slides_path(@slide.slide_show_id) %>
  </p>
    </div>
<% end %>

<% content_for :sub_content do %>
	<h2>Current Image</h2>
	<%= image_tag @slide.public_filename(), :width => '100%' %>
<% end unless @slide.new_record? or @slide.filename == 'no_file' %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
beef-slides-0.2.4 app/views/admin/slides/show.html.erb
beef-slides-1.0.0 app/views/admin/slides/show.html.erb
beef-slides-1.1.1 app/views/admin/slides/show.html.erb
beef-slides-1.1.2 app/views/admin/slides/show.html.erb
beef-slides-1.1.4 app/views/admin/slides/show.html.erb
beef-slides-1.1.5 app/views/admin/slides/show.html.erb