Skip to content

Commit

Permalink
Merge pull request #513 from magento-vanilla/PR
Browse files Browse the repository at this point in the history
[Vanilla] Stories + Bugs
  • Loading branch information
guz-anton committed Aug 11, 2015
2 parents e3ddc8c + 1d95ad3 commit 3e3cf7c
Show file tree
Hide file tree
Showing 118 changed files with 3,311 additions and 595 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"
class="action primary checkout"
disabled>
<span data-bind="text: $t('Place Order')"></span>
<span data-bind="i18n: 'Place Order'"></span>
</button>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Backend/view/adminhtml/layout/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
</referenceContainer>
<referenceContainer name="after.body.start">
<block class="Magento\RequireJs\Block\Html\Head\Config" name="requirejs-config"/>
<block class="Magento\Translation\Block\Html\Head\Config" name="translate-config"/>
<block class="Magento\Translation\Block\Js" name="translate" template="Magento_Translation::translate.phtml"/>
<block class="Magento\Framework\View\Element\Js\Components" name="head.components" as="components" template="Magento_Backend::page/js/components.phtml"/>
<block class="Magento\Framework\View\Element\Html\Calendar" name="head.calendar" as="calendar" template="Magento_Backend::page/js/calendar.phtml"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"
class="action primary checkout"
disabled>
<span data-bind="text: $t('Place Order')"></span>
<span data-bind="i18n: 'Place Order'"></span>
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@

