Using angular-ui for datepicker and typeahead. Modified the source to set template folder in the root and not path relative. Updated to twitter bootstrap 3.0.0 No longer using the offline.appcache method. Using simple resource cacheing. Profit & Loss split into Profit & Loss / Balance Sheet
79 lines
2.8 KiB
HTML
79 lines
2.8 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>
|
|
</div>
|
|
</div>
|
|
</form>
|