-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# app/mailers/webforms_mailer.rb | ||
class WebformsMailer < ActionMailer::Base | ||
default from: 'azanella@example.com' | ||
|
||
def batch_upload_email(uni_updates_batch) | ||
@uni_updates_batch = uni_updates_batch | ||
destination = 'azanella@stanford.edu' | ||
mail(to: destination, subject: 'batch record update') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' /> | ||
</head> | ||
<body> | ||
<h1><%= @uni_updates_batch.uni_updates.count %> barcodes entered into the batch update table with values:</h1> | ||
<p>Batch id: <%= @uni_updates_batch.batch_id %></p> | ||
<p>Requested action: <%= @uni_updates_batch.action %></p> | ||
<p>Batch comments: <%= @uni_updates_batch.comments %></p> | ||
<p>Current library: <%= @uni_updates_batch.orig_lib %></p> | ||
<p>New library: <%= @uni_updates_batch.new_lib %></p> | ||
<p>New home location: <%= @uni_updates_batch.new_homeloc %></p> | ||
<p>New current location: <%= @uni_updates_batch.new_curloc %></p> | ||
<p>New item type: <%= @uni_updates_batch.new_itype %></p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<%= @uni_updates_batch.uni_updates.count %> barcodes entered into the batch update table with values: | ||
====================================================================================================== | ||
|
||
Batch id: <%= @uni_updates_batch.batch_id %> | ||
Requested action: <%= @uni_updates_batch.action %> | ||
Batch comments: <%= @uni_updates_batch.comments %> | ||
Current library: <%= @uni_updates_batch.orig_lib %> | ||
New library: <%= @uni_updates_batch.new_lib %> | ||
New home location: <%= @uni_updates_batch.new_homeloc %> | ||
New current location: <%= @uni_updates_batch.new_curloc %> | ||
New item type: <%= @uni_updates_batch.new_itype %> |