annotate .svn/pristine/df/dfaada6847118a5a5c356f284d85534d2f72a859.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

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