Mercurial > hg > soundsoftware-site
comparison .svn/pristine/f6/f6192b830bfab2419039937f8b16b4b02825696b.svn-base @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
1 <%= wiki_page_breadcrumb(@page) %> | |
2 | |
3 <h2><%= h @page.pretty_title %></h2> | |
4 | |
5 <%= form_for @content, :as => :content, | |
6 :url => {:action => 'update', :id => @page.title}, | |
7 :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %> | |
8 <%= f.hidden_field :version %> | |
9 <% if @section %> | |
10 <%= hidden_field_tag 'section', @section %> | |
11 <%= hidden_field_tag 'section_hash', @section_hash %> | |
12 <% end %> | |
13 <%= error_messages_for 'content' %> | |
14 | |
15 <div class="box tabular"> | |
16 <%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, | |
17 :class => 'wiki-edit', :accesskey => accesskey(:edit) %> | |
18 | |
19 <% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %> | |
20 <%= fields_for @page do |fp| %> | |
21 <p> | |
22 <label><%= l(:field_parent_title) %></label> | |
23 <%= fp.select :parent_id, | |
24 content_tag('option', '', :value => '') + | |
25 wiki_page_options_for_select( | |
26 @wiki.pages.includes(:parent).all - | |
27 @page.self_and_descendants, @page.parent) %> | |
28 </p> | |
29 <% end %> | |
30 <% end %> | |
31 | |
32 <p><label><%= l(:field_comments) %></label><%= f.text_field :comments, :size => 120 %></p> | |
33 <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> | |
34 </div> | |
35 | |
36 <p><%= submit_tag l(:button_save) %> | |
37 <%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %></p> | |
38 <%= wikitoolbar_for 'content_text' %> | |
39 <% end %> | |
40 | |
41 <div id="preview" class="wiki"></div> | |
42 | |
43 <% content_for :header_tags do %> | |
44 <%= robot_exclusion_tag %> | |
45 <% end %> | |
46 | |
47 <% html_title @page.pretty_title %> |