mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Show all contacts
This commit is contained in:
parent
24b51809c3
commit
03acc3fd3b
2 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ class Registrar::DomainsController < Registrar::DeppController # EPP controller
|
|||
def init_contacts_autocomplete_map
|
||||
@contacts_autocomplete_map ||=
|
||||
current_user.registrar.contacts.pluck(:name, :code).map { |c| ["#{c.second} #{c.first}", c.second] }
|
||||
@priv_contacts_autocomplete_map ||=
|
||||
current_user.registrar.priv_contacts.pluck(:name, :code).map { |c| ["#{c.second} #{c.first}", c.second] }
|
||||
# @priv_contacts_autocomplete_map ||=
|
||||
# current_user.registrar.priv_contacts.pluck(:name, :code).map { |c| ["#{c.second} #{c.first}", c.second] }
|
||||
end
|
||||
end
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
= label_tag "domain_contacts_attributes_#{k}_code", t(:contact_code), class: 'required'
|
||||
.col-md-7.has-feedback
|
||||
= select_tag "domain[contacts_attributes][#{k}][code]",
|
||||
options_for_select(@priv_contacts_autocomplete_map, selected: v['code']),
|
||||
options_for_select(@contacts_autocomplete_map, selected: v['code']),
|
||||
include_blank: true, class: 'js-combobox', required: true
|
||||
|
||||
:coffee
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue