don't disable autocomplete on free-text fields - merged with i18n

This commit is contained in:
Carl Chenet 2017-05-20 15:11:35 +02:00
parent a67236d097
commit 5dc024568a
6 changed files with 10 additions and 17 deletions

View file

@ -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 ? "" : t('.mustbelogged'))
%>

View file

@ -73,20 +73,17 @@
<div class="boxline">
<%= f.label :recipient_username, t('.tomsglabel'), :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, t('.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, t('.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">

View file

@ -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">

View file

@ -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>

View file

@ -38,7 +38,7 @@
<div class="boxline">
<%= f.label :title, t('.title'), :class => "required" %>
<%= f.text_field :title, :maxlength => 100, :autocomplete => "off" %>
<%= f.text_field :title, :maxlength => 100 %>
</div>
<% if f.object.id && !defined?(suggesting) %>
@ -101,8 +101,7 @@
<div class="boxline">
<%= f.label :description, t('.text'), :class => "required" %>
<%= f.text_area :description, :rows => 15,
:placeholder => t('.placeholdertext'),
:autocomplete => "off" %>
:placeholder => t('.placeholdertext') %>
</div>
<div class="boxline actions markdown_help_toggler">

View file

@ -27,7 +27,7 @@
<div class="boxline">
<%= f.label :moderation_reason, t('.modreason'),
:class => "required" %>
<%= f.text_field :moderation_reason, :autocomplete => "off" %>
<%= f.text_field :moderation_reason %>
</div>
<% end %>
</div>