| <% @heading = 'Checking Out' %> |
| <% @overview = "You are about to check-out the page " + link_to_page(@wiki, @page) + ". <p>To be able to edit this page a reserved working copy will be created. <br>The page will be locked untill you check-in or undo the check-out. The changes will be visible to other users only after you check-in.</p><p>It is recommended to add a check-out note, you can modify this note when you check-in the file.</p>" %> |
| |
| <% tinymce %> |
| |
| <%= error_messages_for 'checkout' %> |
| |
| <% tabular_form_for :version, @version do |f| %> |
| <%= f.hidden_field :page_id %> |
| <input type="hidden" name="wiki_id" value="<%= @wiki.id %>"> |
| <tr> |
| <th></th> |
| <td><%= f.text_area :note, :cols => 60, :rows => 8 %></td> |
| <tr> |
| <th valign="top" >Destination Page</th> |
| <td><%= link_to_page(@wiki, @page) %></td> |
| </tr> |
| <tr> |
| <th valign="top" >Source Page</th> |
| <td><%= link_to_page(@source_version.site, @source_version.page) if @source_version %></td> |
| </tr> |
| <tr> |
| <th>Source Version</th> |
| <td><%= f.select :version_id, @versions.collect {|version| [version.version_text, version.id]} %></td></tr> |
| </tr> |
| <tr> |
| <th>Target Site</th> |
| <td><%= f.select :site_id, @page.wikis_4checkout.collect {|wiki| [wiki.title, wiki.id]} %></td> |
| </tr> |
| <tr><th></th><td><%= submit_tag "Continue" %></td></tr> |
| <% end %> |
| |
| |
| |
| |