-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace add order item jss with normal forms
- Loading branch information
Showing
4 changed files
with
120 additions
and
24 deletions.
There are no files selected for viewing
84 changes: 84 additions & 0 deletions
84
packages/modules/ui/src/lib/components/molecules/order-items/order-item-form.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<vcl-panel-dialog | ||
[showCloseButton]="true" | ||
(close)="close()" | ||
> | ||
<vcl-panel-title>Add item</vcl-panel-title> | ||
|
||
<form action=""> | ||
<vcl-form-control-group> | ||
<vcl-label>Select a product</vcl-label> | ||
<vcl-select [search]="true"> | ||
<ng-container empty> | ||
<div class="p-1">No Product found!</div> | ||
</ng-container> | ||
<vcl-select-list | ||
[value]="selectedProduct" | ||
(valueChange)="onSelectProduct($event)" | ||
> | ||
@for (product of products; track product.id) { | ||
<vcl-select-list-item [value]="product.id">{{ | ||
product.product.name | ||
}}</vcl-select-list-item> | ||
} | ||
</vcl-select-list> | ||
</vcl-select> | ||
</vcl-form-control-group> | ||
|
||
<vcl-form-control-group> | ||
<vcl-label>Select a variant</vcl-label> | ||
<vcl-select> | ||
<ng-container empty> | ||
<div class="p-1">No Variant found!</div> | ||
</ng-container> | ||
<vcl-select-list | ||
[(value)]="selectedVariant" | ||
[disabled]="false" | ||
> | ||
@for (variant of variants; track variant.id) { | ||
<vcl-select-list-item [value]="variant.id">{{ | ||
variant.name | ||
}}</vcl-select-list-item> | ||
} | ||
</vcl-select-list> | ||
</vcl-select> | ||
</vcl-form-control-group> | ||
|
||
<vcl-form-control-group> | ||
<vcl-label>Quantity</vcl-label> | ||
<vcl-input-field> | ||
<input vclInput /> | ||
</vcl-input-field> | ||
</vcl-form-control-group> | ||
|
||
<div> | ||
<vcl-form-control-group> | ||
<vcl-label>Select currency</vcl-label> | ||
<vcl-select> | ||
<vcl-select-list> | ||
<vcl-select-list-item value="France"> France </vcl-select-list-item> | ||
<vcl-select-list-item value="Germany"> | ||
Germany | ||
</vcl-select-list-item> | ||
<vcl-select-list-item value="uK"> UK </vcl-select-list-item> | ||
</vcl-select-list> | ||
</vcl-select> | ||
</vcl-form-control-group> | ||
|
||
<vcl-form-control-group> | ||
<vcl-label>Regular price</vcl-label> | ||
<vcl-input-field> | ||
<input vclInput /> | ||
</vcl-input-field> | ||
</vcl-form-control-group> | ||
|
||
<vcl-checkbox>Sale</vcl-checkbox> | ||
|
||
<vcl-form-control-group> | ||
<vcl-label>Sale price</vcl-label> | ||
<vcl-input-field> | ||
<input vclInput /> | ||
</vcl-input-field> | ||
</vcl-form-control-group> | ||
</div> | ||
</form> | ||
</vcl-panel-dialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters