Skip to content

Commit

Permalink
Change placeholder if no autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Jul 28, 2023
1 parent 1ff5be3 commit 0a6379a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/papers/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>
<div class="col" data-controller="autocomplete" data-autocomplete-url-value="<%= search_subjects_path %>">
<%= f.label "Main subject of the paper" %>
<%= f.text_field :suggested_subject, placeholder: "Start typing and select the subject that best applies to your paper", class: "form-control", style: "margin-right: 12px;", data: {"autocomplete-target" => "input"} %>
<%= f.text_field :suggested_subject, placeholder: (JournalFeatures.tracks? ? "Start typing and select the subject that best applies to your paper" : "The subject that best applies to your paper"), class: "form-control", style: "margin-right: 12px;", data: {"autocomplete-target" => "input"} %>
<%= f.hidden_field :track_id, data: {"autocomplete-target" => "hidden"} %>
<ul class="list-group subjects-options" data-autocomplete-target="results"></ul>
</div>
Expand Down

0 comments on commit 0a6379a

Please sign in to comment.