Skip to content

Commit 34813e3

Browse files
author
Prashanth Batchu
committed
added bill template json vars. Ready to implement AddBill, Edit/Delete etc.
1 parent c3c435c commit 34813e3

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

billrive-client/app/js/controllers.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ billRive.controller('billController', function($scope, billService) {
55
$scope.friends=billService.getFriends();
66
$scope.groups=billService.getGroups();
77
$scope.payers=billService.getPayers();
8-
$scope.newBill=billService.getBill();
8+
$scope.bill=billService.getBill();
9+
10+
function addBill(){
11+
12+
13+
};
914

1015
// billService.getBills(function(data) {
1116
// $scope.bills = data;

billrive-client/app/js/services.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ var bills = {
177177
// "billFinances": billFinances,
178178
// "groupId": null
179179
// }];
180-
var bill=[{
180+
var bill={
181181
"id": null,
182182
"title": "",
183183
"date": null,
@@ -197,7 +197,7 @@ var bill=[{
197197
"billTotal": null
198198
},
199199
"groupId": null
200-
}];
200+
};
201201

202202
//billFinances Object Structure
203203
var billFinances={

billrive-client/app/partials/addBill.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="span4" style="padding-right:10px; border-right: 1px solid #ccc;">
1010

1111
<label>Bill Total</label>
12-
<input type="text" class="span8" placeholder="100.00">
12+
<input type="text" class="span8" ng-model="bill.billFinances.billTotal" placeholder="100.00">
1313

1414
<label>Date</label>
1515
<div class="control-group input-append">
@@ -62,5 +62,5 @@
6262
</div>
6363
</div>
6464
</div>
65-
{{newBill}}
65+
{{bill}}
6666

billrive-client/app/partials/listBills.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="row">
44
<div class="span8 offset2">-->
55
<div><h4>Bills</h4></div>
6-
<a class="btn btn-success" href="#/addBill"><i class="icon-plus-sign icon-white"></i>&nbsp;Add a Bill</a>
6+
<a class="btn btn-success" href="#/addBill" ng-click="addBill()"><i class="icon-plus-sign icon-white"></i>&nbsp;Add a Bill</a>
77
<div class="input-append pull-right">
88
<input type="search" ng-model="query" class="span2" name="q" autocomplete="off" placeholder="Search" tabindex="1">
99
<button class="btn"><i class="icon-search icon-large"></i> </button>

0 commit comments

Comments
 (0)