cleaups and content page refresh (in progress)
[outofuni/tavern2.git] / lib / product_category_component.html
index 6fff730..7b1df92 100644 (file)
        <div class="mdl-textfield mdl-js-textfield
                    mdl-textfield--floating-label ain">
                <input class="mdl-textfield__input" type=text id=ptn
        <div class="mdl-textfield mdl-js-textfield
                    mdl-textfield--floating-label ain">
                <input class="mdl-textfield__input" type=text id=ptn
-                      [(ngModel)]="new_prod_category_name"
-                      (keyup)="checkInput()">
+                      [(ngModel)]="new_prod_category_name">
                <label class="mdl-textfield__label" for=ptn>Name</label>
        </div>
                <label class="mdl-textfield__label" for=ptn>Name</label>
        </div>
-       <div class="mdl-textfield mdl-js-textfield
-                   mdl-textfield--floating-label ain">
-               <input class="mdl-textfield__input" type=text id=pti
-                      [(ngModel)]="new_prod_category_id"
-                      (keyup)="checkInput()">
-               <label class="mdl-textfield__label" for=pti>Identifier</label>
-       </div>
        <button class="mdl-button mdl-js-button mdl-button--raised abtn"
                (click)="createProductCategory()"
        <button class="mdl-button mdl-js-button mdl-button--raised abtn"
                (click)="createProductCategory()"
-               [disabled]="!docreate">
+               [disabled]="new_prod_category_name==''">
                Create
        </button>
 </div>
                Create
        </button>
 </div>