* file detail design finished
git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@44 5e329b0b-a2ee-ea63-e329-299493fc886d
This commit is contained in:
parent
917e35baac
commit
ca25cfa255
@ -139,6 +139,10 @@ class DmsfFileRevision < ActiveRecord::Base
|
||||
|
||||
new_revision.source_revision = self
|
||||
new_revision.user = User.current
|
||||
|
||||
new_revision.name = self.name
|
||||
new_revision.folder = self.folder
|
||||
|
||||
return new_revision
|
||||
end
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<div class="box dmsf_detail dmsf_revision">
|
||||
<strong>Create New Revision <a href="#" id="newRevisionFormContentToggle">[-]</a></strong>
|
||||
<strong>New Revision <a href="#" id="newRevisionFormContentToggle">[-]</a></strong>
|
||||
<div id="newRevisionFormContent">
|
||||
<% if @file.locked_for_user? %>
|
||||
<p class="warning"><%= l(:info_file_locked) %></p>
|
||||
@ -38,14 +38,14 @@ form_for(:dmsf_file_revision, @revision, :url => {:action => "save_file", :id =>
|
||||
<p class="no-ident">
|
||||
<%= label_tag("dmsf_file_revision_description", "Description:") %>
|
||||
</p>
|
||||
<div class="wiki clear" style="margin-left: 110px">
|
||||
<div class="wiki data clear">
|
||||
<%= f.text_area(:description, :rows=> "6", :class => "wiki-edit") %>
|
||||
</div>
|
||||
<div class="splitcontentleft">
|
||||
<p>
|
||||
<%= label_tag("fileMinorVersionRadio", "Version:") %>
|
||||
</p>
|
||||
<div class="wiki clear" style="margin-left: 110px">
|
||||
<div class="data clear">
|
||||
<%= radio_button_tag("dmsf_file_revision[version]", "same", @revision.version == @file.last_revision.version, :id => "fileSameVersionRadio") %>
|
||||
<%= @file.last_revision.major_version %>.<%= @file.last_revision.minor_version %> Same<br />
|
||||
<%= radio_button_tag("dmsf_file_revision[version]", "minor",
|
||||
@ -65,17 +65,21 @@ form_for(:dmsf_file_revision, @revision, :url => {:action => "save_file", :id =>
|
||||
<div class="splitcontentright clear">
|
||||
<p>
|
||||
<%= label_tag("fileFileUpload", "New content:") %>
|
||||
<%= file_field_tag("dmsf_file_revision[file]", :size => 30, :id => "fileFileUpload") %>
|
||||
<br />
|
||||
<small>
|
||||
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
|
||||
</small>
|
||||
<div class="data">
|
||||
<%= file_field_tag("dmsf_file_revision[file]", :size => 30, :id => "fileFileUpload") %>
|
||||
<br />
|
||||
<small>
|
||||
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
|
||||
</small>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
<br style="clear: both"/>
|
||||
<p>
|
||||
<%= label_tag("dmsf_file_revision_comment", "Comment:") %>
|
||||
<%= f.text_area(:comment, :rows=> "2", :style => "width: 99%;") %>
|
||||
<div class="data">
|
||||
<%= f.text_area(:comment, :rows=> "2", :style => "width: 99%;") %>
|
||||
</div>
|
||||
</p>
|
||||
<br />
|
||||
<%= submit_tag("Create") %>
|
||||
|
||||
@ -72,14 +72,15 @@
|
||||
<div class="splitcontentright clear">
|
||||
<p>
|
||||
<%= label_tag("", "Mime:") %>
|
||||
<%= h(revision.mime_type) %>
|
||||
<%= h(revision.mime_type) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= label_tag("", "Size:") %>
|
||||
<%= number_to_human_size(revision.size) %>
|
||||
</p>
|
||||
</div>
|
||||
<p class="clear">
|
||||
<br style="clear: both"/>
|
||||
<p class="no-ident clear">
|
||||
<%= label_tag("", "Comment:") %>
|
||||
<%= h(revision.comment) %>
|
||||
</p>
|
||||
|
||||
@ -109,6 +109,10 @@ div.right_icon_box img.detail_icon {
|
||||
padding: 4px 4px 4px 30px;
|
||||
}
|
||||
|
||||
.dmsf_detail div.data {
|
||||
margin-left: 110px;
|
||||
}
|
||||
|
||||
.dmsf_revision label {
|
||||
font-weight: bold;
|
||||
width: 100px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user