mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
fixed bulk change nameserver form
This commit is contained in:
parent
e1e8979736
commit
9b67dff2e4
3 changed files with 4 additions and 3 deletions
|
@ -67,7 +67,7 @@ module Repp
|
||||||
end
|
end
|
||||||
|
|
||||||
def verify_nameserver_existance
|
def verify_nameserver_existance
|
||||||
return true if hostname.nil?
|
return true if hostname.blank?
|
||||||
|
|
||||||
current_user.registrar.nameservers.find_by!(hostname: hostname)
|
current_user.registrar.nameservers.find_by!(hostname: hostname)
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-2 control-label">
|
<div class="col-md-2 control-label">
|
||||||
<%= label_tag :old_hostname %>
|
<%= label_tag t '.old_hostname' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<%= text_field_tag :old_hostname, params[:old_hostname], required: true,
|
<%= text_field_tag :old_hostname, params[:old_hostname], required: false,
|
||||||
class: 'form-control' %>
|
class: 'form-control' %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -32,6 +32,7 @@ en:
|
||||||
ident data ie for updating contact information.
|
ident data ie for updating contact information.
|
||||||
|
|
||||||
nameserver_form:
|
nameserver_form:
|
||||||
|
old_hostname: Old hostname (optional)
|
||||||
ip_hint: One IP per line
|
ip_hint: One IP per line
|
||||||
replace_btn: Replace nameserver
|
replace_btn: Replace nameserver
|
||||||
help_btn: Toggle help
|
help_btn: Toggle help
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue