Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions www/capture-photo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<!DOCTYPE html>
<!--
Copyright (c) 2012-2016 Adobe Systems Incorporated. All rights reserved.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html lang="en">

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
<!-- This is a wide open CSP declaration. To lock this down for production, see below. -->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" /> -->
<!-- Good default declaration:
* gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
* https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
* Disables use of eval() and inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
* Enable inline JS: add 'unsafe-inline' to default-src
* Enable eval(): add 'unsafe-eval' to default-src
* Create your own at http://cspisawesome.com
-->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-inline' https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *" /> -->
<link href="https://fonts.googleapis.com/css?family=Poppins:400,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/grid.css" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Poppy</title>
</head>

<body>

<div class="app">
<div class="section header white-background">
<div class="container">
<div class="row">
<div class="column large-4 medium-4 small-4 float-left">
<a href="history-of-receipts.html"><img src="images/file-folder.png"></a>
</div>
<div class="column large-4 medium-4 small-4">
<h1>Poppy</h1>
</div>
<div class="column large-4 medium-4 small-4">
<!-- empty column -->
</div>
</div>
</div>
</div>

<div class="section offset">
<div class="container">
<div class="row">
<!-- empty section -->
</div>
</div>
</div>


<div class="section offset">
<div class="container">
<div class="row">
<img class="the-photo" src="">
<!-- <button class="take-photo">Take photo!</button><br> -->
</div>
</div>
</div>

<div class="section offset">
<div class="container">
<div class="row">
<!-- empty section -->
</div>
</div>
</div>

<div class="section footer blue-background">
<div class="container">
<div class="row">
<div class="column large-12 medium-12 small-12">
<!-- <a href="select-corners.html"><img src="images/camera.png"></a> -->
<div class="take-photo"><img src="images/camera.png"></div>
</div>
</div>
</div>
</div>
</div>

<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>

</html>
119 changes: 119 additions & 0 deletions www/categorize-receipt.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<!DOCTYPE html>
<!--
Copyright (c) 2012-2016 Adobe Systems Incorporated. All rights reserved.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html lang="en">

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
<!-- This is a wide open CSP declaration. To lock this down for production, see below. -->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" /> -->
<!-- Good default declaration:
* gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
* https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
* Disables use of eval() and inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
* Enable inline JS: add 'unsafe-inline' to default-src
* Enable eval(): add 'unsafe-eval' to default-src
* Create your own at http://cspisawesome.com
-->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-inline' https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *" /> -->
<link href="https://fonts.googleapis.com/css?family=Poppins:400,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/grid.css" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Poppy</title>
</head>

<body>

<div class="app">
<div class="section header white-background">
<div class="container">
<div class="row">
<div class="column large-4 medium-4 small-4 float-left">
<a href="select-corners.html"><img src="images/left-arrow.png"></a>
</div>
<div class="column large-4 medium-4 small-4">
<h1>Poppy</h1>
</div>
<div class="column large-4 medium-4 small-4">
<!-- empty column -->
</div>
</div>
</div>
</div>

<div class="section offset">
<div class="container">
<div class="row">
<!-- empty section -->
</div>
</div>
</div>

<div class="section">
<div class="container">
<div class="row">
<div class="column large-12 medium-12 small-12">
<form method="POST" action="/formpost">
<div class="row">
<label>Vendor Name</label>
<input type="text" name="name">
</div>

<div class="row">
<label>Date</label>
<input type="date" name="date">
</div>

<!-- submit button via input tag -->
<div class="row submit-button">
<input type="submit" name="submitButton" value="Save">
</div>
</form>
</div>
</div>
</div>
</div>

<!-- double up icon on footer bar as submit button? -->
<div class="section footer blue-background">
<div class="container">
<div class="row">
<div class="column large-12 medium-12 small-12">
<a href="details-of-receipt.html"><img src="images/save.png"></a>
</div>
</div>
</div>
</div>
</div>

<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>

</html>
Loading