Upstream sync
This commit is contained in:
8
app/views/contracts/_exhibit_a_page.html.erb
Normal file
8
app/views/contracts/_exhibit_a_page.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<p class="heading"><strong><u><%= t ".heading.#{releasable.model_name.param_key}" %></u></strong></p>
|
||||
<h4>Legal</h4>
|
||||
<p><%= releasable.contract_template.exhibit_a_legal_text %></p>
|
||||
<% if releasable.contract_template.exhibit_a_question_text.present? %>
|
||||
<h4>Question</h4>
|
||||
<p><strong><%= releasable.contract_template.exhibit_a_question_text %></strong></p>
|
||||
<p><%= releasable.exhibit_a_answer %></p>
|
||||
<% end %>
|
||||
8
app/views/contracts/_exhibit_b_page.html.erb
Normal file
8
app/views/contracts/_exhibit_b_page.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<p class="heading"><strong><u><%= t ".heading.#{releasable.model_name.param_key}" %></u></strong></p>
|
||||
<h4>Legal</h4>
|
||||
<p><%= releasable.contract_template.exhibit_b_legal_text %></p>
|
||||
<% if releasable.contract_template.exhibit_b_question_text.present? %>
|
||||
<h4>Question</h4>
|
||||
<p><strong><%= releasable.contract_template.exhibit_b_question_text %></strong></p>
|
||||
<p><%= releasable.exhibit_b_answer %></p>
|
||||
<% end %>
|
||||
@@ -8,38 +8,37 @@
|
||||
Description: <%= release.description %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<% photos = release.file_infos.photo %>
|
||||
<% photos = release.image_files %>
|
||||
<% unless photos.empty? %>
|
||||
<h3>Photos</h3>
|
||||
<ul>
|
||||
<% photos.each do |file_info| %>
|
||||
<% photos.each do |blob| %>
|
||||
<li>
|
||||
<%= file_info.filename %>
|
||||
<%= blob.filename %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% videos = release.file_infos.video %>
|
||||
<% videos = release.video_files %>
|
||||
<% unless videos.empty? %>
|
||||
<h3>Videos</h3>
|
||||
<ul>
|
||||
<% videos.each do |file_info| %>
|
||||
<% videos.each do |blob| %>
|
||||
<li>
|
||||
<%= file_info.filename %>
|
||||
<%= blob.filename %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% other = release.file_infos.other %>
|
||||
<% other = release.other_files %>
|
||||
<% unless other.empty? %>
|
||||
<h3>Other files</h3>
|
||||
<ul>
|
||||
<% other.each do |file_info| %>
|
||||
<% other.each do |blob| %>
|
||||
<li>
|
||||
<%= file_info.filename %>
|
||||
<%= blob.filename %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
@@ -6,3 +6,5 @@
|
||||
<p><%= releasable.public_send("question_#{n}_answer") %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= contract_template.questionnaire_legal_text %>
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
<%= contract_template.guardian_clause %>
|
||||
<% end %>
|
||||
|
||||
<% if releasable.model_name.in? %w(MedicalRelease MiscRelease) %>
|
||||
<%# if releasable.model_name.in? %w(MedicalRelease MiscRelease AppearanceRelease) %>
|
||||
<% if releasable.respond_to?(:question_1_answer) %>
|
||||
<div class="page">
|
||||
<%= render "contracts/questionnaire", releasable: releasable, contract_template: contract_template, preview: preview %>
|
||||
</div>
|
||||
@@ -30,7 +31,22 @@
|
||||
<div class="page">
|
||||
<%= render "contracts/amendment_page", releasable: releasable, preview: preview %>
|
||||
</div>
|
||||
<%end %>
|
||||
<% end %>
|
||||
|
||||
<% if releasable.respond_to?(:exhibit_a_answer) %>
|
||||
<% if contract_template.has_exhibit_a? %>
|
||||
<div class="page">
|
||||
<%= render "contracts/exhibit_a_page", releasable: releasable, preview: preview %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if contract_template.has_exhibit_b? %>
|
||||
<div class="page">
|
||||
<%= render "contracts/exhibit_b_page", releasable: releasable, preview: preview %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if releasable.respond_to?(:approved?) && releasable.approved? %>
|
||||
<div class="page">
|
||||
|
||||
Reference in New Issue
Block a user