????
Current Path : C:/inetpub/vhost/redmine/plugins/redmine_people/app/views/departments/ |
Current File : C:/inetpub/vhost/redmine/plugins/redmine_people/app/views/departments/_attachments.html.erb |
<div id="department_files"> <div class="contextual"> <%= link_to l(:button_add), {}, :onclick => "$('#add_attachment_form').show(); $('#add_attachment_link').hide(); return false;", :class => 'icon icon-add', :id => 'add_attachment_link' if User.current.allowed_people_to?(:manage_departments) %> </div> <%= labelled_form_for :department, @department, :url => {:action => 'update', :id => @department}, :html => { :multipart => true, :method => :put, :id => "add_attachment_form", :style => "display:none;" } do |f| %> <fieldset> <%= error_messages_for 'department' %> <p><%=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form', :locals => {:container => @department}%></p> <%= submit_tag l(:button_save) -%> <%= link_to l(:button_cancel), {}, :onclick => "$('#add_attachment_form').hide(); $('#add_attachment_link').show(); return false;" %> </fieldset> <% end -%> <%= render :partial => 'attachments/links', :locals => {:container => @department, :attachments => @department_attachments, :options => {:author => true, :deletable => :true}, :thumbnails => Setting.thumbnails_enabled?} %> </div>