mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
Fix domain view
This commit is contained in:
parent
0cea91a28a
commit
2982b22921
3 changed files with 13 additions and 2 deletions
|
@ -38,3 +38,4 @@ class Admin::DomainsController < ApplicationController
|
|||
params.require(:domain).permit(:name, :period, :registrar_id, :owner_contact_id)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -103,6 +103,11 @@ class Domain < ActiveRecord::Base
|
|||
errors.add(:period, :out_of_range) unless valid_values.include?(period.to_s)
|
||||
end
|
||||
|
||||
def all_dependencies_valid?
|
||||
validate_nameservers_count
|
||||
validate_admin_contacts_count
|
||||
end
|
||||
|
||||
## SHARED
|
||||
|
||||
def to_s
|
||||
|
|
|
@ -67,7 +67,7 @@ en:
|
|||
blank: "Required parameter missing - ident"
|
||||
domains:
|
||||
exist: 'Object association prohibits operation'
|
||||
epp_domain:
|
||||
epp_domain: &epp_domain_ar_attributes
|
||||
attributes:
|
||||
name_dirty:
|
||||
invalid: 'Domain name is invalid'
|
||||
|
@ -93,6 +93,8 @@ en:
|
|||
domain_statuses:
|
||||
not_found: 'Status was not found'
|
||||
taken: 'Status already exists on this domain'
|
||||
domain:
|
||||
<<: *epp_domain_ar_attributes
|
||||
nameserver:
|
||||
attributes:
|
||||
hostname:
|
||||
|
@ -110,12 +112,15 @@ en:
|
|||
setting_id:
|
||||
taken: 'Status already exists on this domain'
|
||||
attributes:
|
||||
epp_domain:
|
||||
epp_domain: &epp_domain_attributes
|
||||
name: 'Domain name'
|
||||
name_dirty: 'Domain name'
|
||||
name_puny: 'Domain name'
|
||||
owner_contact: 'Registrant'
|
||||
nameservers: 'Nameservers'
|
||||
domain:
|
||||
<<: *epp_domain_attributes
|
||||
|
||||
|
||||
errors:
|
||||
messages:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue