add_document.rhtml
15 lines
| 566 B
| text/html+ruby
|
RhtmlLexer
|
r12 | <h2><%=l(:label_document_new)%></h2> | ||
|
r2 | |||
|
r19 | <%= start_form_tag( { :action => 'add_document', :id => @project }, :class => "tabular", :multipart => true) %> | ||
|
r12 | <%= render :partial => 'documents/form' %> | ||
|
r19 | |||
<div class="box"> | ||||
|
r127 | <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> | ||
<%= link_to_function image_tag('add'), "addFileField()" %></label> | ||||
|
r128 | <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>)</em></p> | ||
|
r19 | </div> | ||
|
r2 | |||
|
r12 | <%= submit_tag l(:button_create) %> | ||
|
r2 | <%= end_form_tag %> | ||