2005-01-24 19:52:04 +01:00
|
|
|
<%
|
2005-11-14 09:38:37 +01:00
|
|
|
@title = "Upload #{h @file_name}"
|
2005-02-15 23:41:58 +01:00
|
|
|
@hide_navigation = false
|
2005-01-24 19:52:04 +01:00
|
|
|
%>
|
|
|
|
|
2005-11-14 09:38:37 +01:00
|
|
|
<%= error_messages_for 'file' %>
|
|
|
|
|
2007-05-08 00:46:00 +02:00
|
|
|
<% form_tag({ :controller => 'file', :web => @web_name, :action => 'file' },
|
|
|
|
{ 'multipart' => true , 'accept-charset' => 'utf-8' }) do %>
|
2005-11-14 09:38:37 +01:00
|
|
|
<%= hidden_field 'file', 'file_name' %>
|
|
|
|
<div class="inputFieldWithPrompt">
|
|
|
|
<b>Content of <%= h @file_name %> to upload <small>(required)</small>:</b>
|
|
|
|
<br/>
|
|
|
|
<input type="file" name="file[content]" size="40" />
|
|
|
|
<br/>
|
|
|
|
<small>
|
|
|
|
Please note that the file you are uploadng will be named <%= h @file_name %> on the wiki -
|
|
|
|
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.
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
<div class="inputFieldWithPrompt">
|
|
|
|
<b>Description <small>(optional)</small>:</b>
|
2005-01-24 19:52:04 +01:00
|
|
|
<br/>
|
2005-11-14 09:38:37 +01:00
|
|
|
<%= 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>
|
2007-05-08 00:46:00 +02:00
|
|
|
<% end %>
|