Add opt-out commentary field to registrar

This commit is contained in:
Alex Sherman 2020-06-30 19:16:33 +05:00
parent 39030fc0df
commit 3d734ff746
5 changed files with 25 additions and 1356 deletions

View file

@ -74,6 +74,8 @@ module Admin
:vat_rate, :vat_rate,
:accounting_customer_code, :accounting_customer_code,
:billing_email, :billing_email,
:legaldoc_optout,
:legaldoc_optout_comment,
:iban, :iban,
:language) :language)
end end

View file

@ -100,6 +100,15 @@
<%= f.check_box :legaldoc_optout, class: 'form-control' %> <%= f.check_box :legaldoc_optout, class: 'form-control' %>
</div> </div>
</div> </div>
<div class="form-group">
<div class="col-md-4 control-label">
<%= f.label t('.legaldoc_optout_comment') %>
</div>
<div class="col-md-7">
<%= f.text_area :legaldoc_optout_comment, class: 'form-control', rows: 3 %>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -50,6 +50,7 @@ en:
create_btn: Create registrar create_btn: Create registrar
update_btn: Update registrar update_btn: Update registrar
legaldoc_optout: Opt-out from legal document requirement legaldoc_optout: Opt-out from legal document requirement
legaldoc_optout_comment: Commentary on opt-out
address: address:
header: Address header: Address

View file

@ -1,5 +1,6 @@
class AddLegalDocOptoutToRegistrar < ActiveRecord::Migration[6.0] class AddLegalDocOptoutToRegistrar < ActiveRecord::Migration[6.0]
def change def change
add_column :registrars, :legaldoc_optout, :boolean, null: false, default: false add_column :registrars, :legaldoc_optout, :boolean, null: false, default: false
add_column :registrars, :legaldoc_optout_comment, :text
end end
end end

File diff suppressed because it is too large Load diff