mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Add some new contact fields to registrar
This commit is contained in:
parent
0c16146ebb
commit
65d849cc36
10 changed files with 81 additions and 24 deletions
|
@ -1,6 +1,6 @@
|
|||
= form_for([:admin, @registrar]) do |f|
|
||||
- if @registrar.errors.any?
|
||||
- @registrar.errors.each do |attr, err|
|
||||
- @registrar.errors.full_messages.each do |err|
|
||||
= err
|
||||
%br
|
||||
- if @registrar.errors.any?
|
||||
|
@ -14,9 +14,16 @@
|
|||
.form-group
|
||||
= f.label :reg_no
|
||||
= f.text_field(:reg_no, class: 'form-control')
|
||||
/ EIS does not want VAT
|
||||
/ .form-group
|
||||
/ = f.label :vat_no
|
||||
/ = f.text_field(:vat_no, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :vat_no
|
||||
= f.text_field(:vat_no, class: 'form-control')
|
||||
= f.label :email
|
||||
= f.text_field(:email, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :phone
|
||||
= f.text_field(:phone, class: 'form-control')
|
||||
|
||||
.col-md-6.text-left
|
||||
.form-group
|
||||
|
@ -25,9 +32,14 @@
|
|||
.form-group
|
||||
= f.label :address
|
||||
= f.text_field(:address, class: 'form-control')
|
||||
%p.help-block= t('address_help')
|
||||
.form-group
|
||||
= f.label :billing_address
|
||||
= f.text_field(:billing_address, class: 'form-control')
|
||||
%p.help-block= t('address_help')
|
||||
.form-group
|
||||
= f.label :billing_email
|
||||
= f.text_field(:billing_email, class: 'form-control')
|
||||
%hr
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
.col-md-6
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h3.panel-title= t('address')
|
||||
%h3.panel-title= t('contact')
|
||||
.panel-body
|
||||
%dl.dl-horizontal
|
||||
%dt= t('country')
|
||||
|
@ -42,9 +42,18 @@
|
|||
%dt= t('address')
|
||||
%dd= @registrar.address
|
||||
|
||||
%dt= t('contact_phone')
|
||||
%dd= @registrar.phone
|
||||
|
||||
%dt= t('contact_email')
|
||||
%dd= @registrar.email
|
||||
|
||||
%dt= t('billing_address')
|
||||
%dd= @registrar.billing_address
|
||||
|
||||
%dt= t('billing_email')
|
||||
%dd= @registrar.billing_email
|
||||
|
||||
.row
|
||||
.col-md-12
|
||||
#epp-users.panel.panel-default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue