Mercurial > hg > soundsoftware-site
comparison app/views/wiki/.svn/text-base/edit.rhtml.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children | 94944d00e43c |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 <h2><%=h @page.pretty_title %></h2> | |
2 | |
3 <% form_for :content, @content, :url => {:action => 'edit', :page => @page.title}, :html => {:multipart => true, :id => 'wiki_form'} do |f| %> | |
4 <%= f.hidden_field :version %> | |
5 <%= error_messages_for 'content' %> | |
6 | |
7 <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p> | |
8 <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p> | |
9 <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p> | |
10 | |
11 <p><%= submit_tag l(:button_save) %> | |
12 <%= link_to_remote l(:label_preview), | |
13 { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, | |
14 :method => 'post', | |
15 :update => 'preview', | |
16 :with => "Form.serialize('wiki_form')", | |
17 :complete => "Element.scrollTo('preview')" | |
18 }, :accesskey => accesskey(:preview) %></p> | |
19 <%= wikitoolbar_for 'content_text' %> | |
20 <% end %> | |
21 | |
22 <div id="preview" class="wiki"></div> | |
23 | |
24 <% content_for :header_tags do %> | |
25 <%= stylesheet_link_tag 'scm' %> | |
26 <% end %> | |
27 | |
28 <% html_title @page.pretty_title %> |