To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / wiki / .svn / text-base / edit.rhtml.svn-base @ 442:753f1380d6bc
History | View | Annotate | Download (1.28 KB)
| 1 | 0:513646585e45 | Chris | <h2><%=h @page.pretty_title %></h2> |
|---|---|---|---|
| 2 | |||
| 3 | 37:94944d00e43c | chris | <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
|
| 4 | 0:513646585e45 | Chris | <%= 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 | 37:94944d00e43c | chris | { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
|
| 14 | :method => :post, |
||
| 15 | 0:513646585e45 | Chris | :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 | 441:cbce1fd3b1b7 | Chris | <%= robot_exclusion_tag %> |
| 27 | 0:513646585e45 | Chris | <% end %> |
| 28 | |||
| 29 | <% html_title @page.pretty_title %> |