Skip to content

Commit

Permalink
Merge pull request #432 from uclibs/426/improve-worksheet
Browse files Browse the repository at this point in the history
Improve worksheet pdf formatting
  • Loading branch information
Janell-Huyck authored Mar 6, 2024
2 parents e6a10a4 + 36a5685 commit dd7074b
Show file tree
Hide file tree
Showing 5 changed files with 17,103 additions and 16 deletions.
26 changes: 20 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@ GEM
net-protocol
net-ssh (7.2.1)
nio4r (2.7.0)
nokogiri (1.16.2-aarch64-linux)
racc (~> 1.4)
nokogiri (1.16.2-arm-linux)
racc (~> 1.4)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86-linux)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-linux)
Expand Down Expand Up @@ -301,11 +309,11 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.1)
parser (>= 3.3.0.4)
rubocop-rails (2.23.1)
rubocop-rails (2.24.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (1.13.0)
rubyzip (2.3.2)
sass (3.7.4)
Expand Down Expand Up @@ -350,6 +358,10 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.7.2-aarch64-linux)
sqlite3 (1.7.2-arm-linux)
sqlite3 (1.7.2-arm64-darwin)
sqlite3 (1.7.2-x86-linux)
sqlite3 (1.7.2-x86_64-darwin)
sqlite3 (1.7.2-x86_64-linux)
sshkit (1.22.0)
Expand Down Expand Up @@ -389,9 +401,11 @@ GEM
zeitwerk (2.6.13)

PLATFORMS
x86_64-darwin-21
x86_64-darwin-22
x86_64-darwin-23
aarch64-linux
arm-linux
arm64-darwin
x86-linux
x86_64-darwin
x86_64-linux

DEPENDENCIES
Expand Down Expand Up @@ -447,4 +461,4 @@ RUBY VERSION
ruby 3.3.0p0

BUNDLED WITH
2.2.33
2.5.3
Binary file removed app/assets/images/worksheet_form_image.png
Binary file not shown.
20 changes: 11 additions & 9 deletions app/views/conservation_records/conservation_worksheet.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

table {
text-align: left;
font-size: 4vh;
font-size: 12px;
font-size: 12pt;
display: inline;
}

Expand All @@ -24,10 +23,10 @@ table {
}

.image img {
width: 100%;
width: 98%;
object-fit: contain;
position:fixed;
left:0px;
left:10px;
bottom:0px;
}

Expand All @@ -53,22 +52,25 @@ table {
<td><%= @conservation_record.id %></td>
<td><%= controlled_vocabulary_lookup(@conservation_record.department) %></td>
<td><%= @conservation_record.call_number %></td>
<td><%= @conservation_record.date_received_in_preservation_services %></td>
<td><%= date_returned(@conservation_record) %></td>
<td><%= @conservation_record&.date_received_in_preservation_services&.strftime('%m/%d/%Y') %></td>
<td><%= date_returned(@conservation_record)&.strftime('%m/%d/%Y') %></td>
</tr>
<table width="100%">
<tr>
<th>Title</th>
</tr>
<tr>
<td><%= @conservation_record.title %></td>
</tr>
</table>
<table width="100%">
<tr>
<th>Imprint</th>
<th>Author</th>
<th>Author</th>
</tr>
<tr>
<td><%= @conservation_record.imprint %></td>
<td><%= @conservation_record.author %></td>
<td><%= @conservation_record.imprint %></td>
<td><%= @conservation_record.author %></td>
</tr>
</table>
</div>
Expand Down
17,073 changes: 17,072 additions & 1 deletion public/worksheet_form_image.base64

Large diffs are not rendered by default.

Binary file removed public/worksheet_form_image.png
Binary file not shown.

0 comments on commit dd7074b

Please sign in to comment.