mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 12:47:29 +02:00
Add opt-out commentary field to registrar
This commit is contained in:
parent
39030fc0df
commit
3d734ff746
5 changed files with 25 additions and 1356 deletions
|
@ -74,6 +74,8 @@ module Admin
|
|||
:vat_rate,
|
||||
:accounting_customer_code,
|
||||
:billing_email,
|
||||
:legaldoc_optout,
|
||||
:legaldoc_optout_comment,
|
||||
:iban,
|
||||
:language)
|
||||
end
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
1368
db/structure.sql
1368
db/structure.sql
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue