Added settings for the system. #1139
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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]}
|
||||
|
||||
Reference in New Issue
Block a user