summaryrefslogtreecommitdiff
path: root/bak/unused_apps/budget/templates
diff options
context:
space:
mode:
Diffstat (limited to 'bak/unused_apps/budget/templates')
-rw-r--r--bak/unused_apps/budget/templates/budget/base.html35
-rw-r--r--bak/unused_apps/budget/templates/budget/create_cat_form.html26
-rw-r--r--bak/unused_apps/budget/templates/budget/create_form.html26
-rw-r--r--bak/unused_apps/budget/templates/budget/luxpurchase_list.html58
-rw-r--r--bak/unused_apps/budget/templates/budget/update_form.html20
5 files changed, 165 insertions, 0 deletions
diff --git a/bak/unused_apps/budget/templates/budget/base.html b/bak/unused_apps/budget/templates/budget/base.html
new file mode 100644
index 0000000..9d6bfd0
--- /dev/null
+++ b/bak/unused_apps/budget/templates/budget/base.html
@@ -0,0 +1,35 @@
+<html>
+<head>
+ <title>{% block pagetitle %}Luxagraf - Trading{% endblock %}</title>
+ <meta charset="utf-8">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ {%block stylesheet%}<link rel="stylesheet"
+ href="/media/trading.css{%comment%}?{% now "u" %}{%endcomment%}"
+ media="screen">{%endblock%}
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
+<style>
+ select {
+ border: 1px solid #dedddd;
+ border-radius: 4px;
+ padding: 2.2rem 0 0.75rem 0.75rem;
+ width: 96%;
+ font-size: 24px;
+ font-size: 1.5rem;
+ }
+</style>
+ {%block extrahead%}{%endblock%}
+</head>
+ </head>
+ <body>
+ <nav>
+ <span class="nav-item"><a href="{% url 'luxbudget:list' %}">Home</a></span>
+ <span class="nav-item"><a href="{% url 'luxbudget:createcatview' %}">Add Cat</a></span>
+ </nav>
+ {% block content %}
+ {% endblock %}
+ </body>
+ {% block js %}
+ {% endblock %}
+</html>
+
diff --git a/bak/unused_apps/budget/templates/budget/create_cat_form.html b/bak/unused_apps/budget/templates/budget/create_cat_form.html
new file mode 100644
index 0000000..03e996a
--- /dev/null
+++ b/bak/unused_apps/budget/templates/budget/create_cat_form.html
@@ -0,0 +1,26 @@
+{% extends 'budget/base.html' %}
+{% load typogrify_tags %}
+ {% block pagetitle %}Luxagraf - Record Purchase{% endblock %}
+ {% block content %}
+ <form id="id_form" action="{% url 'luxbudget:createcatview' %}" method="post" class="big">{% csrf_token %}
+ {% for field in form %}
+ <fieldset>
+ {{ field.errors }}
+ {% if field.name == 'status'%}
+ <label class="hide" for="id_status">Status:</label>{{ field }}
+ {% else %}
+ {{ field.label_tag }} {{ field }}
+ {% endif %}
+ {% if field.help_text %}
+ <p class="help">{{ field.help_text|safe }}</p>
+ {% endif %}
+ </fieldset>
+{% endfor %}
+ <div class="flex">
+ <input type="submit" name="post" class="btn" value="record purchase"/>
+ </div>
+ </form>
+ {% endblock %}
+
+ {% block js %}
+ {% endblock %}
diff --git a/bak/unused_apps/budget/templates/budget/create_form.html b/bak/unused_apps/budget/templates/budget/create_form.html
new file mode 100644
index 0000000..2d38acf
--- /dev/null
+++ b/bak/unused_apps/budget/templates/budget/create_form.html
@@ -0,0 +1,26 @@
+{% extends 'budget/base.html' %}
+{% load typogrify_tags %}
+ {% block pagetitle %}Luxagraf - Record Purchase{% endblock %}
+ {% block content %}
+ <form id="id_form" action="{% url 'luxbudget:createview' %}" method="post" class="big">{% csrf_token %}
+ {% for field in form %}
+ <fieldset>
+ {{ field.errors }}
+ {% if field.name == 'status'%}
+ <label class="hide" for="id_status">Status:</label>{{ field }}
+ {% else %}
+ {{ field.label_tag }} {{ field }}
+ {% endif %}
+ {% if field.help_text %}
+ <p class="help">{{ field.help_text|safe }}</p>
+ {% endif %}
+ </fieldset>
+{% endfor %}
+ <div class="flex">
+ <input type="submit" name="post" class="btn" value="record purchase"/>
+ </div>
+ </form>
+ {% endblock %}
+
+ {% block js %}
+ {% endblock %}
diff --git a/bak/unused_apps/budget/templates/budget/luxpurchase_list.html b/bak/unused_apps/budget/templates/budget/luxpurchase_list.html
new file mode 100644
index 0000000..c03f14d
--- /dev/null
+++ b/bak/unused_apps/budget/templates/budget/luxpurchase_list.html
@@ -0,0 +1,58 @@
+{% extends 'budget/base.html' %}
+{% load typogrify_tags %}
+ {% block pagetitle %}Luxagraf - Record Purchase{% endblock %}
+ {% block content %}
+ <a href="record" class="btn" >Add New</a>
+ <h3>Recent Purchases</h3>
+ <table>
+ <thead>
+ <tr>
+ <th>Date</th>
+ <th>Store</th>
+ <th>Category</th>
+ <th>Amount</th>
+ </tr>
+ </thead>
+ {% for object in object_list %}
+ <tr>
+ <td><a href="{{object.get_absolute_url}}">{{object.date_recorded|date:"m/j"}}</a></td>
+ <td>{{object.source.name}}</td>
+ <td>{{object.category.name}}</td>
+ <td>${{object.amount}}</td>
+ </tr>
+ {% endfor %}
+ <tr>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="right">{{month}} Total:</td>
+ <td>${{monthly_spending.amount__sum}}</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="right">{{month}} Food Total:</td>
+ <td>${{food_total.amount__sum}}</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="right">{{month}} Lodging Total:</td>
+ <td>${{lodge_total.amount__sum}}</td>
+ </tr>
+ </table>
+
+ <h3>Previous Monthly Spending</h3>
+ {{month_1}}: {{monthly_spending_1.amount__sum}}
+ {{month_2}}: {{monthly_spending_2.amount__sum}}
+ {{month_3}}: {{monthly_spending_3.amount__sum}}
+
+
+ <h3>Spending by Category (Last 3 Months)</h3>
+
+ {{cat.amount__sum}}
+ {% endblock %}
+
+
diff --git a/bak/unused_apps/budget/templates/budget/update_form.html b/bak/unused_apps/budget/templates/budget/update_form.html
new file mode 100644
index 0000000..b19efaa
--- /dev/null
+++ b/bak/unused_apps/budget/templates/budget/update_form.html
@@ -0,0 +1,20 @@
+{% extends 'budget/base.html' %}
+{% load typogrify_tags %}
+{% block content %}
+ <form id="id_form" action="" method="post" class="big">{% csrf_token %}
+ {% for field in form %}
+ <fieldset>
+ {{ field.errors }}
+ {% if field.name == 'status'%}
+ <label class="hide" for="id_status">Status:</label>{{ field }}
+ {% else %}
+ {{ field.label_tag }} {{ field }}
+ {% endif %}
+ {% if field.help_text %}
+ <p class="help">{{ field.help_text|safe }}</p>
+ {% endif %}
+ </fieldset>
+{% endfor %}
+ <input type="submit" name="post" class="btn" value="update purchase"/>
+ </form>
+ {% endblock %}