2008-12-15 20:19:22 +01:00
|
|
|
<%-
|
2007-01-22 14:43:50 +01:00
|
|
|
@title = "Upload #{h @file_name}"
|
|
|
|
@hide_navigation = false
|
2008-12-15 20:19:22 +01:00
|
|
|
-%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
<%= error_messages_for 'file' %>
|
|
|
|
|
2007-05-11 18:47:38 +02:00
|
|
|
<% form_tag({ :controller => 'file', :web => @web_name, :action => 'file' },
|
|
|
|
{ 'multipart' => true , 'accept-charset' => 'utf-8' }) do %>
|
2007-01-22 14:43:50 +01:00
|
|
|
<div class="inputFieldWithPrompt">
|
2007-02-21 19:10:47 +01:00
|
|
|
<%= hidden_field 'file', 'file_name' %>
|
2007-10-09 09:51:38 +02:00
|
|
|
<label for="file_content"><b>Content of <%= h @file_name %> to upload</b>:</label>
|
2007-02-21 19:10:47 +01:00
|
|
|
<br />
|
|
|
|
<input type="file" id="file_content" name="file[content]" size="40" />
|
|
|
|
<br />
|
|
|
|
Please note that the file you are uploading will be named <%= h @file_name %> on the wiki -
|
2007-01-22 14:43:50 +01:00
|
|
|
regardless of how it is named on your computer. To change the wiki name of the file, please go
|
|
|
|
<%= link_to :back %> and edit the wiki page that refers to the file.
|
|
|
|
</div>
|
|
|
|
<div class="inputFieldWithPrompt">
|
2007-10-09 09:51:38 +02:00
|
|
|
<label for="file_description"><b>Description</b>:</label>
|
2007-01-22 14:43:50 +01:00
|
|
|
<br/>
|
|
|
|
<%= text_field "file", "description", "size" => 40 %>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input type="submit" value="Upload" /> as
|
|
|
|
<%= text_field_tag :author, @author,
|
|
|
|
:onfocus => "this.value == 'AnonymousCoward' ? this.value = '' : true;",
|
|
|
|
:onblur => "this.value == '' ? this.value = 'AnonymousCoward' : true" %>
|
|
|
|
</div>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|