mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Bind typehead to contact too
This commit is contained in:
parent
13349a6bc9
commit
1c165cd1e4
7 changed files with 55 additions and 30 deletions
|
@ -12,13 +12,16 @@
|
|||
.col-md-6
|
||||
.form-group.has-feedback
|
||||
= f.label :registrar
|
||||
= f.text_field(:registrar, class: 'form-control js-typeahead js-registrars-typeahead', placeholder: t('shared.registrar_name'), autocomplete: 'off')
|
||||
%span.glyphicon.glyphicon-remove.form-control-feedback.js-registrar-unselected
|
||||
%span.glyphicon.glyphicon-ok.form-control-feedback.js-registrar-selected.hidden
|
||||
= f.hidden_field(:registrar_id)
|
||||
.form-group
|
||||
= f.text_field(:registrar, class: 'form-control js-registrar-typeahead', placeholder: t('shared.registrar_name'), autocomplete: 'off')
|
||||
%span.glyphicon.glyphicon-ok.form-control-feedback.js-typeahead-ok.hidden
|
||||
%span.glyphicon.glyphicon-remove.form-control-feedback.js-typeahead-remove
|
||||
= f.hidden_field(:registrar_id, class: 'js-registrar-id')
|
||||
.form-group.has-feedback
|
||||
= f.label :owner_contact
|
||||
= f.text_field(:owner_contact, class: 'form-control js-contacts-typeahead', placeholder: t('shared.contact_code'), autocomplete: 'off')
|
||||
= f.text_field(:owner_contact, class: 'form-control js-contact-typeahead', placeholder: t('shared.contact_code'), autocomplete: 'off')
|
||||
%span.glyphicon.glyphicon-ok.form-control-feedback.js-typeahead-ok.hidden
|
||||
%span.glyphicon.glyphicon-remove.form-control-feedback.js-typeahead-remove
|
||||
= f.hidden_field(:owner_contact, class: 'js-contact-id')
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= button_tag(t('shared.save'), class: 'btn btn-primary')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue