From 4ce3ef41deb59e5ff9da6f879c27d65677997477 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 6 Feb 2013 08:50:35 -0500 Subject: Disable autocomplete for admin/users form Fixes #2796 --- app/views/admin/users/_form.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml index 51b05c05993..f833c295936 100644 --- a/app/views/admin/users/_form.html.haml +++ b/app/views/admin/users/_form.html.haml @@ -11,17 +11,17 @@ .clearfix = f.label :name .input - = f.text_field :name, required: true + = f.text_field :name, required: true, :autocomplete => "off" %span.help-inline * required .clearfix = f.label :username .input - = f.text_field :username, required: true + = f.text_field :username, required: true, :autocomplete => "off" %span.help-inline * required .clearfix = f.label :email .input - = f.text_field :email, required: true + = f.text_field :email, required: true, :autocomplete => "off" %span.help-inline * required %fieldset -- cgit v1.2.1 From c9777518e3455913389128a272e0c3e6c0a74d63 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 6 Feb 2013 09:26:46 -0500 Subject: Ruby 1.9 hash syntax --- app/views/admin/users/_form.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml index f833c295936..8684a90202a 100644 --- a/app/views/admin/users/_form.html.haml +++ b/app/views/admin/users/_form.html.haml @@ -11,17 +11,17 @@ .clearfix = f.label :name .input - = f.text_field :name, required: true, :autocomplete => "off" + = f.text_field :name, required: true, autocomplete: "off" %span.help-inline * required .clearfix = f.label :username .input - = f.text_field :username, required: true, :autocomplete => "off" + = f.text_field :username, required: true, autocomplete: "off" %span.help-inline * required .clearfix = f.label :email .input - = f.text_field :email, required: true, :autocomplete => "off" + = f.text_field :email, required: true, autocomplete:"off" %span.help-inline * required %fieldset -- cgit v1.2.1 From 6474797d1cc48d1a9fb0659b1b28cc27580558a1 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 6 Feb 2013 09:27:09 -0500 Subject: Update app/views/admin/users/_form.html.haml --- app/views/admin/users/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml index 8684a90202a..48876338a23 100644 --- a/app/views/admin/users/_form.html.haml +++ b/app/views/admin/users/_form.html.haml @@ -21,7 +21,7 @@ .clearfix = f.label :email .input - = f.text_field :email, required: true, autocomplete:"off" + = f.text_field :email, required: true, autocomplete: "off" %span.help-inline * required %fieldset -- cgit v1.2.1