adds radio to mark feasibility as undefined (nil)

This commit is contained in:
Juanjo Bazán
2016-03-09 12:37:22 +01:00
parent 65b01ae344
commit 32c155999e
5 changed files with 33 additions and 3 deletions

View File

@@ -7,14 +7,21 @@
<div class="small-12 medium-8 column">
<fieldset class="fieldset">
<legend><%= t('valuation.spending_proposals.edit.feasibility') %></legend>
<div class="small-6 column">
<div class="small-4 column">
<span class="checkbox">
<%= f.radio_button :feasible, :nil, label: false, checked: @spending_proposal.feasible.nil? %>
<%= f.label :feasible_nil, t('valuation.spending_proposals.edit.undefined_feasible') %>
</span>
</div>
<div class="small-4 column">
<span class="checkbox">
<%= f.radio_button :feasible, true, value: true, label: false %>
<%= f.label :feasible_true, t('valuation.spending_proposals.edit.feasible') %>
</span>
</div>
<div class="small-6 column">
<div class="small-4 column">
<span class="checkbox">
<%= f.radio_button :feasible, false, value: false, label: false %>
<%= f.label :feasible_false, t('valuation.spending_proposals.edit.not_feasible') %>