Ignore:
Timestamp:
05/01/25 12:32:20 (4 weeks ago)
Author:
ManuelTrajcev <manueltrajcev7@…>
Branches:
master
Children:
59b2e9c
Parents:
611686e
Message:

rank_list_artists view update + bootstrap styling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • templates/rank_list_most_active_customers.html

    r611686e r4abe330  
    22<html>
    33<head>
    4     <title>Most active customers</title>
     4    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css" rel="stylesheet"
     5          integrity="sha384-SgOJa3DmI69IUzQ2PVdRZhwQ+dy64/BUtbMJw1MZ8t5HZApcHrRKUc4W0kG879m7" crossorigin="anonymous">
     6    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/js/bootstrap.bundle.min.js"
     7            integrity="sha384-k6d4wzSIapyDyv1kpU366/PK5hCdSbCRGRCMv+eplOQJWyd1fbcAu9OCUj5zNLiq"
     8            crossorigin="anonymous"></script>
     9    <title>Most Active Customers</title>
    510</head>
    6 <body>
    7 <h1>Most active customers</h1>
    8 <ol>
    9     <h4>Name&emsp;-&emsp;Total orders&emsp;-&emsp;Total money spent</h4>
     11<body class="d-flex bg-light">
     12{% include 'sidebar.html' %}
     13<div class="container mt-5">
     14    <h1 class="text-center mb-4">Most Active Customers</h1>
    1015
    11     {% for row in data %}
    12         <li>{{ row.name }}&emsp;-&emsp;{{ row.total_orders }}&emsp;-&emsp;${{ row.total_money_spent }}</li>
    13     {% endfor %}
    14 </ol>
     16    <div class="list-group">
     17        <div class="row">
     18            <div class="col-4 font-weight-bold"><strong>Name</strong></div>
     19            <div class="col-4 font-weight-bold"><strong>Total Orders</strong></div>
     20            <div class="col-4 font-weight-bold"><strong>Total Money Spent</strong></div>
     21        </div>
     22        {% for row in data %}
     23            <a href="#" class="list-group-item list-group-item-action">
     24                <div class="row">
     25                    <div class="col-4 font-weight-bold"> {{ row.name }}</div>
     26                    <div class="col-4 font-weight-bold">{{ row.total_orders }}</div>
     27                    <div class="col-4 font-weight-bold"> ${{ row.total_money_spent }}</div>
     28                </div>
     29            </a>
     30        {% empty %}
     31            <div class="alert alert-warning" role="alert">
     32                No data found.
     33            </div>
     34        {% endfor %}
     35    </div>
     36</div>
    1537</body>
    1638</html>
    17 
Note: See TracChangeset for help on using the changeset viewer.