fix MR comments
This commit is contained in:
37
app/views/contracts/_logo_page.html.erb
Normal file
37
app/views/contracts/_logo_page.html.erb
Normal file
@@ -0,0 +1,37 @@
|
||||
<% has_logo = local_assigns[:logo] %>
|
||||
<% has_user_photo = releasable.model_name == "AppearanceRelease" && releasable.person_photo.attached? %>
|
||||
|
||||
<% if has_logo || has_user_photo %>
|
||||
<table class="heading-table">
|
||||
<tr>
|
||||
<td>
|
||||
<% if has_logo %>
|
||||
<div class="logo">
|
||||
<%= render "blank_contracts/logo", logo: logo %>
|
||||
</div>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="embed-person-photo">
|
||||
<% if has_user_photo %>
|
||||
<%= image_tag releasable.photos.first.variant(auto_orient: true, resize: "200x200"), id: "top-person-photo" %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<hr>
|
||||
<% end %>
|
||||
|
||||
<% if preview %>
|
||||
<h1>PREVIEW ONLY</h1>
|
||||
<% end %>
|
||||
|
||||
<% if contract_template.body.present? %>
|
||||
<%= contract_template.body %>
|
||||
<br/>
|
||||
<% end %>
|
||||
|
||||
<% if releasable.minor? && contract_template.guardian_clause.present? %>
|
||||
<p class="text-left"><strong>Guardian Clause</strong></p>
|
||||
<%= contract_template.guardian_clause %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user