<fieldset data-bind="attr: {class: 'fieldset payment items ccard ' + getCode(), id: 'braintree_form_cc'}">
<!-- ko if: (isShowLegend())-->
<legend class="legend"><span><!-- ko text: $t('Credit Card Information')--><!-- /ko --></span></legend><br />
<legend class="legend"><span><!-- ko i18n: 'Credit Card Information'--><!-- /ko --></span></legend><br />
<!-- /ko -->
<!-- ko if: (useVault()) -->
<div>
<label data-bind="attr: {for: getCode() + '_cc_token'}" class="label">
<span><!-- ko text: $t('Payment Information')--><!-- /ko --></span>
<span><!-- ko i18n: 'Payment Information'--><!-- /ko --></span>
</label>
<div class="control">
<select name="payment[cc_token]" class="select"
Expand All @@ -60,7 +60,7 @@
<!-- /ko -->
<div class="field type required" data-bind="visible: isCcFormShown">
<label data-bind="attr: {for: getCode() + '_cc_type'}" class="label">
<span><!-- ko text: $t('Credit Card Type')--><!-- /ko --></span>
<span><!-- ko i18n: 'Credit Card Type'--><!-- /ko --></span>
</label>
<div class="control">
<!-- ko if: (!isCcDetectionEnabled())-->
Expand Down Expand Up @@ -102,7 +102,7 @@
</div>
<div class="field number required" data-bind="visible: isCcFormShown">
<label data-bind="attr: {for: getCode() + '_cc_number'}" class="label">
<span><!-- ko text: $t('Credit Card Number')--><!-- /ko --></span>
<span><!-- ko i18n: 'Credit Card Number'--><!-- /ko --></span>
</label>
<div class="control">
<input type="number" name="payment[cc_number]" class="input-text" value=""
Expand All @@ -112,7 +112,7 @@
</div>
<div class="field date required" data-bind="attr: {id: getCode() + '_cc_type_exp_div'}, visible: isCcFormShown">
<label data-bind="attr: {for: getCode() + '_expiration'}" class="label">
<span><!-- ko text: $t('Expiration Date')--><!-- /ko --></span>
<span><!-- ko i18n: 'Expiration Date'--><!-- /ko --></span>
</label>
<div class="control">
<div class="fields group group-2">
Expand Down Expand Up @@ -148,7 +148,7 @@
<!-- ko if: (hasVerification())-->
<div class="field cvv required" data-bind="attr: {id: getCode() + '_cc_type_cvv_div'}, visible: isCcFormShown">
<label data-bind="attr: {for: getCode() + '_cc_cid'}" class="label">
<span><!-- ko text: $t('Card Verification Number')--><!-- /ko --></span>
<span><!-- ko i18n: 'Card Verification Number'--><!-- /ko --></span>
</label>
<div class="control">
<input type="number"
Expand All @@ -166,7 +166,7 @@
tabindex="0"
data-toggle="dropdown"
data-bind="attr: {title: $t('What is this?')}, mageInit: {'dropdown':{'activeClass': '_active'}}">
<span><!-- ko text: $t('What is this?')--><!-- /ko --></span>
<span><!-- ko i18n: 'What is this?'--><!-- /ko --></span>
</span>
<div class="field-tooltip-content"
data-target="dropdown"
Expand All @@ -189,7 +189,7 @@
class="checkbox"
data-bind="checked: storeInVault"/>
<label class="label" for="braintree_store_in_vault">
<span><!-- ko text: $t('Save this card for future use')--><!-- /ko --></span>
<span><!-- ko i18n: 'Save this card for future use'--><!-- /ko --></span>
</label>
</div>
</div>
Expand All @@ -212,7 +212,7 @@
css: {disabled: !isPlaceOrderActionAllowed()}
"
disabled>
<span data-bind="text: $t('Place Order')"></span>
<span data-bind="i18n: 'Place Order'"></span>
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->
<!-- ko if: (isRequired() && getIsVisible())-->
<div class="field captcha required" data-bind="blockLoader: getIsLoading()">
<label data-bind="attr: {for: 'captcha_' + formId}" class="label"><span data-bind="text: $t('Please type the letters below')"></span></label>
<label data-bind="attr: {for: 'captcha_' + formId}" class="label"><span data-bind="i18n: 'Please type the letters below'"></span></label>
<div class="control captcha">
<input name="captcha_string" type="text" class="input-text required-entry" data-bind="value: captchaValue(), attr: {id: 'captcha_' + formId, 'data-scope': dataScope}" />
<input name="captcha_form_id" type="hidden" data-bind="value: formId, attr: {'data-scope': dataScope}" />
Expand All @@ -20,12 +20,12 @@
}"
class="captcha-img"/>
<button type="button" class="action reload captcha-reload" data-bind="attr: {title: $t('Reload captcha')}, click: refresh">
<span data-bind="text: $t('Reload captcha')"></span>
<span data-bind="i18n: 'Reload captcha'"></span>
</button>
</div>
</div>
<!-- ko if: isCaseSensitive()-->
<div class="captcha-note note" data-bind="text: $t('Attention: Captcha is case sensitive.')"></div>
<div class="captcha-note note" data-bind="i18n: 'Attention: Captcha is case sensitive.'"></div>
<!-- /ko -->
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="selectProvider" xsi:type="string">product_listing.product_listing.product_columns.ids</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/tree-massactions</item>
<item name="displayArea" xsi:type="string">bottom</item>
<item name="actions" xsi:type="array">
<item name="delete" xsi:type="array">
Expand All @@ -202,12 +203,23 @@
<item name="label" xsi:type="string" translate="true">Delete</item>
<item name="url" xsi:type="string">catalog/product/massDelete</item>
</item>
<item name="disable" xsi:type="array">
<item name="status" xsi:type="array">
<item name="type" xsi:type="string">status</item>
<item name="label" xsi:type="string" translate="true">Change status</item>
<item name="url" xsi:type="string">catalog/*/massStatus</item>
<item name="actions" xsi:type="array">
<item name="0" xsi:type="array">
<item name="type" xsi:type="string">enable</item>
<item name="label" xsi:type="string" translate="true">Enable</item>
<item name="url" xsi:type="string">catalog/product/massEnable</item>
</item>
<item name="1" xsi:type="array">
<item name="type" xsi:type="string">disable</item>
<item name="label" xsi:type="string" translate="true">Disable</item>
<item name="url" xsi:type="string">catalog/product/massDisable</item>
</item>
</item>
</item>
<item name="enable" xsi:type="array">
<item name="attributes" xsi:type="array">
<item name="type" xsi:type="string">attributes</item>
<item name="label" xsi:type="string" translate="true">Update attributes</item>
<item name="url" xsi:type="string">catalog/product_action_attribute/edit</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<span class="counter-label">
<!-- ko if: cart().summary_count -->
<!-- ko text: cart().summary_count --><!-- /ko -->
<!-- ko text: $t('items') --><!-- /ko -->
<!-- ko i18n: 'items' --><!-- /ko -->
<!-- /ko -->
</span>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
type="button"
class="action action-auth-toggle"
data-trigger="authentication">
<span data-bind="text: $t('Sign In')"></span>
<span data-bind="i18n: 'Sign In'"></span>
</button>
<div class="block-authentication"
style="display: none"
Expand All @@ -34,7 +34,7 @@
<strong id="block-customer-login-heading"
role="heading"
aria-level="2"
data-bind="text: $t('Sign In')"></strong>
data-bind="i18n: 'Sign In'"></strong>
</div>
<div class="block-content" aria-labelledby="block-customer-login-heading">
<form data-role="login"
Expand All @@ -43,7 +43,7 @@
<div class="fieldset"
data-bind="attr: {'data-hasrequired': $t('* Required Fields')}">
<div class="field field-email required">
<label class="label" for="login-email"><span data-bind="text: $t('Email Address')"></span></label>
<label class="label" for="login-email"><span data-bind="i18n: 'Email Address'"></span></label>
<div class="control">
<input type="email"
class="input-text"
Expand All @@ -53,7 +53,7 @@
</div>
</div>
<div class="field field-password required">
<label for="login-password" class="label"><span data-bind="text: $t('Password')"></span></label>
<label for="login-password" class="label"><span data-bind="i18n: 'Password'"></span></label>
<div class="control">
<input type="password"
class="input-text"
Expand All @@ -69,11 +69,11 @@
<div class="actions-toolbar">
<input name="context" type="hidden" value="checkout" />
<div class="primary">
<button type="submit" class="action action-login secondary"><span data-bind="text: $t('Sign In')"></span></button>
<button type="submit" class="action action-login secondary"><span data-bind="i18n: 'Sign In'"></span></button>
</div>
<div class="secondary">
<a class="action action-remind" data-bind="attr: { href: forgotPasswordUrl }">
<span data-bind="text: $t('Forgot Password')"></span>
<span data-bind="i18n: 'Forgot Password'"></span>
</a>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->
<div class="billing-address-same-as-shipping-block field choice" data-bind="visible: canUseShippingAddress()">
<input type="checkbox" name="billing-address-same-as-shipping" data-bind="checked: isAddressSameAsShipping, click: useShippingAddress, attr: {id: 'billing-address-same-as-shipping-' + $parent.getCode()}"/>
<label data-bind="text: $t('My billing and shipping address are the same'), attr: {for: 'billing-address-same-as-shipping-' + $parent.getCode()}"></label>
<label data-bind="i18n: 'My billing and shipping address are the same', attr: {for: 'billing-address-same-as-shipping-' + $parent.getCode()}"></label>
</div>

<!-- ko template: 'Magento_Checkout/billing-address/details' --><!-- /ko -->
Expand All @@ -16,10 +16,10 @@
<div class="actions-toolbar">
<div class="primary">
<button class="action action-update" type="button" data-bind="click: updateAddress">
<span data-bind="text: $t('Update')"></span>
<span data-bind="i18n: 'Update'"></span>
</button>
<button class="action action-cancel" type="button" data-bind="click: cancelAddressEdit">
<span data-bind="text: $t('Cancel')"></span>
<span data-bind="i18n: 'Cancel'"></span>
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
<button type="button"
class="action action-edit-address"
data-bind="visible: !isAddressSameAsShipping(), click: editAddress">
<span data-bind="text: $t('Edit')"></span>
<span data-bind="i18n: 'Edit'"></span>
</button>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="choice field">
<input type="checkbox" class="checkbox" id="billing-save-in-address-book" data-bind="checked: saveInAddressBook" />
<label class="label" for="billing-save-in-address-book">
<span data-bind="text: $t('Save in address book')"></span>
<span data-bind="i18n: 'Save in address book'"></span>
</label>
</div>
<!-- /ko -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
-->
<div class="field field-select-billing">
<label class="label"><span data-bind="text: $t('My billing and shipping address are the same')"></span></label>
<label class="label"><span data-bind="i18n: 'My billing and shipping address are the same'"></span></label>
<div class="control" data-bind="if: (addressOptions.length > 1)">
<select class="select" name="billing_address_id" data-bind="
options: addressOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
-->
<div class="opc-estimated-wrapper">
<div class="estimated-block">
<span class="estimated-label" data-bind="text: $t('Estimated Total')"></span>
<span class="estimated-price" data-bind="text: getValue()"></span>
<span class="estimated-label" data-bind="i18n: 'Estimated Total'"></span>
<span class="estimated-price" data-bind="i18n: getValue()"></span>
</div>
<div class="minicart-wrapper">
<button type="button" class="action showcart" data-bind="click: showSidebar" data-toggle="opc-summary">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<fieldset id="customer-email-fieldset" class="fieldset" data-bind="blockLoader: isLoading">
<div class="field required">
<label class="label" for="customer-email">
<span data-bind="text: $t('Email Address')"></span>
<span data-bind="i18n: 'Email Address'"></span>
</label>
<div class="control _with-tooltip">
<input class="input-text"
Expand All @@ -25,15 +25,15 @@
data-validate="{required:true, 'validate-email':true}"
id="customer-email" />
<!-- ko template: 'ui/form/element/helper/tooltip' --><!-- /ko -->
<span class="note" data-bind="fadeVisible: isPasswordVisible() == false"><!-- ko text: $t("You can create an account after checkout.")--><!-- /ko --></span>
<span class="note" data-bind="fadeVisible: isPasswordVisible() == false"><!-- ko i18n: "You can create an account after checkout."--><!-- /ko --></span>
</div>
</div>

<!--Hidden fields -->
<fieldset class="fieldset hidden-fields" data-bind="fadeVisible: isPasswordVisible">
<div class="field">
<label class="label" for="customer-password">
<span data-bind="text: $t('Password')"></span>
<span data-bind="i18n: 'Password'"></span>
</label>
<div class="control">
<input class="input-text"
Expand All @@ -42,7 +42,7 @@
name="password"
id="customer-password"
data-validate="{required:true, 'validate-password':true}" />
<span class="note" data-bind="text: $t('You already have an account with us. Sign in or continue as guest.')"></span>
<span class="note" data-bind="i18n: 'You already have an account with us. Sign in or continue as guest.'"></span>
</div>

</div>
Expand All @@ -52,11 +52,11 @@
<div class="actions-toolbar">
<input name="context" type="hidden" value="checkout" />
<div class="primary">
<button type="submit" class="action login primary" data-action="checkout-method-login"><span data-bind="text: $t('Login')"></span></button>
<button type="submit" class="action login primary" data-action="checkout-method-login"><span data-bind="i18n: 'Login'"></span></button>
</div>
<div class="secondary">
<a class="action remind" data-bind="attr: { href: forgotPasswordUrl }">
<span data-bind="text: $t('Forgot Your Password?')"></span>
<span data-bind="i18n: 'Forgot Your Password?'"></span>
</a>
</div>
</div>
Expand Down
Loading

0 comments on commit 3e3cf7c

Please sign in to comment.