Rename SignatureSheet column

This new functionality will allow to retrieve in the signature sheet
the document number, the date of birth and the postal code.

So we renamed :document_numbers to :required_fields_to_veriry to
clarify and adjust the name to its use.
This commit is contained in:
taitus
2019-05-14 10:36:55 +02:00
committed by Javi Martín
parent ff1e8db4c6
commit 837c45599d
9 changed files with 22 additions and 17 deletions

View File

@@ -14,9 +14,9 @@
<%= f.text_field :signable_id %>
</div>
<%= f.label :document_numbers %>
<p class="help-text" id="document-numbers-help-text"><%= t("admin.signature_sheets.new.document_numbers_note") %></p>
<%= f.text_area :document_numbers, rows: "6", label: false, aria: {describedby: "document-numbers-help-text"} %>
<%= f.label :required_fields_to_verify %>
<p class="help-text" id="required-fields-to-verify-help-text"><%= t("admin.signature_sheets.new.document_numbers_note") %></p>
<%= f.text_area :required_fields_to_verify, rows: "6", label: false, aria: {describedby: "required-fields-to-verify-help-text"} %>
<%= f.submit(class: "button", value: t("admin.signature_sheets.new.submit")) %>
<% end %>

View File

@@ -15,7 +15,7 @@
<div class="callout margin-top">
<p><strong><%= t("admin.signature_sheets.show.documents") %></strong></p>
<%= simple_format @signature_sheet.document_numbers %>
<%= simple_format @signature_sheet.required_fields_to_verify %>
</div>