Skip to content

Instantly share code, notes, and snippets.

/po-add.html Secret

Created June 15, 2016 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5c66c9d53682a9bf83ea1fd70a078f78 to your computer and use it in GitHub Desktop.
Save anonymous/5c66c9d53682a9bf83ea1fd70a078f78 to your computer and use it in GitHub Desktop.
<div class="ui main text container", ng-controller="PoController as ctrl">
<form class="ui form" ng-submit="ctrl.submit()" name="myForm">
<h4 class="ui dividing header">Production order information</h4>
<div class="field">
<label> </label>
<div class="two fields">
<div class="field">
<input type="text" ng-model="ctrl.order.id" placeholder="Production order id">
</div>
<div class="field">
<input type="text" ng-model="ctrl.order.item" placeholder="Item id">
</div>
</div>
</div>
<h4 class="ui dividing header">Status:</h4>
<select class="ui dropdown" ng-model="ctrl.order.status">
<option value="CREATED">CREATED</option>
<option value="PLANNED">PLANNED</option>
<option value="DONE">DONE</option>
</select>
<h4 class="ui dividing header">Planning information</h4>
<div class="field">
<label> </label>
<div class="two fields">
<div class="field">
<input type="text" ng-model="ctrl.order.plannedQty" placeholder="Quantity">
</div>
<div class="field">
<input type="text" ng-model="ctrl.order.plannedDate" placeholder="Item id">
</div>
</div>
</div>
</br>
<div class="field">
<label>Description</label>
<textarea ng-model="ctrl.order.descritpion"></textarea>
</div>
<div class="asbutton" id="button">
<input type="submit" value="Save" class="ui primary button" ng-disabled="myForm.$invalid">
<button class="ui button" type="button" ng-click="ctrl.reset()" ng-disabled="myForm.$pristine">
Reset
</button>
</div>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment