Permalink
Browse files

don't disable autocomplete on free-text fields

  • Loading branch information...
jcs committed Apr 11, 2017
1 parent ce3f113 commit 9d99801ee6b61f1621328407f0b59c822b91f562
@@ -15,7 +15,7 @@ data-shortid="<%= comment.short_id if comment.persisted? %>">
<div style="width: 100%;">
<%= text_area_tag "comment", comment.comment, :rows => 5,
:autocomplete => "off", :disabled => !@user,
:disabled => !@user,
:placeholder => (@user ? "" : "You must be logged in to leave a comment.")
%>
@@ -74,20 +74,17 @@
<div class="boxline">
<%= f.label :recipient_username, "To:", :class => "required" %>
<%= f.text_field :recipient_username, :size => 20,
:autocomplete => "off" %>
<%= f.text_field :recipient_username, :size => 20 %>
</div>
<div class="boxline">
<%= f.label :subject, "Subject:", :class => "required" %>
<%= f.text_field :subject, :style => "width: 500px;",
:autocomplete => "off" %>
<%= f.text_field :subject, :style => "width: 500px;" %>
</div>
<div class="boxline">
<%= f.label :body, "Message:", :class => "required" %>
<%= f.text_area :body, :style => "width: 500px;", :rows => 5,
:autocomplete => "off" %>
<%= f.text_area :body, :style => "width: 500px;", :rows => 5 %>
</div>
<div class="boxline">
@@ -69,13 +69,11 @@
<%= error_messages_for @new_message %>
<div class="boxline">
<%= f.text_field :subject, :style => "width: 500px;",
:autocomplete => "off" %>
<%= f.text_field :subject, :style => "width: 500px;" %>
</div>
<div class="boxline">
<%= f.text_area :body, :style => "width: 500px;", :rows => 5,
:autocomplete => "off" %>
<%= f.text_area :body, :style => "width: 500px;", :rows => 5 %>
</div>
<div class="boxline">
@@ -3,8 +3,7 @@
Create an Account
</div>
<%= form_for @new_user, { :url => signup_path,
:autocomplete => "off" } do |f| %>
<%= form_for @new_user, { :url => signup_path } do |f| %>
<%= hidden_field_tag "invitation_code", @invitation.code %>
<p>
@@ -43,7 +43,7 @@
<div class="boxline">
<%= f.label :title, "Title:", :class => "required" %>
<%= f.text_field :title, :maxlength => 100, :autocomplete => "off" %>
<%= f.text_field :title, :maxlength => 100 %>
</div>
<% if f.object.id && !defined?(suggesting) %>
@@ -106,8 +106,7 @@
<div class="boxline">
<%= f.label :description, "Text:", :class => "required" %>
<%= f.text_area :description, :rows => 15,
:placeholder => "Optional when submitting a URL; please see guidelines",
:autocomplete => "off" %>
:placeholder => "Optional when submitting a URL; please see guidelines" %>
</div>
<div class="boxline actions markdown_help_toggler">
@@ -29,7 +29,7 @@
<div class="boxline">
<%= f.label :moderation_reason, "Mod Reason:",
:class => "required" %>
<%= f.text_field :moderation_reason, :autocomplete => "off" %>
<%= f.text_field :moderation_reason %>
</div>
<% end %>
</div>

0 comments on commit 9d99801

Please sign in to comment.