[#4181] Added warranty and feature signoff fields.
This commit is contained in:
@@ -6,6 +6,17 @@
|
||||
<%= form.input :end_date, :as => :string, :input_html => {:size => 10}, :hint => calendar_for('deliverable_end_date') %>
|
||||
<%= form.input :notes, :input_html => {:class => 'wiki-edit', :rows => '5'} %>
|
||||
|
||||
<% unless resource.new_record? %>
|
||||
<li class="boolean optional">
|
||||
<%= label('deliverable', 'feature_sign_off') %>
|
||||
<%= check_box 'deliverable', 'feature_sign_off' %>
|
||||
</li>
|
||||
<li class="boolean optional">
|
||||
<%= label('deliverable', 'warranty_sign_off') %>
|
||||
<%= check_box 'deliverable', 'warranty_sign_off' %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<%= form.input :total, :input_html => {:size => 10} %>
|
||||
<% end %>
|
||||
<% form.buttons do %>
|
||||
|
||||
@@ -27,3 +27,5 @@ en:
|
||||
field_overhead: Overhead
|
||||
field_fixed: Fixed
|
||||
field_total: Total
|
||||
field_feature_sign_off: Feature Sign Off
|
||||
field_warranty_sign_off: Warranty Sign Off
|
||||
|
||||
@@ -26,12 +26,16 @@ class DeliverablesEditTest < ActionController::IntegrationTest
|
||||
end
|
||||
|
||||
fill_in "Title", :with => 'An updated title'
|
||||
check "Feature Sign Off"
|
||||
check "Warranty Sign Off"
|
||||
click_button "Save"
|
||||
|
||||
assert_response :success
|
||||
assert_template 'contracts/show'
|
||||
|
||||
assert_equal "An updated title", @deliverable.reload.title
|
||||
assert @deliverable.reload.warranty_sign_off?
|
||||
assert @deliverable.reload.feature_sign_off?
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user