##// END OF EJS Templates
Removed RedCloth checks since it's now supplied with the application....
Jean-Philippe Lang -
r697:22ad806a439e
parent child
Show More
@@ -1,72 +1,71
1 1 # redMine - project management software
2 2 # Copyright (C) 2006 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 class AdminController < ApplicationController
19 19 layout 'base'
20 20 before_filter :require_admin
21 21
22 22 helper :sort
23 23 include SortHelper
24 24
25 25 def index
26 26 end
27 27
28 28 def projects
29 29 sort_init 'name', 'asc'
30 30 sort_update
31 31
32 32 @status = params[:status] ? params[:status].to_i : 0
33 33 conditions = nil
34 34 conditions = ["status=?", @status] unless @status == 0
35 35
36 36 @project_count = Project.count(:conditions => conditions)
37 37 @project_pages = Paginator.new self, @project_count,
38 38 25,
39 39 params['page']
40 40 @projects = Project.find :all, :order => sort_clause,
41 41 :conditions => conditions,
42 42 :limit => @project_pages.items_per_page,
43 43 :offset => @project_pages.current.offset
44 44
45 45 render :action => "projects", :layout => false if request.xhr?
46 46 end
47 47
48 48 def mail_options
49 49 end
50 50
51 51 def test_email
52 52 raise_delivery_errors = ActionMailer::Base.raise_delivery_errors
53 53 # Force ActionMailer to raise delivery errors so we can catch it
54 54 ActionMailer::Base.raise_delivery_errors = true
55 55 begin
56 56 @test = Mailer.deliver_test(User.current)
57 57 flash[:notice] = l(:notice_email_sent, User.current.mail)
58 58 rescue Exception => e
59 59 flash[:error] = l(:notice_email_error, e.message)
60 60 end
61 61 ActionMailer::Base.raise_delivery_errors = raise_delivery_errors
62 62 redirect_to :action => 'mail_options'
63 63 end
64 64
65 65 def info
66 66 @db_adapter_name = ActiveRecord::Base.connection.adapter_name
67 67 @flags = Hash.new
68 68 @flags[:default_admin_changed] = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?
69 69 @flags[:file_repository_writable] = File.writable?(Attachment.storage_path)
70 @flags[:textile_available] = ActionView::Helpers::TextHelper.method_defined? "textilize"
71 70 end
72 71 end
@@ -1,34 +1,33
1 1 # redMine - project management software
2 2 # Copyright (C) 2006-2007 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 class SettingsController < ApplicationController
19 19 layout 'base'
20 20 before_filter :require_admin
21 21
22 22 def index
23 23 edit
24 24 render :action => 'edit'
25 25 end
26 26
27 27 def edit
28 28 if request.post? and params[:settings] and params[:settings].is_a? Hash
29 29 params[:settings].each { |name, value| Setting[name] = value }
30 30 redirect_to :action => 'edit' and return
31 31 end
32 @textile_available = ActionView::Helpers::TextHelper.method_defined?("textilize")
33 32 end
34 33 end
@@ -1,292 +1,292
1 1 # redMine - project management software
2 2 # Copyright (C) 2006-2007 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 module ApplicationHelper
19 19
20 20 def current_role
21 21 @current_role ||= User.current.role_for_project(@project)
22 22 end
23 23
24 24 # Return true if user is authorized for controller/action, otherwise false
25 25 def authorize_for(controller, action)
26 26 User.current.allowed_to?({:controller => controller, :action => action}, @project)
27 27 end
28 28
29 29 # Display a link if user is authorized
30 30 def link_to_if_authorized(name, options = {}, html_options = nil, *parameters_for_method_reference)
31 31 link_to(name, options, html_options, *parameters_for_method_reference) if authorize_for(options[:controller] || params[:controller], options[:action])
32 32 end
33 33
34 34 # Display a link to user's account page
35 35 def link_to_user(user)
36 36 link_to user.name, :controller => 'account', :action => 'show', :id => user
37 37 end
38 38
39 39 def link_to_issue(issue)
40 40 link_to "#{issue.tracker.name} ##{issue.id}", :controller => "issues", :action => "show", :id => issue
41 41 end
42 42
43 43 def toggle_link(name, id, options={})
44 44 onclick = "Element.toggle('#{id}'); "
45 45 onclick << (options[:focus] ? "Form.Element.focus('#{options[:focus]}'); " : "this.blur(); ")
46 46 onclick << "return false;"
47 47 link_to(name, "#", :onclick => onclick)
48 48 end
49 49
50 50 def image_to_function(name, function, html_options = {})
51 51 html_options.symbolize_keys!
52 52 tag(:input, html_options.merge({
53 53 :type => "image", :src => image_path(name),
54 54 :onclick => (html_options[:onclick] ? "#{html_options[:onclick]}; " : "") + "#{function};"
55 55 }))
56 56 end
57 57
58 58 def prompt_to_remote(name, text, param, url, html_options = {})
59 59 html_options[:onclick] = "promptToRemote('#{text}', '#{param}', '#{url_for(url)}'); return false;"
60 60 link_to name, {}, html_options
61 61 end
62 62
63 63 def format_date(date)
64 64 return nil unless date
65 65 @date_format_setting ||= Setting.date_format.to_i
66 66 @date_format_setting == 0 ? l_date(date) : date.strftime("%Y-%m-%d")
67 67 end
68 68
69 69 def format_time(time)
70 70 return nil unless time
71 71 @date_format_setting ||= Setting.date_format.to_i
72 72 time = time.to_time if time.is_a?(String)
73 73 @date_format_setting == 0 ? l_datetime(time) : (time.strftime("%Y-%m-%d") + ' ' + l_time(time))
74 74 end
75 75
76 76 def day_name(day)
77 77 l(:general_day_names).split(',')[day-1]
78 78 end
79 79
80 80 def month_name(month)
81 81 l(:actionview_datehelper_select_month_names).split(',')[month-1]
82 82 end
83 83
84 84 def pagination_links_full(paginator, options={}, html_options={})
85 85 page_param = options.delete(:page_param) || :page
86 86
87 87 html = ''
88 88 html << link_to_remote(('&#171; ' + l(:label_previous)),
89 89 {:update => "content", :url => options.merge(page_param => paginator.current.previous)},
90 90 {:href => url_for(:params => options.merge(page_param => paginator.current.previous))}) + ' ' if paginator.current.previous
91 91
92 92 html << (pagination_links_each(paginator, options) do |n|
93 93 link_to_remote(n.to_s,
94 94 {:url => {:params => options.merge(page_param => n)}, :update => 'content'},
95 95 {:href => url_for(:params => options.merge(page_param => n))})
96 96 end || '')
97 97
98 98 html << ' ' + link_to_remote((l(:label_next) + ' &#187;'),
99 99 {:update => "content", :url => options.merge(page_param => paginator.current.next)},
100 100 {:href => url_for(:params => options.merge(page_param => paginator.current.next))}) if paginator.current.next
101 101 html
102 102 end
103 103
104 # textilize text according to system settings and RedCloth availability
104 # format text according to system settings
105 105 def textilizable(text, options = {})
106 106 return "" if text.blank?
107 107
108 108 # when using an image link, try to use an attachment, if possible
109 109 attachments = options[:attachments]
110 110 if attachments
111 111 text = text.gsub(/!([<>=]*)(\S+\.(gif|jpg|jpeg|png))!/) do |m|
112 112 align = $1
113 113 filename = $2
114 114 rf = Regexp.new(filename, Regexp::IGNORECASE)
115 115 # search for the picture in attachments
116 116 if found = attachments.detect { |att| att.filename =~ rf }
117 117 image_url = url_for :controller => 'attachments', :action => 'download', :id => found.id
118 118 "!#{align}#{image_url}!"
119 119 else
120 120 "!#{align}#{filename}!"
121 121 end
122 122 end
123 123 end
124 124
125 125 text = (Setting.text_formatting == 'textile') ?
126 126 Redmine::WikiFormatting.to_html(text) : simple_format(auto_link(h(text)))
127 127
128 128 # different methods for formatting wiki links
129 129 case options[:wiki_links]
130 130 when :local
131 131 # used for local links to html files
132 132 format_wiki_link = Proc.new {|project, title| "#{title}.html" }
133 133 when :anchor
134 134 # used for single-file wiki export
135 135 format_wiki_link = Proc.new {|project, title| "##{title}" }
136 136 else
137 137 format_wiki_link = Proc.new {|project, title| url_for :controller => 'wiki', :action => 'index', :id => project, :page => title }
138 138 end
139 139
140 140 project = options[:project] || @project
141 141
142 142 # turn wiki links into html links
143 143 # example:
144 144 # [[mypage]]
145 145 # [[mypage|mytext]]
146 146 # wiki links can refer other project wikis, using project name or identifier:
147 147 # [[project:]] -> wiki starting page
148 148 # [[project:|mytext]]
149 149 # [[project:mypage]]
150 150 # [[project:mypage|mytext]]
151 151 text = text.gsub(/\[\[([^\]\|]+)(\|([^\]\|]+))?\]\]/) do |m|
152 152 link_project = project
153 153 page = $1
154 154 title = $3
155 155 if page =~ /^([^\:]+)\:(.*)$/
156 156 link_project = Project.find_by_name($1) || Project.find_by_identifier($1)
157 157 page = title || $2
158 158 title = $1 if page.blank?
159 159 end
160 160 link_to((title || page), format_wiki_link.call(link_project, Wiki.titleize(page)), :class => 'wiki-page')
161 161 end
162 162
163 163 # turn issue and revision ids into links
164 164 # example:
165 165 # #52 -> <a href="/issues/show/52">#52</a>
166 166 # r52 -> <a href="/repositories/revision/6?rev=52">r52</a> (project.id is 6)
167 167 text = text.gsub(%r{([\s,-^])(#|r)(\d+)(?=[[:punct:]]|\s|<|$)}) do |m|
168 168 leading, otype, oid = $1, $2, $3
169 169 link = nil
170 170 if otype == 'r'
171 171 link = link_to("r#{oid}", {:controller => 'repositories', :action => 'revision', :id => project.id, :rev => oid}, :class => 'changeset') if project
172 172 else
173 173 link = link_to("##{oid}", {:controller => 'issues', :action => 'show', :id => oid}, :class => 'issue')
174 174 end
175 175 leading + (link || "#{otype}#{oid}")
176 176 end
177 177
178 178 text
179 179 end
180 180
181 181 # Same as Rails' simple_format helper without using paragraphs
182 182 def simple_format_without_paragraph(text)
183 183 text.to_s.
184 184 gsub(/\r\n?/, "\n"). # \r\n and \r -> \n
185 185 gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br
186 186 gsub(/([^\n]\n)(?=[^\n])/, '\1<br />') # 1 newline -> br
187 187 end
188 188
189 189 def error_messages_for(object_name, options = {})
190 190 options = options.symbolize_keys
191 191 object = instance_variable_get("@#{object_name}")
192 192 if object && !object.errors.empty?
193 193 # build full_messages here with controller current language
194 194 full_messages = []
195 195 object.errors.each do |attr, msg|
196 196 next if msg.nil?
197 197 msg = msg.first if msg.is_a? Array
198 198 if attr == "base"
199 199 full_messages << l(msg)
200 200 else
201 201 full_messages << "&#171; " + (l_has_string?("field_" + attr) ? l("field_" + attr) : object.class.human_attribute_name(attr)) + " &#187; " + l(msg) unless attr == "custom_values"
202 202 end
203 203 end
204 204 # retrieve custom values error messages
205 205 if object.errors[:custom_values]
206 206 object.custom_values.each do |v|
207 207 v.errors.each do |attr, msg|
208 208 next if msg.nil?
209 209 msg = msg.first if msg.is_a? Array
210 210 full_messages << "&#171; " + v.custom_field.name + " &#187; " + l(msg)
211 211 end
212 212 end
213 213 end
214 214 content_tag("div",
215 215 content_tag(
216 216 options[:header_tag] || "span", lwr(:gui_validation_error, full_messages.length) + ":"
217 217 ) +
218 218 content_tag("ul", full_messages.collect { |msg| content_tag("li", msg) }),
219 219 "id" => options[:id] || "errorExplanation", "class" => options[:class] || "errorExplanation"
220 220 )
221 221 else
222 222 ""
223 223 end
224 224 end
225 225
226 226 def lang_options_for_select(blank=true)
227 227 (blank ? [["(auto)", ""]] : []) +
228 228 GLoc.valid_languages.collect{|lang| [ ll(lang.to_s, :general_lang_name), lang.to_s]}.sort{|x,y| x.first <=> y.first }
229 229 end
230 230
231 231 def label_tag_for(name, option_tags = nil, options = {})
232 232 label_text = l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "")
233 233 content_tag("label", label_text)
234 234 end
235 235
236 236 def labelled_tabular_form_for(name, object, options, &proc)
237 237 options[:html] ||= {}
238 238 options[:html].store :class, "tabular"
239 239 form_for(name, object, options.merge({ :builder => TabularFormBuilder, :lang => current_language}), &proc)
240 240 end
241 241
242 242 def check_all_links(form_name)
243 243 link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
244 244 " | " +
245 245 link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
246 246 end
247 247
248 248 def calendar_for(field_id)
249 249 image_tag("calendar.png", {:id => "#{field_id}_trigger",:class => "calendar-trigger"}) +
250 250 javascript_tag("Calendar.setup({inputField : '#{field_id}', ifFormat : '%Y-%m-%d', button : '#{field_id}_trigger' });")
251 251 end
252 252
253 253 def wikitoolbar_for(field_id)
254 254 return '' unless Setting.text_formatting == 'textile'
255 255 javascript_include_tag('jstoolbar') + javascript_tag("var toolbar = new jsToolBar($('#{field_id}')); toolbar.draw();")
256 256 end
257 257 end
258 258
259 259 class TabularFormBuilder < ActionView::Helpers::FormBuilder
260 260 include GLoc
261 261
262 262 def initialize(object_name, object, template, options, proc)
263 263 set_language_if_valid options.delete(:lang)
264 264 @object_name, @object, @template, @options, @proc = object_name, object, template, options, proc
265 265 end
266 266
267 267 (field_helpers - %w(radio_button hidden_field) + %w(date_select)).each do |selector|
268 268 src = <<-END_SRC
269 269 def #{selector}(field, options = {})
270 270 return super if options.delete :no_label
271 271 label_text = l(options[:label]) if options[:label]
272 272 label_text ||= l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym)
273 273 label_text << @template.content_tag("span", " *", :class => "required") if options.delete(:required)
274 274 label = @template.content_tag("label", label_text,
275 275 :class => (@object && @object.errors[field] ? "error" : nil),
276 276 :for => (@object_name.to_s + "_" + field.to_s))
277 277 label + super
278 278 end
279 279 END_SRC
280 280 class_eval src, __FILE__, __LINE__
281 281 end
282 282
283 283 def select(field, choices, options = {}, html_options = {})
284 284 label_text = l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "")
285 285 label = @template.content_tag("label", label_text,
286 286 :class => (@object && @object.errors[field] ? "error" : nil),
287 287 :for => (@object_name.to_s + "_" + field.to_s))
288 288 label + super
289 289 end
290 290
291 291 end
292 292
@@ -1,9 +1,8
1 1 <h2><%=l(:label_information_plural)%></h2>
2 2
3 3 <p><%=l(:field_version)%>: <strong><%= Redmine::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</p>
4 4
5 5 <table class="list">
6 6 <tr class="odd"><td>File repository writable</td><td><%= image_tag (@flags[:file_repository_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
7 7 <tr class="even"><td>Default administrator account changed</td><td><%= image_tag (@flags[:default_admin_changed] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
8 <tr class="odd"><td>Textile available</td><td><%= image_tag (@flags[:textile_available] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
9 8 </table>
@@ -1,79 +1,79
1 1 <h2><%= l(:label_settings) %></h2>
2 2
3 3 <div id="settings">
4 4 <% form_tag({:action => 'edit'}, :class => "tabular") do %>
5 5 <div class="box">
6 6 <p><label><%= l(:setting_app_title) %></label>
7 7 <%= text_field_tag 'settings[app_title]', Setting.app_title, :size => 30 %></p>
8 8
9 9 <p><label><%= l(:setting_app_subtitle) %></label>
10 10 <%= text_field_tag 'settings[app_subtitle]', Setting.app_subtitle, :size => 60 %></p>
11 11
12 12 <p><label><%= l(:setting_welcome_text) %></label>
13 13 <%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p>
14 14 <%= wikitoolbar_for 'settings[welcome_text]' %>
15 15
16 16 <p><label><%= l(:setting_default_language) %></label>
17 17 <%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>
18 18
19 19 <p><label><%= l(:setting_date_format) %></label>
20 20 <%= select_tag 'settings[date_format]', options_for_select( [[l(:label_language_based), '0'], ['ISO 8601 (YYYY-MM-DD)', '1']], Setting.date_format) %></p>
21 21
22 22 <p><label><%= l(:setting_attachment_max_size) %></label>
23 23 <%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
24 24
25 25 <p><label><%= l(:setting_issues_export_limit) %></label>
26 26 <%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
27 27
28 28 <p><label><%= l(:setting_cross_project_issue_relations) %></label>
29 29 <%= check_box_tag 'settings[cross_project_issue_relations]', 1, Setting.cross_project_issue_relations? %><%= hidden_field_tag 'settings[cross_project_issue_relations]', 0 %></p>
30 30
31 31 <p><label><%= l(:setting_mail_from) %></label>
32 32 <%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
33 33
34 34 <p><label><%= l(:setting_host_name) %></label>
35 35 <%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %></p>
36 36
37 37 <p><label><%= l(:setting_text_formatting) %></label>
38 <%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), 0], ["textile", "textile"]], (@textile_available ? Setting.text_formatting : 0)), :disabled => !@textile_available %></p>
38 <%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), "0"], ["textile", "textile"]], Setting.text_formatting) %></p>
39 39
40 40 <p><label><%= l(:setting_wiki_compression) %></label>
41 41 <%= select_tag 'settings[wiki_compression]', options_for_select( [[l(:label_none), 0], ["gzip", "gzip"]], Setting.wiki_compression) %></p>
42 42
43 43 <p><label><%= l(:setting_feeds_limit) %></label>
44 44 <%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p>
45 45
46 46 <p><label><%= l(:setting_autofetch_changesets) %></label>
47 47 <%= check_box_tag 'settings[autofetch_changesets]', 1, Setting.autofetch_changesets? %><%= hidden_field_tag 'settings[autofetch_changesets]', 0 %></p>
48 48
49 49 <p><label><%= l(:setting_sys_api_enabled) %></label>
50 50 <%= check_box_tag 'settings[sys_api_enabled]', 1, Setting.sys_api_enabled? %><%= hidden_field_tag 'settings[sys_api_enabled]', 0 %></p>
51 51 </div>
52 52
53 53 <fieldset class="box"><legend><%= l(:label_authentication) %></legend>
54 54 <p><label><%= l(:setting_login_required) %></label>
55 55 <%= check_box_tag 'settings[login_required]', 1, Setting.login_required? %><%= hidden_field_tag 'settings[login_required]', 0 %></p>
56 56
57 57 <p><label><%= l(:setting_autologin) %></label>
58 58 <%= select_tag 'settings[autologin]', options_for_select( [[l(:label_disabled), "0"]] + [1, 7, 30, 365].collect{|days| [lwr(:actionview_datehelper_time_in_words_day, days), days.to_s]}, Setting.autologin) %></p>
59 59
60 60 <p><label><%= l(:setting_self_registration) %></label>
61 61 <%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
62 62
63 63 <p><label><%= l(:label_password_lost) %></label>
64 64 <%= check_box_tag 'settings[lost_password]', 1, Setting.lost_password? %><%= hidden_field_tag 'settings[lost_password]', 0 %></p>
65 65 </fieldset>
66 66
67 67 <fieldset class="box"><legend><%= l(:text_issues_ref_in_commit_messages) %></legend>
68 68 <p><label><%= l(:setting_commit_ref_keywords) %></label>
69 69 <%= text_field_tag 'settings[commit_ref_keywords]', Setting.commit_ref_keywords, :size => 30 %><br /><em><%= l(:text_comma_separated) %></em></p>
70 70
71 71 <p><label><%= l(:setting_commit_fix_keywords) %></label>
72 72 <%= text_field_tag 'settings[commit_fix_keywords]', Setting.commit_fix_keywords, :size => 30 %>
73 73 &nbsp;<%= l(:label_applied_status) %>: <%= select_tag 'settings[commit_fix_status_id]', options_for_select( [["", 0]] + IssueStatus.find(:all).collect{|status| [status.name, status.id.to_s]}, Setting.commit_fix_status_id) %>
74 74 <br /><em><%= l(:text_comma_separated) %></em></p>
75 75 </fieldset>
76 76
77 77 <%= submit_tag l(:button_save) %>
78 78 </div>
79 79 <% end %> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now