diff options
Diffstat (limited to 'app/budget/templates')
-rw-r--r-- | app/budget/templates/budget/base.html | 35 | ||||
-rw-r--r-- | app/budget/templates/budget/create_cat_form.html | 26 | ||||
-rw-r--r-- | app/budget/templates/budget/create_form.html | 26 | ||||
-rw-r--r-- | app/budget/templates/budget/luxpurchase_list.html | 58 | ||||
-rw-r--r-- | app/budget/templates/budget/update_form.html | 20 |
5 files changed, 0 insertions, 165 deletions
diff --git a/app/budget/templates/budget/base.html b/app/budget/templates/budget/base.html deleted file mode 100644 index 9d6bfd0..0000000 --- a/app/budget/templates/budget/base.html +++ /dev/null @@ -1,35 +0,0 @@ -<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/app/budget/templates/budget/create_cat_form.html b/app/budget/templates/budget/create_cat_form.html deleted file mode 100644 index 03e996a..0000000 --- a/app/budget/templates/budget/create_cat_form.html +++ /dev/null @@ -1,26 +0,0 @@ -{% 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/app/budget/templates/budget/create_form.html b/app/budget/templates/budget/create_form.html deleted file mode 100644 index 2d38acf..0000000 --- a/app/budget/templates/budget/create_form.html +++ /dev/null @@ -1,26 +0,0 @@ -{% 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/app/budget/templates/budget/luxpurchase_list.html b/app/budget/templates/budget/luxpurchase_list.html deleted file mode 100644 index c03f14d..0000000 --- a/app/budget/templates/budget/luxpurchase_list.html +++ /dev/null @@ -1,58 +0,0 @@ -{% 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> </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/app/budget/templates/budget/update_form.html b/app/budget/templates/budget/update_form.html deleted file mode 100644 index b19efaa..0000000 --- a/app/budget/templates/budget/update_form.html +++ /dev/null @@ -1,20 +0,0 @@ -{% 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 %} |