mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Merge branch 'master' of github.com:domify/registry
Conflicts: app/assets/stylesheets/shared/general.sass
This commit is contained in:
commit
dbbc6b3bff
58 changed files with 552 additions and 322 deletions
|
@ -1,35 +1,43 @@
|
|||
= form_for([:admin, @admin_user]) do |f|
|
||||
- if @admin_user.errors.any?
|
||||
- @admin_user.errors.each do |attr, err|
|
||||
= err
|
||||
%br
|
||||
- if @admin_user.errors.any?
|
||||
%hr
|
||||
= form_for([:admin, @admin_user], html: { class: 'form-horizontal' }) do |f|
|
||||
= render 'shared/full_errors', object: @admin_user
|
||||
|
||||
.row
|
||||
.col-md-6
|
||||
.col-md-8
|
||||
.form-group
|
||||
= f.label :username
|
||||
= f.text_field(:username, class: 'form-control')
|
||||
.col-md-4.control-label
|
||||
= f.label :username
|
||||
.col-md-8
|
||||
= f.text_field(:username, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :password
|
||||
= f.text_field(:password, class: 'form-control')
|
||||
.col-md-4.control-label
|
||||
= f.label :password
|
||||
.col-md-8
|
||||
= f.text_field(:password, class: 'form-control')
|
||||
%hr
|
||||
.form-group
|
||||
= f.label :country_code
|
||||
= f.text_field :country_code, class: 'form-control'
|
||||
.col-md-4.control-label
|
||||
= f.label :identity_code
|
||||
.col-md-8
|
||||
= f.text_field(:identity_code, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :identity_code
|
||||
= f.text_field(:identity_code, class: 'form-control')
|
||||
|
||||
.col-md-6
|
||||
.col-md-4.control-label
|
||||
= f.label :email
|
||||
.col-md-8
|
||||
= f.text_field(:email, class: 'form-control', email: true)
|
||||
.form-group
|
||||
= f.label :email
|
||||
= f.text_field(:email, class: 'form-control')
|
||||
.col-md-4.control-label
|
||||
= f.label :country_code, t(:country)
|
||||
.col-md-8
|
||||
= f.select(:country_code,
|
||||
SortedCountry.all_options(f.object.country_code), {}, class: 'form-control')
|
||||
%hr
|
||||
.form-group
|
||||
= f.label :role
|
||||
= select_tag 'admin_user[roles][]', options_for_select(AdminUser::ROLES.map {|x| [t(x), x] }, @admin_user.roles.try(:first)), class: 'form-control selectize'
|
||||
.col-md-4.control-label
|
||||
= f.label :role
|
||||
.col-md-8
|
||||
= select_tag 'admin_user[roles][]', options_for_select(AdminUser::ROLES.map {|x| [t(x), x] }, @admin_user.roles.try(:first)), class: 'form-control selectize'
|
||||
|
||||
%hr
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= button_tag(t('save'), class: 'btn btn-primary')
|
||||
.col-md-8.text-right
|
||||
= button_tag(t(:save), class: 'btn btn-primary')
|
||||
|
|
|
@ -1,38 +1,42 @@
|
|||
= form_for([:admin, @api_user], multipart: true) do |f|
|
||||
- if @api_user.errors.any?
|
||||
- @api_user.errors.each do |attr, err|
|
||||
= err
|
||||
%br
|
||||
- if @api_user.errors.any?
|
||||
%hr
|
||||
= form_for([:admin, @api_user], multipart: true, html: {class: 'form-horizontal'}) do |f|
|
||||
= render 'shared/full_errors', object: @api_user
|
||||
|
||||
.row
|
||||
.col-md-12
|
||||
.col-md-8
|
||||
.form-group
|
||||
= f.label :username
|
||||
= f.text_field(:username, class: 'form-control')
|
||||
.col-md-4.control-label
|
||||
= f.label :username
|
||||
.col-md-7
|
||||
= f.text_field(:username, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :password
|
||||
= f.text_field(:password, class: 'form-control')
|
||||
.col-md-4.control-label
|
||||
= f.label :password
|
||||
.col-md-7
|
||||
= f.text_field(:password, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :identity_code
|
||||
= f.text_field(:identity_code, class: 'form-control')
|
||||
.col-md-4.control-label
|
||||
= f.label :identity_code
|
||||
.col-md-7
|
||||
= f.text_field(:identity_code, class: 'form-control')
|
||||
.form-group
|
||||
.form-group.has-feedback.js-typeahead-container
|
||||
= f.label :registrar_typeahead, t('registrar')
|
||||
= f.text_field(:registrar_typeahead, class: 'form-control js-registrar-typeahead', placeholder: t('registrar'), autocomplete: 'off')
|
||||
%span.glyphicon.glyphicon-ok.form-control-feedback.js-typeahead-ok.hidden
|
||||
%span.glyphicon.glyphicon-remove.form-control-feedback.js-typeahead-remove
|
||||
= f.hidden_field(:registrar_id, class: 'js-registrar-id')
|
||||
.form-group
|
||||
.checkbox
|
||||
%label{for: 'api_user_active'}
|
||||
= f.check_box(:active)
|
||||
= t('active')
|
||||
.col-md-4.control-label
|
||||
= f.label :registrar_typeahead, t(:registrar), class: 'required'
|
||||
.col-md-7
|
||||
= f.text_field(:registrar_typeahead,
|
||||
class: 'form-control js-registrar-typeahead typeahead required',
|
||||
placeholder: t(:registrar), autocomplete: 'off')
|
||||
%span.glyphicon.glyphicon-ok.form-control-feedback.js-typeahead-ok.hidden
|
||||
%span.glyphicon.glyphicon-remove.form-control-feedback.js-typeahead-remove
|
||||
= f.hidden_field(:registrar_id, class: 'js-registrar-id')
|
||||
.checkbox
|
||||
%label{for: 'api_user_active'}
|
||||
= f.check_box(:active)
|
||||
= t(:active)
|
||||
%hr
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= button_tag(t('save'), class: 'btn btn-primary')
|
||||
.col-md-8.text-right
|
||||
= button_tag(t(:save), class: 'btn btn-primary')
|
||||
|
||||
:coffee
|
||||
Autocomplete.bindAdminRegistrarSearch();
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
= render 'shared/full_errors', object: @bank_statement
|
||||
|
||||
.row
|
||||
.col-md-12.text-left
|
||||
.col-md-8
|
||||
.form-group
|
||||
= f.label :th6_file
|
||||
= f.file_field :th6_file
|
||||
.col-md-4.control-label
|
||||
= f.label :th6_file
|
||||
.col-md-8
|
||||
= f.file_field :th6_file
|
||||
%hr
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
.col-md-8.text-right
|
||||
= button_tag(t(:save), class: 'btn btn-primary')
|
||||
|
|
|
@ -1,20 +1,17 @@
|
|||
= render 'shared/title', name: t(:upload_csr)
|
||||
|
||||
= form_for([:admin, @api_user, @certificate], multipart: true) do |f|
|
||||
- if @certificate.errors.any?
|
||||
- @certificate.errors.each do |attr, err|
|
||||
= err
|
||||
%br
|
||||
- if @certificate.errors.any?
|
||||
%hr
|
||||
= render 'shared/full_errors', object: f.object
|
||||
|
||||
.row
|
||||
.col-md-12.text-left
|
||||
.col-md-8
|
||||
.form-group
|
||||
= f.label :csr, t(:certificate_signing_req)
|
||||
= f.file_field :csr
|
||||
.col-md-4.control-label= f.label :username
|
||||
= f.label :csr, t(:certificate_signing_req)
|
||||
.col-md-8
|
||||
= f.file_field :csr
|
||||
%hr
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
.col-md-8.text-right
|
||||
= button_tag(t(:save), class: 'btn btn-primary')
|
||||
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
= form_for([:admin, @registrar]) do |f|
|
||||
- if @registrar.errors.any?
|
||||
- @registrar.errors.full_messages.each do |err|
|
||||
= err
|
||||
%br
|
||||
- if @registrar.errors.any?
|
||||
%hr
|
||||
= form_for([:admin, @registrar], html: {class: 'form-horizontal'}) do |f|
|
||||
= render 'shared/full_errors', object: @registrar
|
||||
|
||||
.row
|
||||
.col-md-8
|
||||
|
@ -13,48 +8,68 @@
|
|||
.pull-left= t(:general)
|
||||
.panel-body
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
.col-md-4.control-label
|
||||
= f.label :name
|
||||
.col-md-7
|
||||
= f.text_field(:name, class: 'form-control')
|
||||
.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 :email
|
||||
= f.text_field(:email, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :phone
|
||||
= f.text_field(:phone, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :billing_email
|
||||
= f.text_field(:billing_email, class: 'form-control')
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :reg_no
|
||||
.col-md-7
|
||||
= f.text_field(:reg_no, class: 'form-control')
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :vat_no
|
||||
.col-md-7
|
||||
= f.text_field(:vat_no, class: 'form-control')
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :phone
|
||||
.col-md-7
|
||||
= f.text_field(:phone, class: 'form-control')
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :email
|
||||
.col-md-7
|
||||
= f.text_field(:email, class: 'form-control', email: true)
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :billing_email
|
||||
.col-md-7
|
||||
= f.text_field(:billing_email, class: 'form-control', email: true)
|
||||
|
||||
.row
|
||||
.col-md-8
|
||||
.form-group
|
||||
= f.label :street
|
||||
= f.text_field(:street, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :city
|
||||
= f.text_field(:city, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :state
|
||||
= f.text_field(:state, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :zip
|
||||
= f.text_field(:zip, class: 'form-control')
|
||||
.form-group
|
||||
= f.label :country_code
|
||||
= f.text_field :country_code, class: 'form-control'
|
||||
/ EIS does not want Billing Address
|
||||
/ .form-group
|
||||
/ = f.label :billing_address
|
||||
/ = f.text_field(:billing_address, class: 'form-control')
|
||||
/ %p.help-block= t('address_help')
|
||||
.panel.panel-default
|
||||
.panel-heading.clearfix
|
||||
.pull-left= t(:address)
|
||||
.panel-body
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :street
|
||||
.col-md-7
|
||||
= f.text_field(:street, class: 'form-control')
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :city
|
||||
.col-md-7
|
||||
= f.text_field(:city, class: 'form-control')
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :state
|
||||
.col-md-7
|
||||
= f.text_field(:state, class: 'form-control')
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :zip
|
||||
.col-md-7
|
||||
= f.text_field(:zip, class: 'form-control')
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= f.label :country_code, t(:country)
|
||||
.col-md-7
|
||||
= f.select(:country_code,
|
||||
SortedCountry.all_options(f.object.country_code), {}, class: 'form-control')
|
||||
%hr
|
||||
.row
|
||||
.col-md-8.text-right
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
= form_tag [:admin, :settings] do
|
||||
.row
|
||||
.col-md-12
|
||||
.col-md-8
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-bordered.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-9'}
|
||||
%th{class: 'col-xs-4'}
|
||||
= t(:setting)
|
||||
%th{class: 'col-xs-2'}
|
||||
= t(:value)
|
||||
|
@ -21,6 +21,7 @@
|
|||
= check_box_tag("[settings][#{x.var}]", true, x.value)
|
||||
- else
|
||||
%td= text_field_tag("[settings][#{x.var}]", x.value)
|
||||
%hr
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
.col-md-8.text-right
|
||||
%button.btn.btn-primary=t(:save)
|
||||
|
|
|
@ -2,49 +2,52 @@
|
|||
|
||||
= form_for [:admin, @zonefile_setting], html: { class: 'form-horizontal' } do |f|
|
||||
.row
|
||||
.col-md-12
|
||||
.col-md-8
|
||||
#domain-statuses
|
||||
.errors
|
||||
- if f.object.errors.any?
|
||||
- f.object.errors.full_messages.each do |x|
|
||||
= x
|
||||
%br
|
||||
- if f.object.errors.any?
|
||||
%hr
|
||||
= render 'shared/full_errors', object: f.object
|
||||
|
||||
.form-group
|
||||
= f.label :origin, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
.col-md-4.control-label
|
||||
= f.label :origin
|
||||
.col-md-8
|
||||
= f.text_field :origin, class: 'form-control', disabled: true
|
||||
|
||||
.form-group
|
||||
= f.label :ttl, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
.col-md-4.control-label
|
||||
= f.label :ttl
|
||||
.col-md-8
|
||||
= f.text_field :ttl, class: 'form-control'
|
||||
|
||||
.form-group
|
||||
= f.label :refresh, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
.col-md-4.control-label
|
||||
= f.label :refresh
|
||||
.col-md-8
|
||||
= f.text_field :refresh, class: 'form-control'
|
||||
|
||||
.form-group
|
||||
= f.label :retry, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
.col-md-4.control-label
|
||||
= f.label :retry
|
||||
.col-md-8
|
||||
= f.text_field :retry, class: 'form-control'
|
||||
.form-group
|
||||
= f.label :expire, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
.col-md-4.control-label
|
||||
= f.label :expire
|
||||
.col-md-8
|
||||
= f.text_field :expire, class: 'form-control'
|
||||
|
||||
.form-group
|
||||
= f.label :minimum_ttl, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
.col-md-4.control-label
|
||||
= f.label :minimum_ttl
|
||||
.col-md-8
|
||||
= f.text_field :minimum_ttl, class: 'form-control'
|
||||
|
||||
.form-group
|
||||
= f.label :email, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field :email, class: 'form-control'
|
||||
.col-md-4.control-label
|
||||
= f.label :email
|
||||
.col-md-8
|
||||
= f.text_field :email, class: 'form-control', email: true
|
||||
|
||||
%hr
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
.col-md-8.text-right
|
||||
%button.btn.btn-primary= t(:save)
|
||||
|
|
|
@ -63,7 +63,7 @@ xml.epp_head do
|
|||
|
||||
xml.extension do
|
||||
xml.tag!('secDNS:infData', 'xmlns:secDNS' => 'urn:ietf:params:xml:ns:secDNS-1.1') do
|
||||
@domain.dnskeys.each do |key|
|
||||
@domain.dnskeys.sort.each do |key|
|
||||
xml.tag!('secDNS:dsData') do
|
||||
xml.tag!('secDNS:keyTag', key.ds_key_tag)
|
||||
xml.tag!('secDNS:alg', key.ds_alg)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
%title= t(:admin_head_title)
|
||||
= csrf_meta_tags
|
||||
= stylesheet_link_tag 'admin-manifest', media: 'all', 'data-turbolinks-track' => true
|
||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
||||
= javascript_include_tag 'admin-manifest', 'data-turbolinks-track' => true
|
||||
= favicon_link_tag 'favicon.ico'
|
||||
%body{:style => env_style}
|
||||
/ Static navbar
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
%title= t(:registrar_head_title)
|
||||
= csrf_meta_tags
|
||||
= stylesheet_link_tag 'registrar-manifest', media: 'all', 'data-turbolinks-track' => true
|
||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
||||
= javascript_include_tag 'registrar-manifest', 'data-turbolinks-track' => true
|
||||
= favicon_link_tag 'favicon.ico'
|
||||
%body
|
||||
/ Fixed navbar
|
||||
|
|
|
@ -18,6 +18,6 @@
|
|||
.row
|
||||
.col-md-8.text-right
|
||||
- if @contact.persisted?
|
||||
= button_tag(t(:save), class: 'btn btn-primary')
|
||||
= button_tag t(:save), class: 'btn btn-primary'
|
||||
- else
|
||||
= button_tag(t(:create), class: 'btn btn-primary')
|
||||
= button_tag t(:create), class: 'btn btn-primary'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'shared/title', name: "#{t(:edit)}: #{@contact.name}"
|
||||
|
||||
= form_for(@contact, url: registrar_contact_path(@contact),
|
||||
= form_for(@contact, url: registrar_contact_path(@contact),
|
||||
html: {class: 'form-horizontal js-contact-form'}) do |f|
|
||||
- render 'form', f: f
|
||||
|
|
|
@ -6,19 +6,19 @@
|
|||
.col-md-3.control-label
|
||||
= f.label :street, t(:street) + '*'
|
||||
.col-md-7
|
||||
= f.text_field :street, class: 'form-control'
|
||||
= f.text_field :street, class: 'form-control', required: true
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= f.label :city, t(:city) + '*'
|
||||
.col-md-7
|
||||
= f.text_field :city, class: 'form-control'
|
||||
= f.text_field :city, class: 'form-control', required: true
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= f.label :zip, t(:zip) + '*'
|
||||
.col-md-7
|
||||
= f.text_field :zip, class: 'form-control'
|
||||
= f.text_field :zip, class: 'form-control', required: true
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
|
@ -30,4 +30,5 @@
|
|||
.col-md-3.control-label
|
||||
= f.label :country_code, t(:country) + '*'
|
||||
.col-md-7
|
||||
= f.select(:country_code, SortedCountry.all_options(f.object.country_code))
|
||||
= f.select :country_code,
|
||||
SortedCountry.all_options(f.object.country_code)
|
||||
|
|
|
@ -7,20 +7,20 @@
|
|||
= f.label :ident_country_code, t(:country) + '*'
|
||||
.col-md-7
|
||||
= f.select(:ident_country_code, SortedCountry.all_options(f.object.ident_country_code), {},
|
||||
class: 'js-ident-country-code')
|
||||
class: 'js-ident-country-code', required: true)
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= f.label :ident_type, t(:type) + '*'
|
||||
.col-md-7
|
||||
= f.select(:ident_type, Depp::Contact::SELECTION_TYPES, { selected: f.object.ident_type },
|
||||
class: 'js-ident-type')
|
||||
class: 'js-ident-type', required: true)
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= f.label :ident, t(:ident) + '*'
|
||||
.col-md-7
|
||||
= f.text_field :ident, class: 'form-control'
|
||||
= f.text_field :ident, class: 'form-control', required: true
|
||||
- tip_visibility = f.object.ident_type == 'birthday' ? '' : 'display: none'
|
||||
.js-ident-tip{ style: tip_visibility }
|
||||
= t(:birthday_format)
|
||||
|
@ -33,18 +33,19 @@
|
|||
.col-md-3.control-label
|
||||
= f.label :name, t(:name) + '*'
|
||||
.col-md-7
|
||||
= f.text_field :name, class: 'form-control'
|
||||
= f.text_field :name, class: 'form-control', required: true
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= f.label :email, t(:email) + '*'
|
||||
.col-md-7
|
||||
= f.text_field :email, class: 'form-control'
|
||||
= f.text_field :email, class: 'form-control', required: true, email: true
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= f.label :phone, t(:phone) + '*'
|
||||
.col-md-7
|
||||
= f.text_field(:phone, class: 'form-control', placeholder: '+372.12323344')
|
||||
= f.text_field :phone, class: 'form-control',
|
||||
placeholder: '+372.12323344', required: true
|
||||
|
||||
|
||||
|
|
|
@ -2,21 +2,27 @@
|
|||
= link_to(t(:back_to_billing), registrar_invoices_path, class: 'btn btn-default')
|
||||
= render 'shared/title', name: t(:add_deposit)
|
||||
|
||||
= form_for([:registrar, @deposit], method: :post) do |f|
|
||||
= form_for([:registrar, @deposit], method: :post, html: { class: 'form-horizontal' }) do |f|
|
||||
= render 'shared/full_errors', object: @deposit
|
||||
|
||||
.row
|
||||
.col-md-4.col-md-offset-4
|
||||
= render 'shared/full_errors', object: @deposit
|
||||
.col-md-8
|
||||
.form-group
|
||||
= f.label :amount
|
||||
.input-group
|
||||
= f.text_field :amount, class: 'form-control'
|
||||
.input-group-addon
|
||||
EUR
|
||||
.col-md-4.control-label
|
||||
= f.label :amount, class: 'required'
|
||||
.col-md-7
|
||||
.input-group
|
||||
= f.text_field :amount, class: 'form-control', required: true
|
||||
.input-group-addon
|
||||
EUR
|
||||
|
||||
.form-group
|
||||
= f.label :description
|
||||
= f.text_area :description, class: 'form-control'
|
||||
.col-md-4.control-label
|
||||
= f.label :description
|
||||
.col-md-7
|
||||
= f.text_area :description, class: 'form-control'
|
||||
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= button_tag(t(:add), class: 'btn btn-primary')
|
||||
%hr
|
||||
.row
|
||||
.col-md-8.text-right
|
||||
= button_tag(t(:add), class: 'btn btn-primary')
|
||||
|
|
|
@ -13,9 +13,10 @@
|
|||
.pull-left= t(:legal_document)
|
||||
.panel-body
|
||||
.form-group
|
||||
= label_tag 'domain[legal_document]', t('legal_document'),class: 'col-md-3 control-label'
|
||||
.col-md-9
|
||||
= file_field_tag 'domain[legal_document]'
|
||||
.col-md-3.control-label
|
||||
= label_tag 'domain[legal_document]', t('legal_document'), class: 'required'
|
||||
.col-md-7
|
||||
= file_field_tag 'domain[legal_document]', required: true
|
||||
.col-md-4
|
||||
%p.domain-general-help= t(:domain_general_help).html_safe
|
||||
%p.domain-admin-contact-help= t(:domain_admin_contact_help).html_safe
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
= t(:legal_document)
|
||||
.panel-body
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag 'domain[legal_document]', t('legal_document')
|
||||
.col-md-7
|
||||
= file_field_tag 'domain[legal_document]'
|
||||
.col-md-4.control-label
|
||||
= label_tag 'domain[legal_document]', t('legal_document'), class: 'required'
|
||||
.col-md-6
|
||||
= file_field_tag 'domain[legal_document]', required: true
|
||||
= hidden_field_tag 'domain[name]', params[:domain_name]
|
||||
%hr
|
||||
.row
|
||||
|
|
|
@ -2,20 +2,23 @@
|
|||
- @domain_params['contacts_attributes'].each do |k, v|
|
||||
.panel.panel-default
|
||||
.panel-heading.clearfix
|
||||
.pull-left= t('contact')
|
||||
.pull-left= t(:contact)
|
||||
.pull-right
|
||||
= link_to(t('add_another'), '#', class: 'btn btn-primary btn-xs add-domain-contact')
|
||||
= link_to(t('delete'), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-primary btn-xs add-domain-contact')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
.panel-body
|
||||
.form-group
|
||||
= label_tag "domain_contacts_attributes_#{k}_type", t('contact_type'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_contacts_attributes_#{k}_type", t(:contact_type), class: 'required'
|
||||
.col-md-7
|
||||
= select_tag "domain[contacts_attributes][#{k}][type]", options_for_select(['admin', 'tech'], v['type']), {class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
= label_tag "domain_contacts_attributes_#{k}_code", t('contact_code'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_contacts_attributes_#{k}_code", t(:contact_code), class: 'required'
|
||||
.col-md-7.has-feedback
|
||||
= text_field_tag("domain[contacts_attributes][#{k}][code]", v['code'], class: 'form-control', placeholder: t('contact_code'), autocomplete: 'off')
|
||||
= text_field_tag("domain[contacts_attributes][#{k}][code]", v['code'],
|
||||
class: 'form-control', placeholder: t(:contact_code), autocomplete: 'off', required: true)
|
||||
:coffee
|
||||
$("#domain-contacts").nestedAttributes
|
||||
bindAddTo: $(".add-domain-contact")
|
||||
|
|
|
@ -2,51 +2,71 @@
|
|||
- @domain_params['dnskeys_attributes'].each do |k, v|
|
||||
.panel.panel-default
|
||||
.panel-heading.clearfix
|
||||
.pull-left= t('dnskey')
|
||||
.pull-left= t(:dnskey)
|
||||
.pull-right
|
||||
= link_to(t('add_another'), '#', class: 'btn btn-primary btn-xs add-dnskey')
|
||||
= link_to(t('delete'), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-primary btn-xs add-dnskey')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
.panel-body
|
||||
- if ENV['show_ds_data_fields'] == 'true'
|
||||
.form-group
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_key_tag", t('ds_key_tag'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_key_tag", t(:ds_key_tag)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][ds_key_tag]", v['ds_key_tag'], {class: 'form-control'}
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][ds_key_tag]", v['ds_key_tag'],
|
||||
{class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_alg", t('ds_algorithm'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_alg", t(:ds_algorithm)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][ds_alg]", options_for_select(Depp::Dnskey::ALGORITHMS, v['ds_alg']), {class: 'form-control'}
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][ds_alg]",
|
||||
options_for_select(Depp::Dnskey::ALGORITHMS, v['ds_alg']), {class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_digest_type", t('ds_digest_type'), class: 'col-md-2 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_digest_type", t(:ds_digest_type)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][ds_digest_type]", options_for_select(Depp::Dnskey::DS_DIGEST_TYPES, v['ds_digest_type']), {class: 'form-control'}
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][ds_digest_type]",
|
||||
options_for_select(Depp::Dnskey::DS_DIGEST_TYPES, v['ds_digest_type']),
|
||||
{class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_digest", t('ds_digest'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_digest", t(:ds_digest)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][ds_digest]", v['ds_digest'], {class: 'form-control'}
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][ds_digest]", v['ds_digest'],
|
||||
{class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_flags", t('flags'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_flags", t(:flags)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][flags]", options_for_select(Depp::Dnskey::FLAGS, v['flags']), {class: 'form-control'}
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][flags]",
|
||||
options_for_select(Depp::Dnskey::FLAGS, v['flags']),
|
||||
{ class: 'form-control' }
|
||||
|
||||
.form-group
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_protocol", t('protocol'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_protocol", t(:protocol)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][protocol]", options_for_select(Depp::Dnskey::PROTOCOLS, v['protocol']), {class: 'form-control'}
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][protocol]",
|
||||
options_for_select(Depp::Dnskey::PROTOCOLS, v['protocol']),
|
||||
{ class: 'form-control' }
|
||||
|
||||
.form-group
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_alg", t('alg'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_alg", t(:alg)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][alg]", options_for_select(Depp::Dnskey::ALGORITHMS, v['alg']), {class: 'form-control'}
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][alg]",
|
||||
options_for_select(Depp::Dnskey::ALGORITHMS, v['alg']), { class: 'form-control' }
|
||||
|
||||
.form-group
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_public_key", t('public_key'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_public_key", t(:public_key)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][public_key]", v['public_key'], class: 'form-control'
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][public_key]", v['public_key'],
|
||||
class: 'form-control'
|
||||
|
||||
:coffee
|
||||
$("#dnskeys").nestedAttributes
|
||||
bindAddTo: $(".add-dnskey")
|
||||
|
|
|
@ -1,19 +1,24 @@
|
|||
.general-tab.panel.panel-default
|
||||
.panel-body
|
||||
.form-group
|
||||
= label_tag :domain_name, t('name'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_name, t(:name), class: 'required'
|
||||
.col-md-7
|
||||
- readonly = params[:domain_name] ? true : false
|
||||
= text_field_tag('domain[name]', @domain_params[:name], class: 'form-control', readonly: readonly)
|
||||
= text_field_tag('domain[name]', @domain_params[:name],
|
||||
class: 'form-control', readonly: readonly, required: true)
|
||||
|
||||
- unless params[:domain_name]
|
||||
.form-group
|
||||
= label_tag :domain_period, t('period'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_period, t(:period), class: 'required'
|
||||
.col-md-7
|
||||
= select_tag 'domain[period]',
|
||||
options_for_select(Depp::Domain::PERIODS, @domain_params[:period]), { class: 'form-control' }
|
||||
|
||||
.form-group
|
||||
= label_tag :domain_registrant, t('registrant'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_registrant, t(:registrant), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag('domain[registrant]', @domain_params[:registrant], class: 'form-control', placeholder: t('contact_code'), autocomplete: 'off')
|
||||
= text_field_tag('domain[registrant]', @domain_params[:registrant],
|
||||
class: 'form-control', placeholder: t(:contact_code), autocomplete: 'off', required: true)
|
||||
|
|
|
@ -2,23 +2,29 @@
|
|||
- @domain_params['nameservers_attributes'].each do |k, v|
|
||||
.panel.panel-default
|
||||
.panel-heading.clearfix
|
||||
.pull-left= t('nameserver')
|
||||
.pull-left= t(:nameserver)
|
||||
.pull-right
|
||||
= link_to(t('add_another'), '#', class: 'btn btn-primary btn-xs add-nameserver')
|
||||
= link_to(t('delete'), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-primary btn-xs add-nameserver')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
.panel-body
|
||||
.form-group
|
||||
= label_tag "domain_nameservers_attributes_#{k}_hostname", t('hostname'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_nameservers_attributes_#{k}_hostname", t(:hostname), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][hostname]", v['hostname'], class: 'form-control'
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][hostname]", v['hostname'],
|
||||
class: 'form-control', required: true
|
||||
.form-group
|
||||
= label_tag "domain_nameservers_attributes_#{k}_ipv4", t('ipv4'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_nameservers_attributes_#{k}_ipv4", t(:ipv4)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][ipv4]", v['ipv4'], class: 'form-control'
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][ipv4]", v['ipv4'],
|
||||
class: 'form-control', ipv4: true
|
||||
.form-group
|
||||
= label_tag "domain_nameservers_attributes_#{k}_ipv6", t('ipv6'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_nameservers_attributes_#{k}_ipv6", t(:ipv6)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][ipv6]", v['ipv6'], class: 'form-control'
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][ipv6]", v['ipv6'],
|
||||
class: 'form-control', ipv6: true
|
||||
:coffee
|
||||
$("#nameservers").nestedAttributes
|
||||
bindAddTo: $(".add-nameserver")
|
||||
|
|
|
@ -4,18 +4,27 @@
|
|||
.col-md-8
|
||||
= form_tag renew_registrar_domains_path, class: 'form-horizontal', method: :get do
|
||||
.form-group
|
||||
= label_tag :domain_name, t(:name), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_name, t(:name), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t('domain_name'), autocomplete: 'off'
|
||||
= text_field_tag :domain_name, params[:domain_name],
|
||||
class: 'form-control', placeholder: t('domain_name'), autocomplete: 'off', required: true
|
||||
|
||||
.form-group
|
||||
= label_tag :cur_exp_date, t(:cur_exp_date), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :cur_exp_date, t(:cur_exp_date), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :cur_exp_date, params[:cur_exp_date], class: 'form-control', placeholder: 'yyyy-mm-dd', autocomplete: 'off'
|
||||
= text_field_tag :cur_exp_date, params[:cur_exp_date],
|
||||
class: 'form-control', placeholder: 'yyyy-mm-dd', autocomplete: 'off', required: true
|
||||
|
||||
.form-group
|
||||
= label_tag :domain_period, t(:period), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_period, t(:period), class: 'required'
|
||||
.col-md-7
|
||||
= select_tag :period,
|
||||
options_for_select(Depp::Domain::PERIODS, params[:period]), { class: 'form-control' }
|
||||
|
||||
%hr
|
||||
.form-group
|
||||
.col-md-10.text-right
|
||||
%button.btn.btn-primary= t(:renew)
|
||||
|
|
|
@ -4,19 +4,24 @@
|
|||
.col-md-8
|
||||
= form_tag transfer_registrar_domains_path, class: 'form-horizontal', method: :post, multipart: true do
|
||||
.form-group
|
||||
= label_tag :domain_name, t('name'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_name, t(:name), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t('domain_name'), autocomplete: 'off', autofocus: true
|
||||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control',
|
||||
placeholder: t(:domain_name), autocomplete: 'off', autofocus: true, required: true
|
||||
.form-group
|
||||
= label_tag :password, t('password'), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :password, t(:password), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :password, params[:password], class: 'form-control', autocomplete: 'off'
|
||||
= text_field_tag :password, params[:password],
|
||||
class: 'form-control', autocomplete: 'off', required: true
|
||||
.form-group
|
||||
= label_tag 'legal_document', t('legal_document'),class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag 'legal_document', t(:legal_document), class: 'required'
|
||||
.col-md-7
|
||||
= file_field_tag 'legal_document'
|
||||
= file_field_tag 'legal_document', required: true
|
||||
.form-group
|
||||
.col-md-10.text-right
|
||||
%button.btn.btn-primary{ name: 'query' }= t('query')
|
||||
%button.btn.btn-primary{ name: 'approve' }= t('approve')
|
||||
%button.btn.btn-primary{ name: 'reject' }= t('reject')
|
||||
%button.btn.btn-primary{ name: 'query' }= t(:query)
|
||||
%button.btn.btn-primary{ name: 'approve' }= t(:approve)
|
||||
%button.btn.btn-primary{ name: 'reject' }= t(:reject)
|
||||
|
|
|
@ -4,47 +4,65 @@
|
|||
.col-md-8
|
||||
= form_tag registrar_keyrelay_path, class: 'form-horizontal', method: :post, multipart: true do
|
||||
.form-group
|
||||
= label_tag :domain_name, t(:domain_name), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_name, t(:domain_name), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', autocomplete: 'off'
|
||||
= text_field_tag :domain_name, params[:domain_name],
|
||||
class: 'form-control', autocomplete: 'off', required: true
|
||||
|
||||
.form-group
|
||||
= label_tag :password, t(:password), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :password, t(:password), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :password, params[:password], class: 'form-control', autocomplete: 'off'
|
||||
= text_field_tag :password, params[:password],
|
||||
class: 'form-control', autocomplete: 'off', required: true
|
||||
|
||||
.form-group
|
||||
= label_tag :expiry_relative, t(:expiry_relative), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :expiry_relative, t(:expiry_relative), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :expiry_relative, params[:expiry_relative], class: 'form-control', autocomplete: 'off'
|
||||
= text_field_tag :expiry_relative, params[:expiry_relative],
|
||||
class: 'form-control', autocomplete: 'off', required: true
|
||||
|
||||
.form-group
|
||||
= label_tag :expiry_absolute, t(:expiry_absolute), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :expiry_absolute, t(:expiry_absolute), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :expiry_absolute, params[:expiry_absolute], class: 'form-control', autocomplete: 'off'
|
||||
= text_field_tag :expiry_absolute, params[:expiry_absolute],
|
||||
class: 'form-control', autocomplete: 'off', required: true
|
||||
|
||||
.form-group
|
||||
= label_tag :key_data_flags, t(:flag), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :key_data_flags, t(:flag), class: 'required'
|
||||
.col-md-7
|
||||
= select_tag :key_data_flags, options_for_select(Depp::Dnskey::FLAGS, params['key_data_flags']), {class: 'form-control'}
|
||||
= select_tag :key_data_flags,
|
||||
options_for_select(Depp::Dnskey::FLAGS, params['key_data_flags']), {class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
= label_tag :key_data_protocol, t(:protocol), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :key_data_protocol, t(:protocol), class: 'required'
|
||||
.col-md-7
|
||||
= select_tag :key_data_protocol, options_for_select(Depp::Dnskey::PROTOCOLS, params['key_data_protocol']), {class: 'form-control'}
|
||||
= select_tag :key_data_protocol,
|
||||
options_for_select(Depp::Dnskey::PROTOCOLS, params['key_data_protocol']),
|
||||
{class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
= label_tag :key_data_alg, t(:algorithm), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :key_data_alg, t(:algorithm), class: 'required'
|
||||
.col-md-7
|
||||
= select_tag :key_data_alg, options_for_select(Depp::Dnskey::ALGORITHMS, params['key_data_alg']), {class: 'form-control'}
|
||||
= select_tag :key_data_alg,
|
||||
options_for_select(Depp::Dnskey::ALGORITHMS, params['key_data_alg']), {class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
= label_tag :key_data_public_key, t(:public_key), class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :key_data_public_key, t(:public_key), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :key_data_public_key, params['key_data_public_key'], class: 'form-control'
|
||||
= text_field_tag :key_data_public_key, params['key_data_public_key'],
|
||||
class: 'form-control', required: true
|
||||
|
||||
.form-group
|
||||
= label_tag :legal_document, t(:legal_document),class: 'col-md-3 control-label'
|
||||
.col-md-3.control-label
|
||||
= label_tag :legal_document, t(:legal_document)
|
||||
.col-md-7
|
||||
= file_field_tag :legal_document
|
||||
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
.form-signin.col-md-4.center-block.text-center
|
||||
%h2.form-signin-heading.text-center= t(:log_in_with_mid)
|
||||
%hr
|
||||
= form_for @user, url: registrar_mid_path, html: {class: 'form-signin'} do |f|
|
||||
= f.text_field :phone, class: 'form-control', placeholder: t(:phone_no), autocomplete: 'off'
|
||||
= form_for @user, url: registrar_mid_path, auto_html5_validation: false,
|
||||
html: {class: 'form-signin'} do |f|
|
||||
= f.text_field :phone, class: 'form-control',
|
||||
placeholder: t(:phone_no), autocomplete: 'off', required: true
|
||||
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t(:log_in)
|
||||
|
||||
- if ['development', 'alpha'].include?(Rails.env)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue