diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-02 10:30:38 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-10 13:38:25 +0300 |
commit | 9d09bd08e541c42dc05e336293cc2917b3a60df8 (patch) | |
tree | f7e96d37a29033f0c66eae108a52222102b8fd82 /app/views/projects/milestones | |
parent | a9a9f19b0b245a5829b0626d539c81c7cd28d46c (diff) |
Due date can be removed from milestones
Closes #15063
Diffstat (limited to 'app/views/projects/milestones')
-rw-r--r-- | app/views/projects/milestones/_form.html.haml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/projects/milestones/_form.html.haml b/app/views/projects/milestones/_form.html.haml index f5e2b927da8..cbf1ba04170 100644 --- a/app/views/projects/milestones/_form.html.haml +++ b/app/views/projects/milestones/_form.html.haml @@ -19,6 +19,7 @@ = f.label :due_date, "Due Date", class: "control-label" .col-sm-10 = f.text_field :due_date, class: "datepicker form-control", placeholder: "Select due date" + %a.inline.prepend-top-5.js-clear-due-date{ href: "#" } Clear due date .form-actions - if @milestone.new_record? @@ -27,10 +28,3 @@ -else = f.submit 'Save changes', class: "btn-save btn" = link_to "Cancel", namespace_project_milestone_path(@project.namespace, @project, @milestone), class: "btn btn-cancel" - - -:javascript - $(".datepicker").datepicker({ - dateFormat: "yy-mm-dd", - onSelect: function(dateText, inst) { $("#milestone_due_date").val(dateText) } - }).datepicker("setDate", $.datepicker.parseDate('yy-mm-dd', $('#milestone_due_date').val())); |