Merge pull request #1905 from wairbut-m2c/iagirre-autocomplete-tags

Iagirre autocomplete tags
This commit is contained in:
BertoCQ
2017-09-26 10:19:34 +02:00
committed by GitHub
12 changed files with 143 additions and 17 deletions

View File

@@ -49,7 +49,8 @@
label: false,
placeholder: t("budgets.investments.form.tags_placeholder"),
aria: {describedby: "tags-list-help-text"},
class: 'js-tag-list' %>
class: 'js-tag-list tag-autocomplete',
data: {js_url: suggest_tags_path} %>
</div>

View File

@@ -22,7 +22,9 @@
<%= f.text_field :tag_list, value: @debate.tag_list.to_s,
label: false,
placeholder: t("debates.form.tags_placeholder"),
aria: {describedby: "tag-list-help-text"} %>
aria: {describedby: "tag-list-help-text"},
data: {js_url: suggest_tags_path},
class: 'tag-autocomplete'%>
</div>
<div class="small-12 column">
<% if @debate.new_record? %>

View File

@@ -70,8 +70,9 @@
<%= f.text_field :tag_list, value: @proposal.tag_list.to_s,
label: false,
placeholder: t("proposals.form.tags_placeholder"),
class: 'js-tag-list',
aria: {describedby: "tag-list-help-text"} %>
class: 'js-tag-list tag-autocomplete',
aria: {describedby: "tag-list-help-text"},
data: {js_url: suggest_tags_path} %>
</div>
<% if current_user.unverified? %>