mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Make country select searchable in registrar form
This commit is contained in:
parent
fd74733931
commit
e3d8ea088b
6 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
ready = ->
|
||||
$('.selectize').selectize();
|
||||
|
||||
$(document).ready(ready)
|
||||
$(document).on('page:load', ready)
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#= require typeahead.bundle.min
|
||||
#= require autocomplete
|
||||
#= require jquery.nested_attributes
|
||||
#= require selectize
|
||||
#= require app
|
||||
|
||||
NProgress.configure
|
||||
showSpinner: false
|
||||
|
|
|
@ -4,4 +4,6 @@
|
|||
@import "nprogress-bootstrap";
|
||||
@import "bootstrap-ext";
|
||||
@import "typeaheadjs";
|
||||
@import "selectize";
|
||||
@import "selectize.bootstrap3";
|
||||
@import "app";
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
.col-md-6.text-left
|
||||
.form-group
|
||||
= f.label :country_id
|
||||
= f.select :country_id, options_for_select(Country.all.map{|x| [x.name, x.id]}, @registrar.country_id), {}, {class: 'form-control'}
|
||||
= f.select :country_id, options_for_select(Country.all.map{|x| [x.name, x.id]}, @registrar.country_id), {}, {class: 'form-control selectize'}
|
||||
.form-group
|
||||
= f.label :address
|
||||
= f.text_field(:address, class: 'form-control')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue