Skip to content

Commit

Permalink
remove date changes
Browse files Browse the repository at this point in the history
  • Loading branch information
misswayua committed Apr 4, 2019
1 parent be734f0 commit a4f511c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion lib/nailinda_web/templates/patient/new.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="field ">
<label class="label">Date of Birth</label>
<div class="control">
<%= date_select f, :date_of_birth, placeholder: "Date Of Birth", class: "input", year: [options: 1930..current_year()] %>
<%= date_select f, :date_of_birth, placeholder: "Date Of Birth", class: "input" %>
<%= error_tag f, :date_of_birth%>
</div>
</div>
Expand Down
4 changes: 0 additions & 4 deletions lib/nailinda_web/views/patient_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ defmodule NailindaWeb.PatientView do
t
|> Enum.join(" ")
end

def current_year do
Date.utc_today().year
end
end

0 comments on commit a4f511c

Please sign in to comment.