6fff73015a57f277a6a5d757ee825ff2226f3b1a
[outofuni/tavern2.git] / lib / product_category_component.html
1
2 <div class="product_categories full-width">
3         <button type="button"
4                 class="mdl-button mdl-js-button mdl-button--raised
5                        product_category_button"
6                 *ngFor="let prodcat of product_categories"
7                 (click)="choose(prodcat)">
8                         {{prodcat.name}}
9         </button>
10 </div>
11
12 <div class="mdl-card mdl-shadow--2dp admin_edit">
13 <div class="mdl-card__title">
14         Create product category
15 </div>
16 <div class="mdl-card__actions mdl-card--border">
17         <div class="mdl-textfield mdl-js-textfield
18                     mdl-textfield--floating-label ain">
19                 <input class="mdl-textfield__input" type=text id=ptn
20                        [(ngModel)]="new_prod_category_name"
21                        (keyup)="checkInput()">
22                 <label class="mdl-textfield__label" for=ptn>Name</label>
23         </div>
24         <div class="mdl-textfield mdl-js-textfield
25                     mdl-textfield--floating-label ain">
26                 <input class="mdl-textfield__input" type=text id=pti
27                        [(ngModel)]="new_prod_category_id"
28                        (keyup)="checkInput()">
29                 <label class="mdl-textfield__label" for=pti>Identifier</label>
30         </div>
31         <button class="mdl-button mdl-js-button mdl-button--raised abtn"
32                 (click)="createProductCategory()"
33                 [disabled]="!docreate">
34                 Create
35         </button>
36 </div>
37 </div>