add autocomplete indicators + helpful tooltip

This commit is contained in:
Tristan 2018-06-07 00:52:16 -05:00
parent 8df982d3f9
commit c158ad0b68
2 changed files with 9 additions and 6 deletions

View File

@ -77,10 +77,6 @@ p.long-form {
}
}
.autocomplete-content {
position: absolute !important;
}
.spaced-paragraphs {
p {
margin-bottom: 18px !important;
@ -94,4 +90,4 @@ p.long-form {
}
margin-bottom: 30px;
}
}

View File

@ -11,7 +11,14 @@
%>
<div class="input-field content-field">
<%= f.label field.label.present? ? field.label : ' ' %>
<%= f.label field do %>
<%= field.label.present? ? field.label : ' ' %>
<% if defined?(autocomplete) %>
<i class="material-icons grey-text lighten-2 tooltipped" style="font-size: 100%" data-tooltip="This field may suggest some ideas for you when you start typing." data-position="right">
offline_bolt
</i>
<% end %>
<% end %>
<%
placeholder = I18n.translate "attributes.#{content_name}.#{field.name}",
scope: :serendipitous_questions,