Skip to content

Commit

Permalink
fixing direction names
Browse files Browse the repository at this point in the history
  • Loading branch information
Holist committed Feb 4, 2025
1 parent d6a4c5e commit 222ca7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions app/javascript/stylesheets/pdf.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ u {
}
}

.direction-names {
margin-top: 110px;
}

/* Style pour l'adresse en position absolue, nécessaire pour les enveloppe à fenêtres */
// Dimensions standard :
// L'addresse doit être dans un cadre de 3,3 cm de haut sur 8,5 cm de large.
Expand Down
17 changes: 8 additions & 9 deletions app/views/letters/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
<%= user.parsed_post_code_and_city.upcase %></p>
</div>
</div>
<br>
<br>
<br>
<% if direction_names.blank? %>
<p><%= organisation.name.upcase %></p>
<% else %>
<% direction_names.each do |direction_name| %>
<p><%= direction_name.upcase %></p>
<div style="direction-names">
<% if direction_names.blank? %>
<p><%= organisation.name.upcase %></p>
<% else %>
<% direction_names.each do |direction_name| %>
<p><%= direction_name.upcase %></p>
<% end %>
<% end %>
<% end %>
</div>

0 comments on commit 222ca7e

Please sign in to comment.