34 lines
1.8 KiB
Plaintext
34 lines
1.8 KiB
Plaintext
<div class="fixed-budget-form">
|
|
<%= fixed_budget.hidden_field(:id) unless fixed_budget.object.new_record? %>
|
|
<%= fixed_budget.hidden_field(:year) %>
|
|
<%= fixed_budget.hidden_field(:month) %>
|
|
|
|
<p class="inline-hints"><%= fixed_budget.label(:title, l(:field_title))%>
|
|
<%= fixed_budget.text_field(:title) %>
|
|
</p>
|
|
|
|
<p class="inline-hints">
|
|
<%= fixed_budget.label(:budget, l(:field_budget))%> <%= l(:text_dollar_sign) %>
|
|
<%= fixed_budget.text_field(:budget, :value => format_deliverable_value_fields(fixed_budget.object.budget), :class => 'financial') %>
|
|
</p>
|
|
|
|
<p class="inline-hints">
|
|
<%= fixed_budget.label(:markup, l(:field_markup)) %> <%= l(:field_discount_hint) %>
|
|
<%= fixed_budget.text_field(:markup, :value => format_deliverable_value_fields_as_dollar_or_percent(fixed_budget.object.markup), :class => 'financial') %>
|
|
</p>
|
|
|
|
<p class="inline-hints">
|
|
<%= fixed_budget.label(:paid, l(:field_paid)) %>
|
|
<%= fixed_budget.check_box(:paid) %>
|
|
</p>
|
|
|
|
<p class="inline-hints" style="display:none;"><%= fixed_budget.label(:description, l(:field_description), :for => "fixed-description#{fixed_budget.object.object_id}")%></p>
|
|
<%= fixed_budget.text_area(:description, :class => 'wiki-edit', :rows => '5', :id => "fixed-description#{fixed_budget.object.object_id}") %>
|
|
|
|
<p class="inline-hints add-fixed">
|
|
<%= fixed_budget.hidden_field "_destroy", :class=> "delete-flag" %>
|
|
<%= link_to_function(l(:button_delete), 'deleteDeliverableFinance(this)', :class => 'delete icon icon-del') %>
|
|
<%= link_to_function(l(:button_add), 'addNewDeliverableFixedItem()', :class => 'add icon icon-add', :style => 'display:none;') %>
|
|
</p>
|
|
</div>
|