Permalink
Browse files

forgotten one file

  • Loading branch information...
1 parent 4ec8c64 commit d5fbf5f1e9194af6a1e98217fe0921716e4740a4 @thegcat committed Aug 10, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 app/views/doodles/edit.html.erb
@@ -0,0 +1,12 @@
+<h2><%= l(:label_doodle) %></h2>
+<% labelled_tabular_form_for :doodle, @doodle, :url => { :controller => 'doodles', :action => 'update', :id => @doodle}, :html => { :id => 'doodle-form', :method => :put } do |f| %>
+<%= render :partial => 'form', :locals => { :f => f } %>
+<%= submit_tag l(:button_save) %>
+<%= link_to_remote l(:label_preview),
+ { :url => { :controller => 'doodles', :action => 'preview', :project_id => @project },
+ :method => 'post',
+ :update => 'preview',
+ :with => "Form.serialize('doodle-form')"
+ }, :accesskey => accesskey(:preview) %>
+<% end if @project %>
+<div id="preview" class="doodle"></div>

0 comments on commit d5fbf5f

Please sign in to comment.