mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
User interface for the registry along with basic settings
This commit is contained in:
parent
d5d1d0040b
commit
ceb688902f
26 changed files with 278 additions and 32 deletions
|
@ -6,7 +6,7 @@ module Epp::DomainsHelper
|
|||
handle_errors(@domain) and return unless @domain.attach_objects(@ph, parsed_frame)
|
||||
handle_errors(@domain) and return unless @domain.save
|
||||
|
||||
render '/epp/domains/create'
|
||||
render '/epp/domains/success'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -34,6 +34,14 @@ module Epp::DomainsHelper
|
|||
render '/epp/domains/info'
|
||||
end
|
||||
|
||||
def update_domain
|
||||
@domain = find_domain
|
||||
|
||||
handle_errors(@domain) and return unless @domain
|
||||
|
||||
render '/epp/domains/success'
|
||||
end
|
||||
|
||||
### HELPER METHODS ###
|
||||
private
|
||||
|
||||
|
@ -72,6 +80,11 @@ module Epp::DomainsHelper
|
|||
xml_attrs_present?(@ph, [['name']])
|
||||
end
|
||||
|
||||
## UPDATE
|
||||
def validate_domain_update_request
|
||||
@ph = params_hash['epp']['command']['update']['update']
|
||||
xml_attrs_present?(@ph, [['name']])
|
||||
end
|
||||
|
||||
## SHARED
|
||||
def find_domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue