@@ -1,31 +1,31 | |||||
1 | <%= wiki_page_breadcrumb(@page) %> |
|
1 | <%= wiki_page_breadcrumb(@page) %> | |
2 |
|
2 | |||
3 | <h2><%=h @page.pretty_title %></h2> |
|
3 | <h2><%=h @page.pretty_title %></h2> | |
4 |
|
4 | |||
5 | <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %> |
|
5 | <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %> | |
6 | <%= f.hidden_field :version %> |
|
6 | <%= f.hidden_field :version %> | |
7 | <%= error_messages_for 'content' %> |
|
7 | <%= error_messages_for 'content' %> | |
8 |
|
8 | |||
9 | <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p> |
|
9 | <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p> | |
10 | <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p> |
|
10 | <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p> | |
11 | <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p> |
|
11 | <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p> | |
12 |
|
12 | |||
13 | <p><%= submit_tag l(:button_save) %> |
|
13 | <p><%= submit_tag l(:button_save) %> | |
14 | <%= link_to_remote l(:label_preview), |
|
14 | <%= link_to_remote l(:label_preview), | |
15 | { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, |
|
15 | { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, | |
16 | :method => :post, |
|
16 | :method => :post, | |
17 | :update => 'preview', |
|
17 | :update => 'preview', | |
18 | :with => "Form.serialize('wiki_form')", |
|
18 | :with => "Form.serialize('wiki_form')", | |
19 | :complete => "Element.scrollTo('preview')" |
|
19 | :complete => "Element.scrollTo('preview')" | |
20 | }, :accesskey => accesskey(:preview) %></p> |
|
20 | }, :accesskey => accesskey(:preview) %></p> | |
21 | <%= wikitoolbar_for 'content_text' %> |
|
21 | <%= wikitoolbar_for 'content_text' %> | |
22 | <% end %> |
|
22 | <% end %> | |
23 |
|
23 | |||
24 | <div id="preview" class="wiki"></div> |
|
24 | <div id="preview" class="wiki"></div> | |
25 |
|
25 | |||
26 | <% content_for :header_tags do %> |
|
26 | <% content_for :header_tags do %> | |
27 | <%= stylesheet_link_tag 'scm' %> |
|
27 | <%= stylesheet_link_tag 'scm' %> | |
28 | <%= robot_exclusion_tag %> |
|
28 | <%= robot_exclusion_tag %> | |
29 | <% end %> |
|
29 | <% end %> | |
30 |
|
30 | |||
31 | <% html_title @page.pretty_title %> |
|
31 | <% html_title h(@page.pretty_title) %> |
General Comments 0
You need to be logged in to leave comments.
Login now