Skip to content

Commit

Permalink
Merge branch 'develop' for release 1.0.47
Browse files Browse the repository at this point in the history
  • Loading branch information
vastbinderj committed Nov 25, 2015
2 parents 28856e5 + 2e3641b commit 5b65a15
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 17 deletions.
30 changes: 20 additions & 10 deletions app/scripts/order/controller/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,34 @@ function ($scope, $routeParams, $location, $q, $orderApiService, $dashboardUtils

$scope.statuses = [
{
"value": "new",
"label": "New"
value: 'new',
label: 'New',
isDisabled: true
},
{
"value": "pending",
"label": "Pending"
value: 'pending',
label: 'Pending',
isDisabled: true
},
{
"value": "processed",
"label": "Processed"
value: 'processed',
label: 'Processed',
isDisabled: false
},
{
"value": "completed",
"label": "Completed"
value: 'declined',
label: 'Declined',
isDisabled: true
},
{
"value": "cancelled",
"label": "Cancel Order"
value: 'completed',
label: 'Completed',
isDisabled: false
},
{
value: 'cancelled',
label: 'Cancelled',
isDisabled: false
}
];

Expand Down
16 changes: 11 additions & 5 deletions app/themes/views/order/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,18 @@ <h4>Order Details</h4>
<div class="panel-body">
<div class="">
<label class="">Change status</label>

<select class="form-control"
name="status"
id="status"
ng-model="order.status"
ng-init="order.status"
ng-options="obj.value as obj.label for obj in statuses"></select>
name="status"
id="status"
ng-model="order.status">
<option
ng-repeat="option in statuses"
ng-disabled="option.isDisabled"
value="{{option.value}}">
{{ option.label }}
</option>
</select>
</div>
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions config/ub-prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"useStrict" : "",
"apiUrl" : "https://api.ub.production.ottemo.io",
"mediaPath" : "media/",
"itemsPerPage" : "15"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Dashboard",
"version": "0.9.7",
"description": "Ottemo Administration Dashboard",
"version": "1.0.47",
"description": "Ottemo Administration Dash",
"main": "gulpfile.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit 5b65a15

Please sign in to comment.