Files
brewman/brewman/static/partial/product-detail.html
Amritanshu 3fe3a7f7f3 Feature: Product deletion created including advanced delete.
Feature: Product list filtering created.
2013-10-14 23:23:00 +05:30

80 lines
2.9 KiB
HTML

<form class="form-horizontal" role=form>
<h2>Product Detail</h2>
<div class="form-group">
<label for="txtCode" class="col-md-2 control-label">Code</label>
<div class="col-md-10">
<input type="text" id="txtCode" class="form-control" disabled="disabled" ng-model="product.Code"/>
</div>
</div>
<div class="form-group">
<label for="txtName" class="col-md-2 control-label">Name</label>
<div class="col-md-10">
<input type="text" id="txtName" class="form-control" ng-model="product.Name"/>
</div>
</div>
<div class="form-group">
<label for="txtUnits" class="col-md-2 control-label">Units</label>
<div class="col-md-10">
<input type="text" id="txtUnits" class="form-control" ng-model="product.Units"/>
</div>
</div>
<div class="form-group">
<label for="txtPrice" class="col-md-2 control-label">Price</label>
<div class="col-md-10">
<input type="text" id="txtPrice" class="form-control" ng-model="product.Price"/>
</div>
</div>
<div class="form-group">
<label for="txtFraction" class="col-md-2 control-label">Fraction</label>
<div class="col-md-10">
<input type="text" id="txtFraction" class="form-control" ng-model="product.Fraction"/>
</div>
</div>
<div class="form-group">
<label for="txtFractionUnits" class="col-md-2 control-label">FractionUnits</label>
<div class="col-md-10">
<input type="text" id="txtFractionUnits" class="form-control" ng-model="product.FractionUnits"/>
</div>
</div>
<div class="form-group">
<label for="txtYeild" class="col-md-2 control-label">Yeild</label>
<div class="col-md-10">
<input type="text" id="txtYeild" class="form-control" ng-model="product.Yeild"/>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<label class="checkbox-inline">
<input type="checkbox" ng-model="product.ShowForPurchase"> Show for Purchase
</label>
<label class="checkbox-inline">
<input type="checkbox" ng-model="product.Discontinued"> Discontinued
</label>
</div>
</div>
<div class="form-group">
<label for="ddlType" class="col-md-2 control-label">Type</label>
<div class="col-md-10">
<select id="ddlType" class="form-control" ng-model="product.ProductGroup.ProductGroupID"
ng-options="l.ProductGroupID as l.Name for l in product_groups"> </select>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button class="btn btn-primary" ng-click="save()">Save</button>
<button class="btn btn-danger" ng-show="product.ProductID" ng-click="confirm()">Delete</button>
</div>
</div>
</form>