mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
Add reserved pw field to domain edit UI if active dispute
This commit is contained in:
parent
4870dab8af
commit
dc9bf7a5d3
2 changed files with 2 additions and 1 deletions
|
@ -100,6 +100,7 @@ class Registrar
|
||||||
authorize! :update, Depp::Domain
|
authorize! :update, Depp::Domain
|
||||||
@data = @domain.info(params[:domain_name])
|
@data = @domain.info(params[:domain_name])
|
||||||
@domain_params = Depp::Domain.construct_params_from_server_data(@data)
|
@domain_params = Depp::Domain.construct_params_from_server_data(@data)
|
||||||
|
@disputed = Dispute.active.find_by(domain_name: params[:domain_name]).present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
.col-md-7
|
.col-md-7
|
||||||
= check_box_tag 'domain[verified]', '1', @domain_params[:verified].eql?('1'), onclick: "return (confirm('#{t(:verified_confirm)}') ? true : false);"
|
= check_box_tag 'domain[verified]', '1', @domain_params[:verified].eql?('1'), onclick: "return (confirm('#{t(:verified_confirm)}') ? true : false);"
|
||||||
|
|
||||||
- unless params[:domain_name]
|
- if !params[:domain_name] || @disputed
|
||||||
.form-group
|
.form-group
|
||||||
.col-md-3.control-label
|
.col-md-3.control-label
|
||||||
= label_tag :domain_reserved_pw, t(:reserved_pw)
|
= label_tag :domain_reserved_pw, t(:reserved_pw)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue