redmine_dmsf/app/views/dmsf/edit.html.erb
vit.jonas@gmail.com 5016dbde2d * work on Issue 142: Copy Folder option
git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@252 5e329b0b-a2ee-ea63-e329-299493fc886d
2011-10-10 12:06:12 +00:00

48 lines
1.6 KiB
Plaintext

<% html_title(l(:dmsf)) %>
<div class="contextual">
<%= link_to(image_tag("copy.png"), {:controller => :dmsf_folders_copy, :action => "new", :id => @folder }, :title => l(:title_copy)) %>
</div>
<% create = @pathfolder == @parent %>
<h2>
<%= render(:partial => "path", :locals => {:path => @pathfolder.nil? ? [] : @pathfolder.dmsf_path}) %>
<%= ("/ " + l(:heading_new_folder)) if create %>
</h2>
<% form_for(:dmsf_folder, @folder, :url => {:action => create ? "create" : "save", :id => @project, :folder_id => @folder, :parent_id => @parent},
:html => {:method=>:post}) do |f| %>
<%= error_messages_for("folder") %>
<div class="box dmsf_detail">
<div class="clear">
<div class="splitcontentleft">
<p>
<%= label_tag("dmsf_folder_title", l(:label_title) + ":") %>
<%= f.text_field(:title, :size => "32", :required => true) %>
</p>
</div>
<div class="splitcontentright">
<p>
<%= label_tag("", l(:field_folder) + ":") %>
<%= f.select(:dmsf_folder_id,
options_for_select(DmsfFolder.directory_tree(@project, @folder),
:selected => @folder.nil? ? (@pathfolder.id unless @pathfolder.nil?) : (@folder.folder.id unless @folder.folder.nil?))) %>
</p>
</div>
</div>
<p class="no-ident">
<%= label_tag("dmsf_folder_description", l(:label_description) + ":") %>
</p>
<div class="wiki data clear">
<%= f.text_area(:description, :rows => 15, :class => "wiki-edit") %>
</div>
</div>
<%= submit_tag(create ? l(:submit_create) : l(:submit_save)) %>
<% end %>
<%= wikitoolbar_for "dmsf_folder_description" %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "dmsf", :plugin => "redmine_dmsf" %>
<% end %>