Skip to content
Snippets Groups Projects
Select Git revision
  • 9356db39690e1ac357865a4ac31ea864777332bc
  • main default protected
  • Gabes-testing-branch
  • 81-as-a-child-i-want-a-very-flashy-and-modern-looking-webpage-that-will-draw-me-in-and-keep-me
  • locationApporvalFormValidationUpdate
  • 74-as-a-user-i-want-to-see-a-page-of-local-authorities-so-that-i-can-easily-source-contact-details
  • businesses
  • 77-as-a-user-i-want-to-be-able-to-use-the-application-on-any-device-e-g-iphone-ipad-laptop
  • 69-as-a-user-i-would-like-a-town-specific-page-which-shows-all-trails-for-that-town-so-that-i-can
  • 80-as-a-convenience-enthusiast-i-want-a-drop-down-menu-to-be-able-to-quickly-scan-qr-codes-i-find
  • 82-as-a-site-admininstrator-i-want-to-be-able-to-review-submited-trail-checkpoints-by-bussiness
  • 68-as-a-user-i-would-like-to-see-a-map-containing-all-landmarks-for-a-trail-and-a-suggested-path
  • 70-as-a-repeat-trail-visitor-i-want-to-be-able-to-create-an-account-so-i-can-save-and-review-my
  • towns
  • DTFrontEnd
  • 52-as-a-user-i-would-like-to-see-a-map-of-the-landmarks-so-that-i-can-figure-out-where-to-go
  • 73-as-a-qr-scanning-connoisseur-i-want-to-unlock-stickers-after-scanning-a-qr-code-to-feel-a-sense
  • QRCodes
  • consumers
  • foreignkeys
  • cleanup
21 results

README.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    basket.html 1.45 KiB
    {% extends "base.html" %}
    
    {% block content %}
    
    <div class="form-container">
        <div class="form">
            <h1>Your Basket</h1>
    
            <table class="styled-table">
                <thead>
                    <tr>
                        <th>Item</th>
                        <th>Price</th>
                        <th>Quantity</th>
                        <th>Total</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    {% for basket in items %}
                    <tr>
                        <td>{{ basket.item.name }}</td>
                        <td>£{{ basket.item.price }}</td>
                        <td>{{ basket.quantity }}</td>
                        <td>£{{ basket.item.price * basket.quantity }}</td>
                        <td>
                            <form action="{{ url_for('main.modify_basket', item_id=basket.item_id) }}" method="POST">
                                <button type="remove" name="action" class="button" value="remove">-</button>
                                <button type="add" name="action" class="button" value="add">+</button>
                            </form>
                        </td>
    
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
            <h2>Total Price: £{{ total_price }}</h2>
            <a class="button" href="{{ url_for('main.shop') }}">Continue Shopping</a>
            <a class="button" href="{{ url_for('main.checkout') }}">Go to Checkout</a>
        </div>
    
    </div>
    
    
    {% endblock %}