receipt.underscore 4.71 KB
Newer Older
1 2 3
<div class="wrapper-content-main payment-confirmation-step">
  <article class="content-main">
    <h3 class="title">
louyihua committed
4
      <%= interpolate(
Tasawer committed
5 6 7
            gettext( "Thank you %(full_name)s! We have received your payment for %(course_name)s."),
            { course_name: "<span class='course_name_placeholder'></span>",
              full_name: "<span class='full_name_placeholder'></span>"}, true
louyihua committed
8
          ) %>
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    </h3>

    <% if ( receipt ) { %>
    <div class="list-info">
      <div class="info-item payment-info">
        <div class="copy">
          <p><%- gettext( "Please print this page for your records; it serves as your receipt. You will also receive an email with the same information." ) %></p>
        </div>

        <div class="wrapper-report">
          <table class="report report-receipt">
            <thead>
              <tr>
                <th scope="col" ><%- gettext( "Order No." ) %></th>
                <th scope="col" ><%- gettext( "Description" ) %></th>
                <th scope="col" ><%- gettext( "Date" ) %></th>
                <th scope="col" ><%- gettext( "Amount" ) %></th>
              </tr>
            </thead>

            <tbody>
              <% for ( var i = 0; i < receipt.items.length; i++ ) { %>
                <% if ( receipt.isRefunded ) { %>
                  <td><del><%- receipt.orderNum %></del></td>
                  <td><del><%- receipt.items[i].lineDescription %></del></td>
                  <td><del><%- receipt.purchasedDatetime %></del></td>
                  <td><del><%- receipt.items[i].cost %> (<%- receipt.currency.toUpperCase() %>)</del></td>
                <% } else { %>
                  <tr>
                    <td><%- receipt.orderNum %></td>
                    <td><%- receipt.items[i].lineDescription %></td>
                    <td><%- receipt.purchasedDatetime %></td>
                    <td><%- receipt.items[i].cost %> (<%- receipt.currency.toUpperCase() %>)</td>
                  </tr>
                <% } %>
              <% } %>
            </tbody>

            <tfoot>
              <tr>
49 50 51
                <th scope="row" class="total-label"><%- gettext( "Total" ) %></th>
                <td colspan="2"></td>
                <td class="total-value">
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
                  <span class="value-amount"><%- receipt.totalCost %></span>
                   <span class="value-currency">(<%- receipt.currency.toUpperCase() %>)</span>
                </td>
              </tr>
            </tfoot>
          </table>

          <% if ( receipt.isRefunded ) { %>
          <div class="msg msg-refunds">
            <h4 class="title sr"><%- gettext( "Please Note" ) %>: </h4>
            <div class="copy">
              <p><%- gettext( "Crossed out items have been refunded." ) %></p>
            </div>
          </div>
          <% } %>
        </div>

69 70 71 72 73 74 75 76 77 78 79 80
        <% if ( receipt.billedTo ) { %>
            <div class="copy">
              <p><%- gettext( "Billed to" ) %>:
                  <span class="name-first"><%- receipt.billedTo.firstName %></span>
                  <span class="name-last"><%- receipt.billedTo.lastName %></span>
                  (<span class="address-city"><%- receipt.billedTo.city %></span>,
                  <span class="address-state"><%- receipt.billedTo.state %></span>
                  <span class="address-postalcode"><%- receipt.billedTo.postalCode %></span>
                  <span class="address-country"><%- receipt.billedTo.country.toUpperCase() %></span>)
              </p>
            </div>
        <% } %>
81 82 83

        <div class="report report-receipt report-receipt-provider hidden" id="receipt-provider"></div>

84 85 86 87 88 89 90
      </div>
    </div>
    <% } else { %>
        <p class="no-content"><%- gettext( "No receipt available" ) %></p>
    <% } %>

    <nav class="nav-wizard is-ready">
91
        <% if ( !is_verification_required ||  verified || is_request_in_themed_site) { %>
92 93
            <a class="next action-primary right" href="/dashboard"><%- gettext( "Go to Dashboard" ) %></a>
        <% } else { %>
94
          <a id="verify_later_button" class="next action-secondary verify-later nav-link" href="/dashboard" data-tooltip="<%- edx.StringUtils.interpolate( gettext( "If you don't verify your identity now, you can still explore your course from your dashboard. You will receive periodic reminders from {platformName} to verify your identity." ), { platformName: platformName } ) %>">
95 96 97 98 99
            <%- gettext( "Want to confirm your identity later?" ) %>
          </a>

          <a id="verify_now_button"
             class="next action-primary right"
100
             href="<%- edx.StringUtils.interpolate( '/verify_student/verify-now/{courseKey}/', { courseKey: courseKey } ) %>"
101 102 103 104 105 106 107
          >
            <%- gettext( "Verify Now" ) %>
          </a>
      <% } %>
    </nav>
  </article>
</div>