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,
:accounting_customer_code,
:billing_email,
:legaldoc_optout,
:legaldoc_optout_comment,
:iban,
:language)
end

View file

@ -100,6 +100,15 @@
<%= f.check_box :legaldoc_optout, class: 'form-control' %>
</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>

View file

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

View file

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

File diff suppressed because it is too large Load diff