diff --git a/Gemfile b/Gemfile index 007dfedf8..d1fa886ed 100644 --- a/Gemfile +++ b/Gemfile @@ -53,6 +53,7 @@ group :development do gem 'rack-mini-profiler' gem 'listen' gem 'timecop' + gem 'wicked_pdf' end group :test, :development do diff --git a/Gemfile.lock b/Gemfile.lock index d304cab50..a2248ecd1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -507,6 +507,8 @@ GEM websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) + wicked_pdf (2.7.0) + activesupport xpath (3.2.0) nokogiri (~> 1.8) zeitwerk (2.6.12) @@ -589,6 +591,7 @@ DEPENDENCIES validate_url vcr webmock + wicked_pdf RUBY VERSION ruby 3.2.2p53 diff --git a/app/views/transcripts/_transcript.html.erb b/app/views/transcripts/_transcript.html.erb new file mode 100644 index 000000000..6933b1c67 --- /dev/null +++ b/app/views/transcripts/_transcript.html.erb @@ -0,0 +1,40 @@ +
+ <%= student.cohort.try(:description).try('include?', 'Data Engineering') ? 'Data Engineering' : 'Web and Mobile Development' %> +
+400 SW 6th Ave, Suite 800, Portland OR 97204
+Student: <%= student.name %>
+Dates Enrolled: <%= student.courses.order(:start_date).first.start_date.strftime('%B %d, %Y') %> - <%= student.courses.order(:start_date).last.end_date.strftime('%B %d, %Y') %>
+ +Courses: (does not include courses in progress)
+Epicodus requires students to attend class at least 90% of the time. This student met that requirement.
+ <% end %> + <% end %> + +<%= image_tag "signature.png" %>
+Michael Kaiser-Nyman, President
+Date: <%= completed_courses.last.end_date.strftime('%B %d, %Y') %>
+Epicodus maintains student transcripts for 50 years.
+- <%= @student.cohort.try(:description).try('include?', 'Data Engineering') ? 'Data Engineering' : 'Web and Mobile Development' %> -
-400 SW 6th Ave, Suite 800, Portland OR 97204
-Student: <%= @student.name %>
-Dates Enrolled: <%= @student.courses.order(:start_date).first.start_date.strftime('%B %d, %Y') %> - <%= @student.courses.order(:start_date).last.end_date.strftime('%B %d, %Y') %>
- -Courses: (does not include courses in progress)
-Epicodus requires students to attend class at least 90% of the time. This student met that requirement.
- <% end %> - <% end %> - -<%= image_tag "signature.png" %>
-Michael Kaiser-Nyman, President
-Date: <%= @completed_courses.last.end_date.strftime('%B %d, %Y') %>
-Epicodus maintains student transcripts for 50 years.
-