Skip to content

Commit aa0b545

Browse files
author
Natalia Momotenko
committed
Merge remote-tracking branch 'origin/MAGETWO-39473' into PR
2 parents 2b81885 + f26375e commit aa0b545

File tree

4 files changed

+55
-10
lines changed

4 files changed

+55
-10
lines changed

app/code/Magento/Customer/view/frontend/templates/form/register.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<?php echo $block->getChildHtml('form_fields_before')?>
1818
<?php /* Extensions placeholder */ ?>
1919
<?php echo $block->getChildHtml('customer.form.register.extra')?>
20-
<form class="form create account" action="<?php echo $block->getPostActionUrl() ?>" method="post" id="form-validate" enctype="multipart/form-data" autocomplete="off">
20+
<form class="form create account form-create-account" action="<?php echo $block->getPostActionUrl() ?>" method="post" id="form-validate" enctype="multipart/form-data" autocomplete="off">
2121
<fieldset class="fieldset create info">
2222
<legend class="legend"><span><?php echo __('Personal Information') ?></span></legend><br>
2323
<input type="hidden" name="success_url" value="<?php echo $block->getSuccessUrl() ?>">

app/code/Magento/Customer/view/frontend/templates/widget/name.phtml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,19 @@ $prefix = $block->showPrefix();
2929
$middle = $block->showMiddlename();
3030
$suffix = $block->showSuffix();
3131
?>
32+
3233
<?php if ($prefix || $middle || $suffix && !$block->getNoWrap()): ?>
3334
<div class="field required fullname <?php echo $block->getContainerClassName() ?>">
3435
<label for="<?php echo $block->getFieldId('firstname') ?>" class="label">
3536
<span><?php echo __('Name') ?></span>
3637
</label>
3738
<div class="control">
38-
<div class="fields group <?php echo 2 + intval($prefix) + intval($middle) + intval($suffix) ?>">
39-
<?php endif; ?>
40-
<?php if ($prefix): ?>$
41-
<div class="field name prefix<?php if ($block->isPrefixRequired()) echo ' required' ?>">
39+
<fieldset class="fieldset fieldset-fullname">
40+
<div class="fields">
41+
<?php endif; ?>
42+
43+
<?php if ($prefix): ?>
44+
<div class="field field-name-prefix<?php if ($block->isPrefixRequired()) echo ' required' ?>">
4245
<label class="label" for="<?php echo $block->getFieldId('prefix') ?>">
4346
<span><?php echo $block->getStoreLabel('prefix') ?></span>
4447
</label>
@@ -65,7 +68,7 @@ $suffix = $block->showSuffix();
6568
</div>
6669
</div>
6770
<?php endif; ?>
68-
<div class="field name firstname required">
71+
<div class="field field-name-firstname required">
6972
<label class="label" for="<?php echo $block->getFieldId('firstname') ?>">
7073
<span><?php echo $block->getStoreLabel('firstname') ?></span>
7174
</label>
@@ -80,7 +83,7 @@ $suffix = $block->showSuffix();
8083
</div>
8184
<?php if ($middle): ?>
8285
<?php $isMiddlenameRequired = $block->isMiddlenameRequired(); ?>
83-
<div class="field name middlename<?php echo $isMiddlenameRequired ? ' required' : '' ?>">
86+
<div class="field field-name-middlename<?php echo $isMiddlenameRequired ? ' required' : '' ?>">
8487
<label class="label" for="<?php echo $block->getFieldId('middlename') ?>">
8588
<span><?php echo $block->getStoreLabel('middlename') ?></span>
8689
</label>
@@ -94,7 +97,7 @@ $suffix = $block->showSuffix();
9497
</div>
9598
</div>
9699
<?php endif; ?>
97-
<div class="field name lastname required">
100+
<div class="field field-name-lastname required">
98101
<label class="label" for="<?php echo $block->getFieldId('lastname') ?>">
99102
<span><?php echo $block->getStoreLabel('lastname') ?></span>
100103
</label>
@@ -108,7 +111,7 @@ $suffix = $block->showSuffix();
108111
</div>
109112
</div>
110113
<?php if ($suffix): ?>
111-
<div class="field name suffix<?php if ($block->isSuffixRequired()) echo ' required' ?>">
114+
<div class="field field-name-suffix<?php if ($block->isSuffixRequired()) echo ' required' ?>">
112115
<label class="label" for="<?php echo $block->getFieldId('suffix') ?>">
113116
<span><?php echo $block->getStoreLabel('suffix') ?></span>
114117
</label>
@@ -135,8 +138,10 @@ $suffix = $block->showSuffix();
135138
</div>
136139
</div>
137140
<?php endif; ?>
141+
138142
<?php if ($prefix || $middle || $suffix && !$block->getNoWrap()): ?>
139-
</div>
143+
</div>
144+
</fieldset>
140145
</div>
141146
</div>
142147
<?php endif; ?>

app/design/frontend/Magento/blank/Magento_Customer/web/css/source/_module.less

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,21 @@
239239
}
240240
}
241241

242+
.form-create-account {
243+
.fieldset-fullname {
244+
.fields {
245+
.field {
246+
float: left;
247+
margin: 0 @indent__s @indent__s 0;
248+
}
249+
}
250+
.field-name-prefix,
251+
.field-name-suffix {
252+
width: 50px;
253+
}
254+
}
255+
}
256+
242257
.form.password.reset,
243258
.form.send.confirmation,
244259
.form.password.forget,

app/design/frontend/Magento/luma/Magento_Customer/web/css/source/_module.less

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@
6868
}
6969
}
7070

71+
.form-create-account {
72+
.fieldset-fullname {
73+
.fields {
74+
.field {
75+
float: none;
76+
}
77+
}
78+
}
79+
}
80+
7181
.box-billing-address,
7282
.box-shipping-address,
7383
.box-information,
@@ -224,6 +234,21 @@
224234
}
225235
}
226236

237+
.form-create-account {
238+
.fieldset-fullname {
239+
.fields {
240+
.field {
241+
float: left;
242+
margin: 0 @indent__s @indent__s 0;
243+
}
244+
}
245+
.field-name-prefix,
246+
.field-name-suffix {
247+
width: 50px;
248+
}
249+
}
250+
}
251+
227252
.form.password.reset,
228253
.form.send.confirmation,
229254
.form.password.forget,

0 commit comments

Comments
 (0)