Skip to content

Commit

Permalink
fix default value in form if already set for rehab event TTPLAT-1239
Browse files Browse the repository at this point in the history
  • Loading branch information
mathmerized committed Nov 12, 2019
1 parent ca8c985 commit 014def5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
= f.input :total_cost, :wrapper => :vertical_prepend, label: 'Cost of Rebuild / Rehabilitation' do
%span.input-group-addon
%i.fa.fa-usd
= f.input_field :total_cost, :class => 'form-control', :required => true, :value => 0, :min => 0, :label => false
= f.input_field :total_cost, :class => 'form-control', :required => true, :value => (f.object.total_cost || 0), :min => 0, :label => false
%span.input-group-addon
%a.transam-popover{data: {placement: 'auto', toggle: 'popover', html: 'true', content: "This will increase the Cost (Adjusted) of the asset by the amount entered."}, title: 'Cost of Rebuild / Rehabilitation', tabindex: '0'}
%i.fa.fa-info-circle
Expand Down

0 comments on commit 014def5

Please sign in to comment.