-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I think I've stripped out the rogue changes that were in my last comm…
…it from this one. Same supplier edit functionality as before.
- Loading branch information
Nick Williams
committed
Aug 17, 2015
1 parent
e24934d
commit 3275cfa
Showing
10 changed files
with
176 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<div> | ||
<md-content> | ||
|
||
<md-input-container flex> | ||
<label>Crop Name</label><input disabled="disabled" min="0" ng-required="true" ng-model="commodity.cr_crop.cr_crop_name" type="text"/> | ||
</md-input-container> | ||
|
||
<div layout-align="center center" layout="row"> | ||
<md-input-container flex> | ||
<label>Quantity</label><input min="0" ng-required="true" ng-model="commodity.co_quantity" type="number"/> | ||
</md-input-container> | ||
|
||
<md-select ng-required="true" ng-model="commodity.un_quantity_unit" placeholder="Unit"> | ||
<md-option ng-value="unit" ng-repeat="unit in units" ng-selected="{{unit.un_unit_name == commodity.un_quantity_unit.un_unit_name}}">{{unit.un_unit_name}}</md-option> | ||
</md-select> | ||
</div> | ||
<div layout-align="center center" layout="row"> | ||
<md-input-container flex> | ||
<label>Unit Price</label> | ||
<input ng-required="true" min="0" ng-model="commodity.co_price" type="number"/> | ||
</md-input-container> | ||
per | ||
<md-select ng-required="true" ng-model="commodity.un_price_unit" placeholder="Unit"> | ||
|
||
<md-option ng-value="unit" ng-repeat="unit in units" ng-selected="{{unit.un_unit_name == commodity.un_price_unit.un_unit_name}}">{{unit.un_unit_name}}</md-option> | ||
</md-select> | ||
</div> | ||
|
||
<md-input-container> | ||
<label>Preferred Payment Option(s)</label> | ||
<input ng-model="commodity.co_payment_preference" type="text"/> | ||
</md-input-container> | ||
|
||
<div layout="row"> | ||
|
||
<md-input-container> | ||
<label>Available Date (yyyy-MM-dd)</label> | ||
<input ng-required="true" ng-model="commodity.co_availability_date" type="date"/> | ||
</md-input-container> | ||
|
||
<md-input-container> | ||
<label>End Date (yyyy-MM-dd)</label> | ||
<input ng-required="true" ng-model="commodity.co_until" type="date"/> | ||
</md-input-container> | ||
</div> | ||
|
||
<md-input-container> | ||
<label>Notes</label> | ||
<input ng-model="commodity.co_notes" type="text"/> | ||
</md-input-container> | ||
|
||
<md-input-container layout="row" layout-sm="column" layout-align="center center"> | ||
<md-button ng-click="editCommodityItem()">Cancel</md-button> | ||
<md-button ng-click="updateCommodity(0)">Update</md-button> | ||
</md-input-container> | ||
</md-content> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Created by matjames007 on 5/14/15. | ||
*/ | ||
var express = require('express'); | ||
var Crop = require('./crop'); | ||
var router = express.Router(); | ||
|
||
dummyfunction = function(req, res) { | ||
res.send("Not Implemented"); | ||
}; | ||
|
||
/** | ||
* End Points relevant to Crop | ||
*/ | ||
router.get('/crops', Crop.findCrops); | ||
router.post('/crops', Crop.batchUpdate); | ||
router.post('/crop', Crop.createCrop); | ||
router.put('/crop/:id', Crop.updateCropById); | ||
|
||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters