annotate app/views/wiki/edit.html.erb @ 1169:492ff72268e3 bug_521

Close obsolete branch bug_521
author Chris Cannam
date Thu, 18 Oct 2012 10:42:48 +0100
parents cbb26bc654de
children 433d4f72a19b
rev   line source
Chris@909 1 <%= wiki_page_breadcrumb(@page) %>
Chris@909 2
Chris@0 3 <h2><%=h @page.pretty_title %></h2>
Chris@0 4
chris@37 5 <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
Chris@0 6 <%= f.hidden_field :version %>
Chris@909 7 <% if @section %>
Chris@909 8 <%= hidden_field_tag 'section', @section %>
Chris@909 9 <%= hidden_field_tag 'section_hash', @section_hash %>
Chris@909 10 <% end %>
Chris@0 11 <%= error_messages_for 'content' %>
Chris@0 12
Chris@909 13 <p><%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
Chris@0 14 <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
Chris@0 15 <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
Chris@0 16
Chris@0 17 <p><%= submit_tag l(:button_save) %>
Chris@909 18 <%= link_to_remote l(:label_preview),
chris@37 19 { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
chris@37 20 :method => :post,
Chris@0 21 :update => 'preview',
Chris@0 22 :with => "Form.serialize('wiki_form')",
Chris@0 23 :complete => "Element.scrollTo('preview')"
Chris@0 24 }, :accesskey => accesskey(:preview) %></p>
Chris@0 25 <%= wikitoolbar_for 'content_text' %>
Chris@0 26 <% end %>
Chris@0 27
Chris@0 28 <div id="preview" class="wiki"></div>
Chris@0 29
Chris@0 30 <% content_for :header_tags do %>
Chris@0 31 <%= stylesheet_link_tag 'scm' %>
Chris@441 32 <%= robot_exclusion_tag %>
Chris@0 33 <% end %>
Chris@0 34
Chris@0 35 <% html_title @page.pretty_title %>