Commit ad39bd58 authored by Mark Fletcher's avatar Mark Fletcher

Prevent browser autocomplete for milestone date fields

parent 9092e96a
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
.form-group.row .form-group.row
= f.label :start_date, "Start Date", class: "col-form-label col-sm-2" = f.label :start_date, "Start Date", class: "col-form-label col-sm-2"
.col-sm-10 .col-sm-10
= f.text_field :start_date, class: "datepicker form-control", placeholder: "Select start date" = f.text_field :start_date, class: "datepicker form-control", placeholder: "Select start date", autocomplete: 'off'
%a.inline.float-right.prepend-top-5.js-clear-start-date{ href: "#" } Clear start date %a.inline.float-right.prepend-top-5.js-clear-start-date{ href: "#" } Clear start date
.form-group.row .form-group.row
= f.label :due_date, "Due Date", class: "col-form-label col-sm-2" = f.label :due_date, "Due Date", class: "col-form-label col-sm-2"
.col-sm-10 .col-sm-10
= f.text_field :due_date, class: "datepicker form-control", placeholder: "Select due date" = f.text_field :due_date, class: "datepicker form-control", placeholder: "Select due date", autocomplete: 'off'
%a.inline.float-right.prepend-top-5.js-clear-due-date{ href: "#" } Clear due date %a.inline.float-right.prepend-top-5.js-clear-due-date{ href: "#" } Clear due date
---
title: Prevent browser autocomplete for milestone date fields
merge_request:
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment