##// END OF EJS Templates
Filling locales....
Filling locales. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10143 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r9859:51d5a5202942
r9960:3f88fd44ef61
Show More
workflows_helper.rb
32 lines | 1.3 KiB | text/x-ruby | RubyLexer
/ app / helpers / workflows_helper.rb
Jean-Philippe Lang
Added encoding comment to helpers (#9792)....
r8090 # encoding: utf-8
#
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 # Redmine - project management software
Jean-Philippe Lang
Copyright update....
r9453 # Copyright (C) 2006-2012 Jean-Philippe Lang
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 #
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
Toshi MARUYAMA
remove trailing white-spaces from app/helpers/workflows_helper.rb....
r6820 #
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
Toshi MARUYAMA
remove trailing white-spaces from app/helpers/workflows_helper.rb....
r6820 #
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 # 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.
module WorkflowsHelper
Jean-Philippe Lang
Don't show "Required" option for standard/custom fields that are always required....
r9827 def field_required?(field)
Jean-Philippe Lang
Do not let is_private be required....
r9859 field.is_a?(CustomField) ? field.is_required? : %w(project_id tracker_id subject priority_id is_private).include?(field)
Jean-Philippe Lang
Don't show "Required" option for standard/custom fields that are always required....
r9827 end
Jean-Philippe Lang
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
r9794 def field_permission_tag(permissions, status, field)
name = field.is_a?(CustomField) ? field.id.to_s : field
Jean-Philippe Lang
Don't show "Required" option for standard/custom fields that are always required....
r9827 options = [["", ""], [l(:label_readonly), "readonly"]]
options << [l(:label_required), "required"] unless field_required?(field)
Jean-Philippe Lang
No blank option for custom fields marked as required on workflow settings....
r9818
select_tag("permissions[#{name}][#{status.id}]", options_for_select(options, permissions[status.id][name]))
Jean-Philippe Lang
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
r9794 end
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 end