app/views/admin/content/edit.rhtml in typo-4.0.3 vs app/views/admin/content/edit.rhtml in typo-4.1

- old
+ new

@@ -1,28 +1,10 @@ - <% @page_heading = 'Articles' %> - + <% @page_heading = _('Edit Article') %> + <% content_for('tasks') do %> - <%= task_new 'Create new article' %> - <li><%= link_to 'View article on your blog', article_url(@article) %></li> - <% end %> + <%= task_overview %> + + <li><%= link_to _('View article on your blog'), @article.permalink_url %></li> + <% end %> - <%= start_form_tag({ :action => "edit", :id => @article }, :id => "article_form", :enctype => "multipart/form-data") %> - <h3>Editing article</h3> - - <div class="form"> - <!-- LIVE PREVIEW --> - <div id="preview" class="post" style="display:none;"></div> - <!-- /LIVE PREVIEW --> - <%= render_partial "form" %> - </div> - - <div id="operations"> - <%= save %> or <%= cancel %> - </div> - - <%= end_form_tag %> - - <%= observe_form "article_form", - :frequency => 2, - :update => "preview", - :complete => "Element.show('preview')", - :url => { :action => "preview" } %> + <h3><%= _("Edit Article")%></h3> + <%= render :partial => "admin/shared/edit", :locals => { :form_type => "article", :form_action => { :action => "edit", :id => @article } } %>