Bug 1469464 - Always hide View All, remove summary heading, add 'Pay to' draft
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Mon, 18 Jun 2018 22:07:01 -0500
changeset 808287 48621bc8c7d1bcc32753679a6b66343c5afc40a0
parent 808003 9a847d79eb8ea28ea2d7504ab7c65bf9ea598928
child 808288 c7dde6bb25b61c90a46ffde12de2d4f1efbc3cc9
push id113342
push usermozilla@noorenberghe.ca
push dateTue, 19 Jun 2018 03:07:38 +0000
bugs1469464
milestone62.0a1
Bug 1469464 - Always hide View All, remove summary heading, add 'Pay to' MozReview-Commit-ID: 5XQNH97o65T
browser/components/payments/res/paymentRequest.xhtml
--- a/browser/components/payments/res/paymentRequest.xhtml
+++ b/browser/components/payments/res/paymentRequest.xhtml
@@ -5,16 +5,18 @@
 <!DOCTYPE html [
   <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
   %globalDTD;
   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
   %brandDTD;
 
   <!ENTITY viewAllItems               "View All Items">
   <!ENTITY paymentSummaryTitle        "Your Payment">
+  <!ENTITY header.payTo               "Pay to">
+
   <!ENTITY shippingAddressLabel       "Shipping Address">
   <!ENTITY deliveryAddressLabel       "Delivery Address">
   <!ENTITY pickupAddressLabel         "Pickup Address">
   <!ENTITY shippingOptionsLabel       "Shipping Options">
   <!ENTITY paymentMethodsLabel        "Payment Method">
   <!ENTITY address.addLink.label      "Add">
   <!ENTITY address.editLink.label     "Edit">
   <!ENTITY basicCard.addLink.label    "Add">
@@ -78,27 +80,25 @@
   <script type="module" src="containers/payment-dialog.js"></script>
   <script type="module" src="paymentRequest.js"></script>
 
   <template id="payment-dialog-template">
     <header>
       <div id="total">
         <h2 class="label"></h2>
         <currency-amount></currency-amount>
-        <div id="host-name"></div>
+        <div>&header.payTo; <span id="host-name"></span></div>
       </div>
-      <div id="top-buttons" >
+      <div id="top-buttons" hidden="hidden">
         <button id="view-all" class="closed">&viewAllItems;</button>
       </div>
     </header>
 
     <div id="main-container">
       <section id="payment-summary" class="page">
-        <h2>&paymentSummaryTitle;</h2>
-
         <section>
           <div id="error-text"></div>
 
           <div class="shipping-related"
                id="shipping-type-label"
                data-shipping-address-label="&shippingAddressLabel;"
                data-delivery-address-label="&deliveryAddressLabel;"
                data-persist-checkbox-label="&addressPage.persistCheckbox.label;"