InsidersByte/honeymoon-gift-list

View on GitHub
server/mail/templates/adminConfirmation/html.pug

Summary

Maintainability
Test Coverage
extends ../../layout.pug

block content
    p
        strong Woop we just got a gift!

    p
        | #{giver.forename} #{giver.surname} has just confirmed a gift set worth £#{giftSet.total}!

    p Their chosen payment method was #{giftSet.paymentMethod}

    table.breakdown
        thead
            tr
                th.text-column Name
                th.numeric-column Price (£)
                th.numeric-column Quantity
                th.numeric-column Total (£)
        tbody
            each gift in giftSet.gifts
                tr
                    td.text-column #{gift.name}
                    td.numeric-column #{gift._pivot_price}
                    td.numeric-column #{gift._pivot_quantity}
                    td.numeric-column #{gift._pivot_price * gift._pivot_quantity}

    p
        strong Total £#{giftSet.total}