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
'use strict'; | |
var invoiceFormApp = angular.module('itspInvoiceFormApp', | |
[ | |
'ngRoute', 'invoiceControllersModule' | |
]); | |
var appStart = function($routeProvider) { | |
$routeProvider.when('/invoices', { |
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
'use strict' | |
var invoiceControllersModule = angular.module('invoiceControllersModule', []); | |
invoiceControllersModule.controller('listInvoicesController', ['$scope', function ($scope) { | |
$scope.invoices = []; | |
$scope.error=""; | |
$scope.showInvoiceList=function(){ | |
return true; |
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
<div class="container"> | |
<div class="row"> | |
<div ng-show="showInvoiceList" class="col-md-10 col-sd-3"> | |
<div class="table-responsive"> | |
<table class="table table-striped"> | |
<thead> | |
<th>Date</th> | |
<th>Invoice Reference</th> |
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
invoiceControllersModule.factory('listInvoicesController', ['$scope', function ($scope) { | |
$scope.invoices = []; | |
$scope.error=""; | |
] |
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
<!doctype html> | |
<html lang="en" ng-app="itspInvoiceFormApp"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>iThink SharePoint Invoice System</title> | |
<link rel="stylesheet" type="text/css" href="/bower_components/bootstrap/dist/css/bootstrap.css" /> | |
<link rel="stylesheet" type="text/css" href="/app/css/invoiceformapp.css" /> | |
</head> | |
<body> | |
<div ng-view></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
<div class="container"> | |
<div class="row"> | |
<div class="col-md-4 col-sd-12"> | |
<button class="btn btn-default" type="button" title="Save" ng-click="saveInvoice()">Save</button> | |
| |
<button class="btn" type="button" title="Cancel" ng-click="cancel()">Cancel</button> | |
</div> | |
<div class="col-md-8 col-sd-12"> | |
<span ng-show="status !== ''">{{status}}</span> |
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
<input type="text" ng-model="invoice.reference" required class="form-control" id="invoiceReference" placeholder="Please enter Invoice Reference"> |
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
<select class="form-control"ng-model="invoiceLine.unitType" id="invoiceUnit"> | |
<option ng-repeat="unitOption in config.unitTypes" value="{{unitOption.name}}">{{unitOption.name}}</option> | |
</select> |
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
'use strict'; | |
var invoiceFormApp = angular.module('itspInvoiceFormApp', | |
[ | |
'ngRoute', 'invoiceControllersModule' | |
]); | |
var appStart = function($routeProvider) { | |
$routeProvider.when('/invoices/add', { |
OlderNewer