Skip to content

Commit

Permalink
bs4 family info fix immigrant fields (#4256)
Browse files Browse the repository at this point in the history
move script end tag to allow field div to load for bs4, fix exp date parsing
  • Loading branch information
charlienparker authored and bbodine1 committed Aug 14, 2024
1 parent 4ac2063 commit 6d70ded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def expiration_date
end

def expiration_date=(val)
@expiration_date = Date.strptime(val, '%m/%d/%Y') if val.to_s.present?
return unless val.to_s.present?
date_format = val.match(/\d{4}-\d{2}-\d{2}/) ? "%Y-%m-%d" : "%m/%d/%Y"
@expiration_date = Date.strptime(val, date_format)
end

def us_citizen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<div class="vlp_doc_area col-md-12">
</div>
</div>
<% end %>

<% if vlp_doc_subject.present? %>
<script type="text/javascript">
Expand All @@ -44,4 +45,3 @@
});
</script>
<% end %>
<% end %>

0 comments on commit 6d70ded

Please sign in to comment.