mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
add autocomplete indicators + helpful tooltip
This commit is contained in:
parent
8df982d3f9
commit
c158ad0b68
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user