-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move missing partial to shared directory
`autocomplete` partial is used in many places and it was outside the shared directory.
- Loading branch information
David Kang
committed
Sep 4, 2019
1 parent
b8a154a
commit 51ccc38
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
:ruby | ||
required = local_assigns.fetch(:required, true) | ||
value = local_assigns.fetch(:value, '') | ||
disabled = local_assigns.fetch(:disabled, false) | ||
data = local_assigns.fetch(:data, {}) | ||
|
||
.form-group.ui-front | ||
= label_tag(html_id, label) | ||
- if required | ||
%abbr.text-danger{ title: 'required' } * | ||
.input-group | ||
.input-group-prepend | ||
%span.input-group-text | ||
%i.fas.fa-search | ||
= text_field_tag(html_id, value, required: required, disabled: disabled, placeholder: 'Type to autocomplete...', | ||
class: 'obs-autocomplete form-control', data: data) |