initial checkin
[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                 <label class="mdl-textfield__label" for=ptn>Name</label>
22         </div>
23         <div class="mdl-textfield mdl-js-textfield
24                     mdl-textfield--floating-label ain">
25                 <input class="mdl-textfield__input" type=text id=pti
26                        [(ngModel)]="new_prod_category_id">
27                 <label class="mdl-textfield__label" for=pti>Identifier</label>
28         </div>
29         <button class="mdl-button mdl-js-button mdl-button--raised abtn"
30                 (click)="createProductCategory()">
31                 Create
32         </button>
33 </div>
34 </div>