Skip to content

Commit 2a834a3

Browse files
author
Momotenko,Natalia(nmomotenko)
committed
Merge pull request #416 from magento-webdev/PR
[WD] Bugfixes
2 parents 2b81885 + d2f8029 commit 2a834a3

File tree

8 files changed

+59
-24
lines changed

8 files changed

+59
-24
lines changed

app/code/Magento/Backend/view/adminhtml/templates/page/copyright.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
?>
1010
<p class="copyright">
1111
<a class="link-copyright" href="http://magento.com" target="_blank" title="<?php echo __('Magento') ?>"></a>
12-
<?php echo __('Copyright &copy; %1 Magento, Inc. All rights reserved.', date('Y')) ?>
12+
<?php echo __('Copyright &copy; %1 Magento. All rights reserved.', date('Y')) ?>
1313
</p>

app/code/Magento/Backend/view/install/templates/page/copyright.phtml

Lines changed: 0 additions & 10 deletions
This file was deleted.

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/code/Magento/Theme/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Disallow: /*SID=
4242
<welcome>Default welcome msg!</welcome>
4343
</header>
4444
<footer translate="copyright">
45-
<copyright>&amp;copy; 2015 Magento Demo Store. All Rights Reserved.</copyright>
45+
<copyright>Copyright &#169; 2015 Magento. All rights reserved.</copyright>
4646
</footer>
4747
</design>
4848
<theme>

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,

dev/tests/integration/testsuite/Magento/Customer/Controller/AccountTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public function testEditAction()
394394

395395
$body = $this->getResponse()->getBody();
396396
$this->assertEquals(200, $this->getResponse()->getHttpResponseCode(), $body);
397-
$this->assertContains('<div class="field name firstname required">', $body);
397+
$this->assertContains('<div class="field field-name-firstname required">', $body);
398398
// Verify the password check box is not checked
399399
$this->assertContains('<input type="checkbox" name="change_password" id="change-password" value="1" ' .
400400
'title="Change Password" class="checkbox"/>', $body);
@@ -411,7 +411,7 @@ public function testChangePasswordEditAction()
411411

412412
$body = $this->getResponse()->getBody();
413413
$this->assertEquals(200, $this->getResponse()->getHttpResponseCode(), $body);
414-
$this->assertContains('<div class="field name firstname required">', $body);
414+
$this->assertContains('<div class="field field-name-firstname required">', $body);
415415
// Verify the password check box is checked
416416
$this->assertContains('<input type="checkbox" name="change_password" id="change-password" value="1" ' .
417417
'title="Change Password" checked="checked" class="checkbox"/>', $body);

0 commit comments

Comments
 (0)