Instead of using a hard coded value for Payment Terms, they will use Redmine's Enumeration table. This provides an admin gui to managing the value as well as ordering them.
42 lines
1.8 KiB
ERB
42 lines
1.8 KiB
ERB
<div class="box tabular">
|
|
<% form.inputs :name => l(:text_general_legend) do %>
|
|
<%= form.input :name, :required => true %>
|
|
<%= form.input :account_executive, :required => true, :collection => @project.users.sort %>
|
|
<li class="boolean optional">
|
|
<%= label('contract', 'executed') %>
|
|
<%= check_box 'contract', 'executed' %>
|
|
</li>
|
|
<%= form.input :start_date, :required => true, :as => :string, :input_html => {:size => 10}, :hint => calendar_for('contract_start_date') %>
|
|
<%= form.input :end_date, :required => true, :as => :string, :input_html => {:size => 10}, :hint => calendar_for('contract_end_date') %>
|
|
<%= form.input :details, :input_html => {:class => 'wiki-edit'} %>
|
|
<% end %>
|
|
|
|
<% form.inputs :name => l(:text_budget_legend) do %>
|
|
<%= form.input :billable_rate, :input_html => {:size => 20}, :hint => l(:field_billable_rate_hint) %>
|
|
<%= form.input :discount, :input_html => {:size => 20}, :hint => l(:field_discount_hint) %>
|
|
<%= form.input :discount_note, :input_html => {:class => 'wiki-edit', :rows => '5'} %>
|
|
<% end %>
|
|
|
|
<% form.inputs :name => l(:text_account_legend) do %>
|
|
<%= form.input :payment_term %>
|
|
<%= form.input :po_number %>
|
|
<%= form.input :client_ap_contact_information, :input_html => {:class => 'wiki-edit', :rows => '5'} %>
|
|
<%= form.input :client_point_of_contact, :input_html => {:class => 'wiki-edit', :rows => '5'} %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<% form.buttons do %>
|
|
<ol>
|
|
<li class="commit">
|
|
<%= submit_tag(l(:text_save_contract)) %>
|
|
<%= link_to(l(:button_cancel), cancel_path) %>
|
|
</li>
|
|
</ol>
|
|
<% end %>
|
|
|
|
<%= wikitoolbar_for 'contract_discount_note' %>
|
|
<%= wikitoolbar_for 'contract_client_ap_contact_information' %>
|
|
<%= wikitoolbar_for 'contract_client_point_of_contact' %>
|
|
<%= wikitoolbar_for 'contract_details' %>
|
|
|