1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Add Orders page and update menu with new Orders link

This commit is contained in:
codecalm
2025-02-09 16:15:38 +01:00
parent 76f5de44e7
commit 1583d3ecc0
4 changed files with 66 additions and 4 deletions

View File

@@ -179,6 +179,10 @@
@include elements-list; @include elements-list;
} }
.btn-list-nowrap {
flex-wrap: nowrap;
}
// //
// Button floating // Button floating
// //

View File

@@ -404,18 +404,19 @@ Card table
*/ */
.card-table { .card-table {
margin-bottom: 0 !important; margin-bottom: 0 !important;
border-bottom-width: 0;
tr { tr {
td, td,
th { th {
&:first-child { &:first-child {
padding-left: $card-spacer-x; padding-left: $card-spacer-x;
border-left: 0; border-left-width: 0;
} }
&:last-child { &:last-child {
padding-right: $card-spacer-x; padding-right: $card-spacer-x;
border-right: 0; border-right-width: 0;
} }
} }
} }
@@ -425,11 +426,20 @@ Card table
tfoot { tfoot {
tr { tr {
&:first-child { &:first-child {
border-top: 0; border-top-width: 0;
td, td,
th { th {
border-top: 0; border-top-width: 0;
}
}
&:last-child {
border-bottom-width: 0;
td,
th {
border-bottom-width: 0;
} }
} }
} }

View File

@@ -295,6 +295,11 @@
"title": "Music", "title": "Music",
"url": "music.html" "url": "music.html"
}, },
"orders": {
"title": "Orders",
"url": "orders.html",
"badge": "New"
},
"page-loader": { "page-loader": {
"title": "Page loader", "title": "Page loader",
"url": "page-loader.html" "url": "page-loader.html"

43
preview/pages/orders.html Normal file
View File

@@ -0,0 +1,43 @@
---
title: Orders
page-header: Orders
page-menu: extra.orders
layout: default
permalink: orders.html
---
<div class="card">
<table class="table table-vcenter card-table">
<thead>
<tr>
<th class="w-1">
<input type="checkbox" class="form-check-input" />
</th>
<th>Order ID</th>
<th>Customer</th>
<th>Amount</th>
<th>Status</th>
<th class="w-1">Actions</th>
</tr>
</thead>
<tbody>
{% for i in (1..15) %}
<tr>
<th>
<input type="checkbox" class="form-check-input" />
</th>
<td>{{ '96039' | plus: i }}</td>
<td>John Doe</td>
<td>$100</td>
<td><span class="badge badge-success">Completed</span></td>
<td>
<div class="btn-list btn-list-nowrap">
<a href="#" class="btn">View</a>
<a href="#" class="btn btn-danger">Delete</a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>