Added settings for the system. #1139

This commit is contained in:
Eric Davis
2008-05-20 17:03:15 -07:00
parent eb2c22bd69
commit ceee191244
2 changed files with 23 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<p>
Enter a dollar amount or percentage into each field to set your default amount. Use <strong>%</strong> in the field for percentages.
</p>
<p>
<label>Non billable overhead</label><%= text_field_tag 'settings[budget_non_billable_overhead]', @settings['budget_non_billable_overhead'], :size => 15 %>
</p>
<p>
<label>Materials</label><%= text_field_tag 'settings[budget_materials]', @settings['budget_materials'], :size => 15 %>
</p>
<p>
<label>Profit</label><%= text_field_tag 'settings[budget_profit]', @settings['budget_profit'], :size => 15 %>
</p>
+7
View File
@@ -8,6 +8,13 @@ Redmine::Plugin.register :budget_plugin do
description 'This is a budget plugin to track deliverables and budgets on a project'
version '0.0.0'
settings:default => {
'budget_nonbillable_overhead' => '',
'budget_materials' => '',
'budget_profit' => ''
}, :partial => 'settings/settings'
project_module :budget_module do
permission :view_budget, { :deliverables => [:index]}
permission :manage_budget, { :deliverables => [:new, :edit, :create, :update, :destroy]}