Upstream sync
This commit is contained in:
@@ -13,6 +13,29 @@
|
||||
<% end %>
|
||||
|
||||
<hr>
|
||||
<% if @contract_template.has_exhibit_a? %>
|
||||
<%= card_field_set_tag t(".exhibits.exhibit_a.heading") do %>
|
||||
<p><%= @contract_template.exhibit_a_legal_text %></p>
|
||||
<% if @contract_template.exhibit_a_question_text.present? %>
|
||||
<div class="form-row">
|
||||
<%= form.text_area :exhibit_a_answer, label: @contract_template.exhibit_a_question_text, wrapper_class: "col-sm-12" %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<hr>
|
||||
<% end %>
|
||||
|
||||
<% if @contract_template.has_exhibit_b? %>
|
||||
<%= card_field_set_tag t(".exhibits.exhibit_b.heading") do %>
|
||||
<p><%= @contract_template.exhibit_b_legal_text %></p>
|
||||
<% if @contract_template.exhibit_b_question_text.present? %>
|
||||
<div class="form-row">
|
||||
<%= form.text_area :exhibit_b_answer, label: @contract_template.exhibit_b_question_text, wrapper_class: "col-sm-12" %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<hr>
|
||||
<% end %>
|
||||
|
||||
<% unless @contract_template.guardian_clause.blank? %>
|
||||
<%= form.form_group :minor do %>
|
||||
@@ -25,6 +48,19 @@
|
||||
<hr>
|
||||
<% end %>
|
||||
|
||||
<% if @contract_template.has_questionnaire? %>
|
||||
<%= card_field_set_tag t(".questionnaire.heading") do %>
|
||||
<% (1..AppearanceRelease::NUMBER_OF_CUSTOM_FIELDS).each do |n| %>
|
||||
<% if @contract_template.public_send("question_#{n}_text").present? %>
|
||||
<div class="form-row">
|
||||
<%= form.text_area "question_#{n}_answer", wrapper_class: "col-sm-12", label: @contract_template.public_send("question_#{n}_text") %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<hr>
|
||||
<% end %>
|
||||
|
||||
<%= card_field_set_tag t(".personal_info.heading") do %>
|
||||
<div class="alert alert-warning font-weight-bold"><%= t ".personal_info.instructions" %></div>
|
||||
<div class="form-row">
|
||||
|
||||
Reference in New Issue
Block a user