annotate .svn/pristine/df/dfaada6847118a5a5c356f284d85534d2f72a859.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <%= wiki_page_breadcrumb(@page) %>
Chris@1295 2
Chris@1295 3 <h2><%= h @page.pretty_title %></h2>
Chris@1295 4
Chris@1295 5 <%= form_for @content, :as => :content,
Chris@1295 6 :url => {:action => 'update', :id => @page.title},
Chris@1295 7 :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
Chris@1295 8 <%= f.hidden_field :version %>
Chris@1295 9 <% if @section %>
Chris@1295 10 <%= hidden_field_tag 'section', @section %>
Chris@1295 11 <%= hidden_field_tag 'section_hash', @section_hash %>
Chris@1295 12 <% end %>
Chris@1295 13 <%= error_messages_for 'content' %>
Chris@1295 14
Chris@1295 15 <div class="box tabular">
Chris@1295 16 <%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25,
Chris@1295 17 :class => 'wiki-edit', :accesskey => accesskey(:edit) %>
Chris@1295 18
Chris@1295 19 <% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %>
Chris@1295 20 <%= fields_for @page do |fp| %>
Chris@1295 21 <p>
Chris@1295 22 <label><%= l(:field_parent_title) %></label>
Chris@1295 23 <%= fp.select :parent_id,
Chris@1295 24 content_tag('option', '', :value => '') +
Chris@1295 25 wiki_page_options_for_select(@wiki.pages.all(:include => :parent) -
Chris@1295 26 @page.self_and_descendants, @page.parent) %>
Chris@1295 27 </p>
Chris@1295 28 <% end %>
Chris@1295 29 <% end %>
Chris@1295 30
Chris@1295 31 <p><label><%= l(:field_comments) %></label><%= f.text_field :comments, :size => 120 %></p>
Chris@1295 32 <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
Chris@1295 33 </div>
Chris@1295 34
Chris@1295 35 <p><%= submit_tag l(:button_save) %>
Chris@1295 36 <%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %></p>
Chris@1295 37 <%= wikitoolbar_for 'content_text' %>
Chris@1295 38 <% end %>
Chris@1295 39
Chris@1295 40 <div id="preview" class="wiki"></div>
Chris@1295 41
Chris@1295 42 <% content_for :header_tags do %>
Chris@1295 43 <%= robot_exclusion_tag %>
Chris@1295 44 <% end %>
Chris@1295 45
Chris@1295 46 <% html_title @page.pretty_title %>