[#2281] Created a rough settings form for mapping the billable custom value.
This commit is contained in:
1 parent
246f5a4826
commit
83da03a9e0
3 files changed
+33
No files matched your search
@@ -0,0 +1,22 @@
|
|||||||
|
<% activity_fields = TimeEntryActivityCustomField.find :all %>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<label><%= l(:overhead_field_billing_status) %></label>
|
||||||
|
<%= select_tag('setting[custom_field]',
|
||||||
|
'<option value="">(Select one)</option>' +
|
||||||
|
options_from_collection_for_select(activity_fields, :id, :name, @settings['custom_field'].to_i)) %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<label><%= l(:overhead_field_billable_value) %></label>
|
||||||
|
TODO
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<label><%= l(:overhead_field_overhead_value) %></label>
|
||||||
|
TODO
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
en:
|
||||||
|
overhead_field_billing_status: Billing Status
|
||||||
|
overhead_field_billable_value: Billable Value
|
||||||
|
overhead_field_overhead_value: Overhead Value
|
||||||
@@ -10,4 +10,11 @@ Redmine::Plugin.register :redmine_overhead do
|
|||||||
|
|
||||||
requires_redmine :version_or_higher => '0.8.0'
|
requires_redmine :version_or_higher => '0.8.0'
|
||||||
|
|
||||||
|
|
||||||
|
settings :default => {
|
||||||
|
'custom_field' => nil,
|
||||||
|
'billable_value' => nil,
|
||||||
|
'overhead_value' => nil
|
||||||
|
}, :partial => 'settings/overhead_settings'
|
||||||
|
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user