@@ -1,42 +1,42 | |||||
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 | <% if @section %> |
|
7 | <% if @section %> | |
8 | <%= hidden_field_tag 'section', @section %> |
|
8 | <%= hidden_field_tag 'section', @section %> | |
9 | <%= hidden_field_tag 'section_hash', @section_hash %> |
|
9 | <%= hidden_field_tag 'section_hash', @section_hash %> | |
10 | <% end %> |
|
10 | <% end %> | |
11 | <%= error_messages_for 'content' %> |
|
11 | <%= error_messages_for 'content' %> | |
12 |
|
12 | |||
13 | <div class="box tabular"> |
|
13 | <div class="box tabular"> | |
14 | <%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %> |
|
14 | <%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %> | |
15 |
|
15 | |||
16 | <% if @page.new_record? && @page.parent %> |
|
16 | <% if @page.new_record? && @page.parent %> | |
17 | <p><label><%= check_box_tag 'page[parent_id]', @page.parent.id %> <%= l(:field_parent_title) %></label> <%=h @page.parent.pretty_title %></p> |
|
17 | <p><label><%= check_box_tag 'page[parent_id]', @page.parent.id, true %> <%= l(:field_parent_title) %></label> <%=h @page.parent.pretty_title %></p> | |
18 | <% end %> |
|
18 | <% end %> | |
19 |
|
19 | |||
20 | <p><label><%= l(:field_comments) %></label><%= f.text_field :comments, :size => 120 %></p> |
|
20 | <p><label><%= l(:field_comments) %></label><%= f.text_field :comments, :size => 120 %></p> | |
21 | <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> |
|
21 | <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> | |
22 | </div> |
|
22 | </div> | |
23 |
|
23 | |||
24 | <p><%= submit_tag l(:button_save) %> |
|
24 | <p><%= submit_tag l(:button_save) %> | |
25 | <%= link_to_remote l(:label_preview), |
|
25 | <%= link_to_remote l(:label_preview), | |
26 | { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, |
|
26 | { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, | |
27 | :method => :post, |
|
27 | :method => :post, | |
28 | :update => 'preview', |
|
28 | :update => 'preview', | |
29 | :with => "Form.serialize('wiki_form')", |
|
29 | :with => "Form.serialize('wiki_form')", | |
30 | :complete => "Element.scrollTo('preview')" |
|
30 | :complete => "Element.scrollTo('preview')" | |
31 | }, :accesskey => accesskey(:preview) %></p> |
|
31 | }, :accesskey => accesskey(:preview) %></p> | |
32 | <%= wikitoolbar_for 'content_text' %> |
|
32 | <%= wikitoolbar_for 'content_text' %> | |
33 | <% end %> |
|
33 | <% end %> | |
34 |
|
34 | |||
35 | <div id="preview" class="wiki"></div> |
|
35 | <div id="preview" class="wiki"></div> | |
36 |
|
36 | |||
37 | <% content_for :header_tags do %> |
|
37 | <% content_for :header_tags do %> | |
38 | <%= stylesheet_link_tag 'scm' %> |
|
38 | <%= stylesheet_link_tag 'scm' %> | |
39 | <%= robot_exclusion_tag %> |
|
39 | <%= robot_exclusion_tag %> | |
40 | <% end %> |
|
40 | <% end %> | |
41 |
|
41 | |||
42 | <% html_title @page.pretty_title %> |
|
42 | <% html_title @page.pretty_title %> |
General Comments 0
You need to be logged in to leave comments.
Login now