Merge pull request #2318 from internetee/2313-admin-dropdown

Admin: Searchable select dropdown on new invoices
This commit is contained in:
Timo Võhmar 2022-04-05 15:14:06 +03:00 committed by GitHub
commit 1b369a2af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@
.col-md-4.control-label
= f.label :registrar_id, class: 'required'
.col-md-8
= f.select :registrar_id, Registrar.all.map { |r| [r.name, r.id] }, { include_blank: true }, class: 'form-control selectize', required: true
= select_tag 'deposit[registrar_id]', options_for_select(Registrar.all.map { |r| [r.name, r.id] }), { prompt: t(:choose), required: true, class: 'form-control js-combobox' }
.form-group
.col-md-4.control-label