Fix missing "for" attribute in document number label
Since this attribute was missing, the label wasn't correctly associated with its field.
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
<div class="small-12 medium-5 column end">
|
<div class="small-12 medium-5 column end">
|
||||||
|
|
||||||
<div class="inline-block">
|
<div class="inline-block">
|
||||||
<%= f.label t("verification.residence.new.document_number") %>
|
<%= f.label :document_number, t("verification.residence.new.document_number") %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="button" class="inline-block" data-toggle="info-document-number">
|
<button type="button" class="inline-block" data-toggle="info-document-number">
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ describe "Residence" do
|
|||||||
visit account_path
|
visit account_path
|
||||||
click_link "Verify my account"
|
click_link "Verify my account"
|
||||||
|
|
||||||
fill_in "residence_document_number", with: "12345678Z"
|
fill_in "Document number", with: "12345678Z"
|
||||||
select "DNI", from: "residence_document_type"
|
select "DNI", from: "residence_document_type"
|
||||||
select_date "31-December-1980", from: "residence_date_of_birth"
|
select_date "31-December-1980", from: "residence_date_of_birth"
|
||||||
fill_in "residence_postal_code", with: "28013"
|
fill_in "residence_postal_code", with: "28013"
|
||||||
@@ -28,7 +28,7 @@ describe "Residence" do
|
|||||||
visit account_path
|
visit account_path
|
||||||
click_link "Verify my account"
|
click_link "Verify my account"
|
||||||
|
|
||||||
fill_in "residence_document_number", with: "12345678Z"
|
fill_in "Document number", with: "12345678Z"
|
||||||
select "DNI", from: "residence_document_type"
|
select "DNI", from: "residence_document_type"
|
||||||
select_date "31-December-1980", from: "residence_date_of_birth"
|
select_date "31-December-1980", from: "residence_date_of_birth"
|
||||||
fill_in "residence_postal_code", with: "28013"
|
fill_in "residence_postal_code", with: "28013"
|
||||||
@@ -63,7 +63,7 @@ describe "Residence" do
|
|||||||
visit account_path
|
visit account_path
|
||||||
click_link "Verify my account"
|
click_link "Verify my account"
|
||||||
|
|
||||||
fill_in "residence_document_number", with: "12345678Z"
|
fill_in "Document number", with: "12345678Z"
|
||||||
select "DNI", from: "residence_document_type"
|
select "DNI", from: "residence_document_type"
|
||||||
select_date "31-December-1980", from: "residence_date_of_birth"
|
select_date "31-December-1980", from: "residence_date_of_birth"
|
||||||
fill_in "residence_postal_code", with: "28013"
|
fill_in "residence_postal_code", with: "28013"
|
||||||
@@ -98,7 +98,7 @@ describe "Residence" do
|
|||||||
visit account_path
|
visit account_path
|
||||||
click_link "Verify my account"
|
click_link "Verify my account"
|
||||||
|
|
||||||
fill_in "residence_document_number", with: "12345678Z"
|
fill_in "Document number", with: "12345678Z"
|
||||||
select "DNI", from: "residence_document_type"
|
select "DNI", from: "residence_document_type"
|
||||||
select "1997", from: "residence_date_of_birth_1i"
|
select "1997", from: "residence_date_of_birth_1i"
|
||||||
select "January", from: "residence_date_of_birth_2i"
|
select "January", from: "residence_date_of_birth_2i"
|
||||||
@@ -118,7 +118,7 @@ describe "Residence" do
|
|||||||
visit account_path
|
visit account_path
|
||||||
click_link "Verify my account"
|
click_link "Verify my account"
|
||||||
|
|
||||||
fill_in "residence_document_number", with: "12345678Z"
|
fill_in "Document number", with: "12345678Z"
|
||||||
select "DNI", from: "residence_document_type"
|
select "DNI", from: "residence_document_type"
|
||||||
select "1997", from: "residence_date_of_birth_1i"
|
select "1997", from: "residence_date_of_birth_1i"
|
||||||
select "January", from: "residence_date_of_birth_2i"
|
select "January", from: "residence_date_of_birth_2i"
|
||||||
@@ -139,7 +139,7 @@ describe "Residence" do
|
|||||||
click_link "Verify my account"
|
click_link "Verify my account"
|
||||||
|
|
||||||
5.times do
|
5.times do
|
||||||
fill_in "residence_document_number", with: "12345678Z"
|
fill_in "Document number", with: "12345678Z"
|
||||||
select "DNI", from: "residence_document_type"
|
select "DNI", from: "residence_document_type"
|
||||||
select "1997", from: "residence_date_of_birth_1i"
|
select "1997", from: "residence_date_of_birth_1i"
|
||||||
select "January", from: "residence_date_of_birth_2i"
|
select "January", from: "residence_date_of_birth_2i"
|
||||||
|
|||||||
Reference in New Issue
Block a user