text_area_tag name, value, {:class => html_class, :rows => '5', :cols => cols}.update(html_options)
when PropertyType::TYPE_PASSWORD
- password_field_tag name, value, {:size => options[:size] || 50}.update(html_options)
+ password_field_tag name, value, {:size => options[:size] || 50, :autocomplete => 'off'}.update(html_options)
when PropertyType::TYPE_BOOLEAN
select_options = "<option value='' #{ 'selected' if value.blank? }>#{ message('default') }</option>"
<table class="form">
<tr>
<td class="keyCell"><label for="old_password"><%= message('my_profile.password.old') -%>:</label></td>
- <td><%= password_field_tag 'old_password' %></td>
+ <td><%= password_field_tag 'old_password', nil, {:autocomplete => 'off'} %></td>
</tr>
<tr>
<td class="keyCell"><label for="password"><%= message('my_profile.password.new') -%>:</label></td>
- <td><%= password_field_tag 'password' %></td>
+ <td><%= password_field_tag 'password', nil, {:autocomplete => 'off'} %></td>
</tr>
<tr>
<td class="keyCell"><label for="password_confirmation"><%= message('my_profile.password.confirm') -%>:</label></td>
- <td><%= password_field_tag 'password_confirmation' %></td>
+ <td><%= password_field_tag 'password_confirmation', nil, {:autocomplete => 'off'} %></td>
</tr>
<tr>
<td></td>
<% end %>
</div>
-</div>
\ No newline at end of file
+</div>
</tr>
<tr class="even">
<td class="keyCell"><label for="smtp_password"><%= message('email_configuration.smtp_password') -%>:</label></td>
- <td><%= password_field_tag 'smtp_password', @smtp_password %></td>
+ <td><%= password_field_tag 'smtp_password', @smtp_password, {:autocomplete => 'off'} %></td>
<td class="comments"><%= message('email_configuration.smtp_password.description') -%></td>
</tr>
<tr class="odd">
</tr>
</tbody>
</table>
-</form>
\ No newline at end of file
+</form>
</p>
<h3><%= label_tag message('password') %></h3>
<p>
- <%= password_field_tag 'password', nil, :style => 'width:200px;' %>
+ <%= password_field_tag 'password', nil, {:style => 'width:200px;', :autocomplete => 'off'} %>
</p>
<p>
<%= check_box_tag 'remember_me', '1', @remember_me %> <%= label_tag 'remember_me', message('sessions.remember_me') %>
</td>
</tr>
</table>
- <script>$j('#login').focus()</script>
\ No newline at end of file
+ <script>$j('#login').focus()</script>
</p>
<h3><%= label_tag message('password') %></h3>
<p>
- <%= password_field_tag 'password', nil, :style => 'width:200px;' %>
+ <%= password_field_tag 'password', nil, {:style => 'width:200px;', :autocomplete => 'off'} %>
</p>
<p>
<%= check_box_tag 'remember_me', '1', @remember_me %> <%= label_tag 'remember_me', message('sessions.remember_me') %>
<% end %>
<% if !@user.id %>
<tr>
- <td class="left" valign="top">Password:<br/><%= f.password_field :password, :size => 30, :maxLength => 50 %></td>
+ <td class="left" valign="top">Password:<br/><%= f.password_field :password, :size => 30, :maxLength => 50, :autocomplete => 'off' %></td>
</tr>
<tr>
- <td class="left" valign="top">Confirm password:<br/><%= f.password_field :password_confirmation, :size => 30, :maxLength => 50 %></td>
+ <td class="left" valign="top">Confirm password:<br/><%= f.password_field :password_confirmation, :size => 30, :maxLength => 50, :autocomplete => 'off' %></td>
</tr>
<% elsif params[:action] == 'change_password' %>
<tr>
- <td class="left" valign="top">New password:<br/><%= f.password_field :password, :size => 30, :maxLength => 50 %></td>
+ <td class="left" valign="top">New password:<br/><%= f.password_field :password, :size => 30, :maxLength => 50, :autocomplete => 'off' %></td>
</tr>
<tr>
- <td class="left" valign="top">Confirm new password:<br/><%= f.password_field :password_confirmation, :size => 30, :maxLength => 50 %></td>
+ <td class="left" valign="top">Confirm new password:<br/><%= f.password_field :password_confirmation, :size => 30, :maxLength => 50, :autocomplete => 'off' %></td>
</tr>
<% end %>
<% end %>
<input id="user_name" name="user[name]" size="30" type="text"/>
</p>
<h3><%= label_tag 'user_password', message('password') %></h3>
- <p><input id="user_password" maxLength="50" name="user[password]" size="30" type="password"/></p>
+ <p><input id="user_password" maxLength="50" name="user[password]" size="30" type="password" autocomplete="off"/></p>
<h3><%= label_tag 'user_password_confirmation', message('sessions.confirm_password') %></h3>
<p>
- <input id="user_password_confirmation" maxLength="50" name="user[password_confirmation]" size="30" type="password"/>
+ <input id="user_password_confirmation" maxLength="50" name="user[password_confirmation]" size="30" type="password" autocomplete="off"/>
</p>
<p>
<%= submit_tag message('sessions.sign_up') %> <a href="<%= home_path -%>" class="action"><%= message('cancel') -%></a>