#48 No add approval workflow button when assigning workflow to issue
This commit is contained in:
parent
23bc159db7
commit
f2c0b5b217
@ -51,8 +51,8 @@
|
||||
<span class="icon-only"></span>
|
||||
<% end %>
|
||||
<% # Email %>
|
||||
<%= link_to('', entries_operations_dmsf_path(:id => dmsf_file.project, :email_entries => 'email', :files => [dmsf_file.id]), :method => :post,
|
||||
:title => l(:heading_send_documents_by_email),
|
||||
<%= link_to('', entries_operations_dmsf_path(:id => dmsf_file.project_id, :email_entries => 'email',
|
||||
:files => [dmsf_file.id]), :method => :post, :title => l(:heading_send_documents_by_email),
|
||||
:class => 'icon-only icon-email-disabled') %>
|
||||
<% # Lock %>
|
||||
<% if !dmsf_file.locked? %>
|
||||
@ -95,7 +95,7 @@
|
||||
<%= render(:partial => 'dmsf_files/approval_workflow_button',
|
||||
:locals => {:file => dmsf_file,
|
||||
:file_approval_allowed => User.current.allowed_to?(:file_approval, dmsf_file.project),
|
||||
:workflows_available => DmsfWorkflow.where(['project_id = ? OR project_id IS NULL', dmsf_file.project.id]).exists?,
|
||||
:workflows_available => DmsfWorkflow.where(['project_id = ? OR project_id IS NULL', dmsf_file.project_id]).exists?,
|
||||
:project => dmsf_file.project, :wf => wf, :dmsf_link_id => nil }) %>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
@ -17,11 +17,13 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.%>
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
%>
|
||||
|
||||
<h3 class="title"><%= l(:field_label_dmsf_workflow) %></h3>
|
||||
<% remote = params[:dmsf_link_id] || params[:attachment_id] %>
|
||||
<%= form_tag({:controller => 'dmsf_workflows', :action => 'assignment'},
|
||||
:method => :post, :id => 'assignment-form', :remote => params[:dmsf_link_id] || params[:attachment_id]) do %>
|
||||
:method => :post, :id => 'assignment-form', :remote => remote) do %>
|
||||
<%= hidden_field_tag :dmsf_file_revision_id, params[:dmsf_file_revision_id] %>
|
||||
<%= hidden_field_tag :dmsf_link_id, params[:dmsf_link_id] %>
|
||||
<%= hidden_field_tag :attachment_id, params[:attachment_id] %>
|
||||
@ -31,9 +33,10 @@
|
||||
'dmsf_workflow_id',
|
||||
dmsf_workflows_for_select(@project, nil))%>
|
||||
</p>
|
||||
<% if User.current.allowed_to?(:manage_workflows, @project) %>
|
||||
<% if (!remote) && User.current.allowed_to?(:manage_workflows, @project) %>
|
||||
<p>
|
||||
<%= link_to l(:label_dmsf_workflow_new), new_dmsf_workflow_path(:project_id => @project.id), :class => 'icon icon-add' %>
|
||||
<%= link_to l(:label_dmsf_workflow_new), new_dmsf_workflow_path(:project_id => @project.id),
|
||||
:class => 'icon icon-add' %>
|
||||
</p>
|
||||
<% end %>
|
||||
<p class="buttons">
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
<%
|
||||
# encoding: utf-8
|
||||
#
|
||||
# Redmine plugin for Document Management System "Features"
|
||||
#
|
||||
# Copyright (C) 2011-15 Karel Pičman <karel.picman@kontron.com>
|
||||
# Copyright (C) 2011-17 Karel Pičman <karel.picman@kontron.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user