Removed Unnecessary Flex class
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
<mat-dialog-content>
|
||||
<div class="tables-grid">
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="select('REGULAR_BILL')"
|
||||
[class.strong-primary]="selected === 'REGULAR_BILL'"
|
||||
@ -11,7 +11,7 @@
|
||||
<h3>Regular</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="select('STAFF')"
|
||||
[class.strong-primary]="selected === 'STAFF'"
|
||||
@ -20,7 +20,7 @@
|
||||
<h3>Staff</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="select('NO_CHARGE')"
|
||||
[class.strong-primary]="selected === 'NO_CHARGE'"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<h2 mat-dialog-title>Customer</h2>
|
||||
<mat-dialog-content>
|
||||
<form [formGroup]="form" class="flex flex-col">
|
||||
<form [formGroup]="form" class="flex-col">
|
||||
<div class="row-container">
|
||||
<mat-form-field class="flex-auto">
|
||||
<mat-label>Phone</mat-label>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<h2 mat-dialog-title>Discount</h2>
|
||||
<mat-dialog-content>
|
||||
<form [formGroup]="form" class="flex flex-col">
|
||||
<form [formGroup]="form" class="flex-col">
|
||||
<mat-table #table [dataSource]="dataSource" formArrayName="discounts">
|
||||
<!-- Name Column -->
|
||||
<ng-container matColumnDef="name">
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<div class="tables-grid">
|
||||
<mat-card
|
||||
class="primary flex flex-col square-button"
|
||||
class="primary flex-col square-button"
|
||||
matRipple
|
||||
[routerLink]="['menu-categories']"
|
||||
queryParamsHandling="preserve"
|
||||
@ -8,7 +8,7 @@
|
||||
<h3>Add Product</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="discount()"
|
||||
[class.disabled]="!discountAllowed()"
|
||||
@ -17,7 +17,7 @@
|
||||
<h3>Discount</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="printKot()"
|
||||
[class.disabled]="!printKotAllowed()"
|
||||
@ -26,7 +26,7 @@
|
||||
<h3>Print KOT</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="printBill()"
|
||||
[class.disabled]="!printBillAllowed()"
|
||||
@ -34,11 +34,11 @@
|
||||
>
|
||||
<h3>Print Bill</h3>
|
||||
</mat-card>
|
||||
<mat-card class="flex flex-col square-button warn" matRipple [routerLink]="['/', 'sales', 'tables']">
|
||||
<mat-card class="flex-col square-button warn" matRipple [routerLink]="['/', 'sales', 'tables']">
|
||||
<h3>Back to Tables</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="receivePayment()"
|
||||
[class.disabled]="!receivePaymentAllowed()"
|
||||
@ -47,7 +47,7 @@
|
||||
<h3>Receive Payment</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="moveTable()"
|
||||
[class.disabled]="!moveTableAllowed()"
|
||||
@ -56,7 +56,7 @@
|
||||
<h3>Move Table</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="cancelBill()"
|
||||
[class.disabled]="!cancelBillAllowed()"
|
||||
@ -65,7 +65,7 @@
|
||||
<h3>Cancel Bill</h3>
|
||||
</mat-card>
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="splitBill()"
|
||||
[class.disabled]="!splitBillAllowed()"
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
<div class="tables-grid">
|
||||
<mat-card class="flex flex-col square-button warn" matRipple [routerLink]="['../']" queryParamsHandling="preserve">
|
||||
<mat-card class="flex-col square-button warn" matRipple [routerLink]="['../']" queryParamsHandling="preserve">
|
||||
<h3>Back</h3>
|
||||
</mat-card>
|
||||
@for (item of list; track item) {
|
||||
<mat-card
|
||||
class="primary flex flex-col square-button"
|
||||
class="primary flex-col square-button"
|
||||
matRipple
|
||||
[routerLink]="['../products', item.id]"
|
||||
queryParamsHandling="preserve"
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
<div class="tables-grid">
|
||||
@for (m of item.modifiers; track m.id) {
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="select(m)"
|
||||
[class.primary]="selectedIds.indexOf(m.id) === -1"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<div class="tables-grid">
|
||||
<mat-card
|
||||
class="flex flex-col square-button warn"
|
||||
class="flex-col square-button warn"
|
||||
matRipple
|
||||
[routerLink]="['../../menu-categories']"
|
||||
queryParamsHandling="preserve"
|
||||
@ -9,7 +9,7 @@
|
||||
</mat-card>
|
||||
@for (item of list; track item) {
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="addProduct(item)"
|
||||
[class.accent]="item.hasHappyHour"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<h2 mat-dialog-title>Receive Payment</h2>
|
||||
<mat-dialog-content>
|
||||
<form [formGroup]="form" class="flex flex-col">
|
||||
<form [formGroup]="form" class="flex-col">
|
||||
<mat-table
|
||||
#table
|
||||
[dataSource]="dataSource"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div class="tables-grid">
|
||||
@for (table of list; track table) {
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="navigateToBill(table)"
|
||||
[class.primary]="table.status !== 'running' && table.status !== 'printed'"
|
||||
@ -21,7 +21,7 @@
|
||||
}
|
||||
</mat-card>
|
||||
}
|
||||
<mat-card class="flex flex-col square-button strong-primary" matRipple (click)="openBill()">
|
||||
<mat-card class="flex-col square-button strong-primary" matRipple (click)="openBill()">
|
||||
<h3>Open Bill</h3>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<h2 mat-dialog-title>Select Sale Categories</h2>
|
||||
<mat-dialog-content>
|
||||
<form [formGroup]="form" class="flex flex-col">
|
||||
<form [formGroup]="form" class="flex-col">
|
||||
<div formArrayName="saleCategories">
|
||||
@for (sc of list; track sc; let i = $index) {
|
||||
<div [formGroupName]="i" class="row-container">
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div class="tables-grid">
|
||||
@for (table of list; track table) {
|
||||
<mat-card
|
||||
class="flex flex-col square-button"
|
||||
class="flex-col square-button"
|
||||
matRipple
|
||||
(click)="select(table)"
|
||||
[class.primary]="table.status === 'running'"
|
||||
|
||||
Reference in New Issue
Block a user