mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Make legal document optional on domain delete
This commit is contained in:
parent
48ac443473
commit
16e9966d34
3 changed files with 4 additions and 35 deletions
|
@ -256,9 +256,6 @@ module Epp
|
|||
end
|
||||
|
||||
def validate_delete
|
||||
# binding.pry
|
||||
requires 'extension > extdata > legalDocument' if current_user.legaldoc_mandatory?
|
||||
|
||||
@prefix = 'delete > delete >'
|
||||
requires 'name'
|
||||
end
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
.form-group
|
||||
.col-md-4.control-label
|
||||
= label_tag 'domain[legal_document]', t(:legal_document), class: ('required' if current_registrar_user.legaldoc_mandatory?)
|
||||
= label_tag 'domain[legal_document]', t(:legal_document)
|
||||
%p.help-block= t(:legal_document_max_size)
|
||||
.col-md-6
|
||||
= file_field_tag 'domain[legal_document]', required: current_registrar_user.legaldoc_mandatory?
|
||||
= file_field_tag 'domain[legal_document]'
|
||||
= hidden_field_tag 'domain[name]', params[:domain_name]
|
||||
%hr
|
||||
.row
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue