From 8eba2ce576a8b56c1549dc9792ff99f8dc408335 Mon Sep 17 00:00:00 2001 From: Niklas Brachmann Date: Sun, 16 Aug 2015 17:51:46 +0200 Subject: [PATCH] Renamed cash module to cashonly, as it should be --- cash/templates/cash/index.html | 1 - {cash => cashonly}/__init__.py | 0 {cash => cashonly}/admin.py | 8 +- {cash => cashonly}/api.py | 8 +- {cash => cashonly}/auth.py | 2 +- {cash => cashonly}/formfields.py | 0 .../locale/de/LC_MESSAGES/django.po | 121 +++++++++--------- {cash => cashonly}/management/__init__.py | 0 .../management/commands/__init__.py | 0 .../management/commands/dailydigest.py | 6 +- .../management/commands/debtreminder.py | 4 +- {cash => cashonly}/models.py | 0 {cash => cashonly}/static/images/no-image.png | Bin {cash => cashonly}/static/signin.css | 0 {cash => cashonly}/static/style.css | 0 .../templates/cashonly}/base.html | 4 +- .../templates/cashonly}/buy_confirm.html | 2 +- .../templates/cashonly}/buy_error.html | 2 +- .../templates/cashonly}/buy_thanks.html | 2 +- .../templates/cashonly}/daily_digest.txt | 0 .../templates/cashonly}/debt_reminder.txt | 0 .../cashonly}/includes/product_list.html | 0 .../cashonly}/includes/transaction_list.html | 0 cashonly/templates/cashonly/index.html | 1 + .../templates/cashonly}/login.html | 0 .../templates/cashonly}/product_detail.html | 2 +- .../templates/cashonly}/product_list.html | 4 +- .../templates/cashonly}/transaction_list.html | 4 +- .../templates/cashonly}/usersettings.html | 2 +- .../cashonly}/usersettings_saved.html | 2 +- {cash => cashonly}/tests.py | 0 {cash => cashonly}/urls.py | 16 +-- {cash => cashonly}/version.py | 0 {cash => cashonly}/views.py | 26 ++-- lugcash2/settings.py | 7 +- lugcash2/urls.py | 4 +- 36 files changed, 113 insertions(+), 115 deletions(-) delete mode 100644 cash/templates/cash/index.html rename {cash => cashonly}/__init__.py (100%) rename {cash => cashonly}/admin.py (96%) rename {cash => cashonly}/api.py (98%) rename {cash => cashonly}/auth.py (93%) rename {cash => cashonly}/formfields.py (100%) rename {cash => cashonly}/locale/de/LC_MESSAGES/django.po (70%) rename {cash => cashonly}/management/__init__.py (100%) rename {cash => cashonly}/management/commands/__init__.py (100%) rename {cash => cashonly}/management/commands/dailydigest.py (96%) rename {cash => cashonly}/management/commands/debtreminder.py (92%) rename {cash => cashonly}/models.py (100%) rename {cash => cashonly}/static/images/no-image.png (100%) rename {cash => cashonly}/static/signin.css (100%) rename {cash => cashonly}/static/style.css (100%) rename {cash/templates/cash => cashonly/templates/cashonly}/base.html (95%) rename {cash/templates/cash => cashonly/templates/cashonly}/buy_confirm.html (96%) rename {cash/templates/cash => cashonly/templates/cashonly}/buy_error.html (89%) rename {cash/templates/cash => cashonly/templates/cashonly}/buy_thanks.html (88%) rename {cash/templates/cash => cashonly/templates/cashonly}/daily_digest.txt (100%) rename {cash/templates/cash => cashonly/templates/cashonly}/debt_reminder.txt (100%) rename {cash/templates/cash => cashonly/templates/cashonly}/includes/product_list.html (100%) rename {cash/templates/cash => cashonly/templates/cashonly}/includes/transaction_list.html (100%) create mode 100644 cashonly/templates/cashonly/index.html rename {cash/templates/cash => cashonly/templates/cashonly}/login.html (100%) rename {cash/templates/cash => cashonly/templates/cashonly}/product_detail.html (90%) rename {cash/templates/cash => cashonly/templates/cashonly}/product_list.html (77%) rename {cash/templates/cash => cashonly/templates/cashonly}/transaction_list.html (91%) rename {cash/templates/cash => cashonly/templates/cashonly}/usersettings.html (98%) rename {cash/templates/cash => cashonly/templates/cashonly}/usersettings_saved.html (90%) rename {cash => cashonly}/tests.py (100%) rename {cash => cashonly}/urls.py (57%) rename {cash => cashonly}/version.py (100%) rename {cash => cashonly}/views.py (87%) diff --git a/cash/templates/cash/index.html b/cash/templates/cash/index.html deleted file mode 100644 index 0cb28e1..0000000 --- a/cash/templates/cash/index.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "cash/base.html" %} diff --git a/cash/__init__.py b/cashonly/__init__.py similarity index 100% rename from cash/__init__.py rename to cashonly/__init__.py diff --git a/cash/admin.py b/cashonly/admin.py similarity index 96% rename from cash/admin.py rename to cashonly/admin.py index 8687aab..d844933 100644 --- a/cash/admin.py +++ b/cashonly/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin -from cash.models import * -from cash.formfields import DigitField +from cashonly.models import * +from cashonly.formfields import DigitField from django import forms from django.template.defaultfilters import escape from django.core.urlresolvers import reverse @@ -48,7 +48,7 @@ class AccountAdmin(admin.ModelAdmin): def transaction_link(self, account): return '%s' % \ - (reverse("admin:cash_transaction_changelist"), account.id, + (reverse("admin:cashonly_transaction_changelist"), account.id, _('Transactions')) transaction_link.short_description = ugettext_lazy('Transaction link') @@ -82,7 +82,7 @@ class AccountAdmin(admin.ModelAdmin): 'last': request.user.last_name} if comment is not None and len(comment) > 0: desc += ' (%s)' % (comment) - obj.change_credit(amount, subject, desc) + obj.change_credit(aount, subject, desc) # Make sure the object is saved in any case obj.save() diff --git a/cash/api.py b/cashonly/api.py similarity index 98% rename from cash/api.py rename to cashonly/api.py index ad48448..c31e928 100644 --- a/cash/api.py +++ b/cashonly/api.py @@ -1,4 +1,4 @@ -from cash.models import * +from cashonly.models import * from django.http import HttpResponse from django.contrib.auth import authenticate from django.views.decorators.csrf import csrf_exempt @@ -178,7 +178,7 @@ def cashapi(request): elif action == 'buy_items': s = check_session(data) - + shopping_list = {} try: for item in data['items']: @@ -206,7 +206,7 @@ def cashapi(request): treasurer = User.objects.get(pk=s['userid']) - if not treasurer.has_perm('cash.change_account'): + if not treasurer.has_perm('cashonly.change_account'): raise ApiError(ERR_USER_NOT_AUTHORIZED) try: @@ -248,5 +248,5 @@ def cashapi(request): 'api_version': API_VERSION} print ret - + return HttpResponse(json.dumps(ret)) diff --git a/cash/auth.py b/cashonly/auth.py similarity index 93% rename from cash/auth.py rename to cashonly/auth.py index edcca89..268eecf 100644 --- a/cash/auth.py +++ b/cashonly/auth.py @@ -1,5 +1,5 @@ from django.contrib.auth.models import User -from cash.models import Account +from cashonly.models import Account class CashBackend(object): def authenticate(self, card_number=None, pin=None): diff --git a/cash/formfields.py b/cashonly/formfields.py similarity index 100% rename from cash/formfields.py rename to cashonly/formfields.py diff --git a/cash/locale/de/LC_MESSAGES/django.po b/cashonly/locale/de/LC_MESSAGES/django.po similarity index 70% rename from cash/locale/de/LC_MESSAGES/django.po rename to cashonly/locale/de/LC_MESSAGES/django.po index 4ea52ad..5001852 100644 --- a/cash/locale/de/LC_MESSAGES/django.po +++ b/cashonly/locale/de/LC_MESSAGES/django.po @@ -1,7 +1,6 @@ -# German language file for django cash app. +# German language file for django cashonly app. # Copyright (C) 2013 Niklas Brachmann -# This file is distributed under the same license as the cash package. -# Niklas Brachmann , 2013. +# This file is distributed under the same license as the cashonly package. # #, fuzzy msgid "" @@ -195,183 +194,183 @@ msgstr "Kontoauszug" msgid "Debt Reminder" msgstr "Schuldenerinnerung" -#: templates/cash/base.html:22 templates/cash/buy_confirm.html:17 -#: templates/cash/product_detail.html:11 +#: templates/cashonly/base.html:22 templates/cashonly/buy_confirm.html:17 +#: templates/cashonly/product_detail.html:11 msgid "Name" msgstr "Name" -#: templates/cash/base.html:24 templates/cash/login.html:25 +#: templates/cashonly/base.html:24 templates/cashonly/login.html:25 msgid "Username" msgstr "Benutzername" -#: templates/cash/base.html:25 +#: templates/cashonly/base.html:25 msgid "Credit" msgstr "Guthaben" -#: templates/cash/base.html:27 +#: templates/cashonly/base.html:27 msgid "Warning!" msgstr "Achtung!" -#: templates/cash/base.html:27 +#: templates/cashonly/base.html:27 #, python-format msgid "Only %(debtlimitamount)s € until reaching the debt limit." msgstr "" "Nur noch %(debtlimitamount)s € bis zum Erreichen des " "Schuldenlimits." -#: templates/cash/base.html:63 +#: templates/cashonly/base.html:63 msgid "Overview" msgstr "Übersicht" -#: templates/cash/base.html:64 templates/cash/includes/product_list.html:12 +#: templates/cashonly/base.html:64 templates/cashonly/includes/product_list.html:12 msgid "Buy" msgstr "Kaufen" -#: templates/cash/base.html:65 +#: templates/cashonly/base.html:65 msgctxt "monthly staement" msgid "Transaction list" msgstr "Kontoauszug" -#: templates/cash/base.html:66 templates/cash/usersettings.html:29 -#: templates/cash/usersettings_saved.html:6 +#: templates/cashonly/base.html:66 templates/cashonly/usersettings.html:29 +#: templates/cashonly/usersettings_saved.html:6 msgid "Preferences" msgstr "Einstellungen" -#: templates/cash/base.html:68 +#: templates/cashonly/base.html:68 msgid "Administration" msgstr "Administration" -#: templates/cash/base.html:80 +#: templates/cashonly/base.html:80 msgid "Logout" msgstr "Abmelden" -#: templates/cash/base.html:92 +#: templates/cashonly/base.html:92 #, python-format msgid "Welcome, %(firstname)s!" msgstr "Herzlich willkommen, %(firstname)s!" -#: templates/cash/base.html:98 +#: templates/cashonly/base.html:98 msgid "Account information" msgstr "Kontoinformationen" -#: templates/cash/base.html:102 +#: templates/cashonly/base.html:102 msgid "Username:" msgstr "Benutzername:" -#: templates/cash/base.html:104 +#: templates/cashonly/base.html:104 msgid "Full name:" msgstr "Realname:" -#: templates/cash/base.html:106 +#: templates/cashonly/base.html:106 msgid "E-Mail address:" msgstr "E-Mail Adresse:" -#: templates/cash/base.html:108 +#: templates/cashonly/base.html:108 msgid "Credit:" msgstr "Guthaben:" -#: templates/cash/base.html:117 +#: templates/cashonly/base.html:117 msgid "Last purchased products" msgstr "Zuletzt gekaufte Produkte" -#: templates/cash/base.html:127 +#: templates/cashonly/base.html:127 msgid "Your transactions in the last 12 hours" msgstr "Transaktionen in den vergangenen 12 Stunden" -#: templates/cash/base.html:133 +#: templates/cashonly/base.html:133 msgid "There where no transactions in your account in the last 12 hours." msgstr "In den vergangenen 12 Stunden wurden keine Transaktionen durchgeführt." -#: templates/cash/buy_confirm.html:8 templates/cash/buy_error.html:8 -#: templates/cash/buy_thanks.html:8 +#: templates/cashonly/buy_confirm.html:8 templates/cashonly/buy_error.html:8 +#: templates/cashonly/buy_thanks.html:8 msgid "Buy product" msgstr "Produkt kaufen" -#: templates/cash/buy_confirm.html:13 +#: templates/cashonly/buy_confirm.html:13 msgid "Confirm purchase." msgstr "Einkauf bestätigen." -#: templates/cash/buy_confirm.html:18 templates/cash/product_detail.html:12 +#: templates/cashonly/buy_confirm.html:18 templates/cashonly/product_detail.html:12 msgid "Price" msgstr "Preis" -#: templates/cash/buy_confirm.html:19 templates/cash/product_detail.html:13 +#: templates/cashonly/buy_confirm.html:19 templates/cashonly/product_detail.html:13 msgid "Category" msgstr "Kategorie" -#: templates/cash/buy_confirm.html:22 +#: templates/cashonly/buy_confirm.html:22 msgid "Do you really want to buy this product?" msgstr "Möchtest du dieses Produkt wirklich kaufen?" -#: templates/cash/buy_confirm.html:23 templates/cash/buy_confirm.html.py:24 +#: templates/cashonly/buy_confirm.html:23 templates/cashonly/buy_confirm.html.py:24 msgid "Yes" msgstr "Ja" -#: templates/cash/buy_confirm.html:25 +#: templates/cashonly/buy_confirm.html:25 msgid "No" msgstr "Nein" -#: templates/cash/buy_error.html:11 +#: templates/cashonly/buy_error.html:11 msgid "You cannot buy this product, as the debt limit has been reached." msgstr "" "Du kannst dieses Produkt nicht kaufen, da das Schuldenlimit erreicht wurde." -#: templates/cash/buy_error.html:14 templates/cash/buy_thanks.html:14 -#: templates/cash/usersettings_saved.html:11 +#: templates/cashonly/buy_error.html:14 templates/cashonly/buy_thanks.html:14 +#: templates/cashonly/usersettings_saved.html:11 msgid "Back" msgstr "Zurück" -#: templates/cash/buy_thanks.html:11 +#: templates/cashonly/buy_thanks.html:11 msgid "Thanks for your purchase!" msgstr "Danke für deinen Einkauf." -#: templates/cash/login.html:24 +#: templates/cashonly/login.html:24 msgid "Please sign in" msgstr "Bitte anmelden." -#: templates/cash/login.html:26 +#: templates/cashonly/login.html:26 msgid "Password" msgstr "Passwort" -#: templates/cash/login.html:27 +#: templates/cashonly/login.html:27 msgid "Sign in" msgstr "Anmelden" -#: templates/cash/product_detail.html:8 +#: templates/cashonly/product_detail.html:8 msgid "Product details" msgstr "Produktdetails" -#: templates/cash/product_list.html:10 +#: templates/cashonly/product_list.html:10 msgid "All categories" msgstr "Alle Kategorien" -#: templates/cash/transaction_list.html:7 +#: templates/cashonly/transaction_list.html:7 msgctxt "monthly statement" msgid "Transaction list" msgstr "Kontoauszug" -#: templates/cash/transaction_list.html:13 +#: templates/cashonly/transaction_list.html:13 msgid "less detailed" msgstr "weniger Details" -#: templates/cash/transaction_list.html:15 +#: templates/cashonly/transaction_list.html:15 msgid "more detailed" msgstr "mehr Details" -#: templates/cash/transaction_list.html:24 +#: templates/cashonly/transaction_list.html:24 #, python-format msgid "Page %(current)s of %(num)s" msgstr "Seite %(current)s von %(num)s" -#: templates/cash/transaction_list.html:30 +#: templates/cashonly/transaction_list.html:30 msgid "No transactions have been made, yet." msgstr "Es wurden noch keine Transaktionen durchgeführt." -#: templates/cash/usersettings.html:34 +#: templates/cashonly/usersettings.html:34 msgid "Daily digest" msgstr "Tägliche Zusammenfassung" -#: templates/cash/usersettings.html:36 +#: templates/cashonly/usersettings.html:36 msgid "" "The digest will be sent nightly, as long as there were transaction made in " "the past 24 hours." @@ -379,15 +378,15 @@ msgstr "" "Der Kontoauszug wird nachts versandt, sofern in den vergangenen 24 Stunden " "Kontobewegungen stattgefunden haben." -#: templates/cash/usersettings.html:40 templates/cash/usersettings.html:60 +#: templates/cashonly/usersettings.html:40 templates/cashonly/usersettings.html:60 msgid "Save" msgstr "" -#: templates/cash/usersettings.html:52 +#: templates/cashonly/usersettings.html:52 msgid "Change PIN" msgstr "PIN ändern" -#: templates/cash/usersettings.html:54 +#: templates/cashonly/usersettings.html:54 msgid "" "The PIN is asked for after scanning the member's ID card. If this field is " "left blank, no PIN will be needed to log in." @@ -395,39 +394,39 @@ msgstr "" "Der PIN wird nach dem Einscannen des Mitgliederausweises abgefragt. Wenn das " "Feld leergelassen wird, wird kein PIN abgefragt." -#: templates/cash/usersettings.html:75 templates/cash/usersettings.html:82 +#: templates/cashonly/usersettings.html:75 templates/cashonly/usersettings.html:82 msgid "Clear PIN" msgstr "PIN löschen" -#: templates/cash/usersettings.html:78 +#: templates/cashonly/usersettings.html:78 msgid "Do you really want to clear your PIN?" msgstr "Möchtest du deinen PIN wirklich löschen?" -#: templates/cash/usersettings.html:81 +#: templates/cashonly/usersettings.html:81 msgid "Cancel" msgstr "Abbrechen" -#: templates/cash/usersettings_saved.html:9 +#: templates/cashonly/usersettings_saved.html:9 msgid "The settings have been saved successfully!" msgstr "Die Einstellungen wurden erfolgreich gespeichert." -#: templates/cash/includes/product_list.html:8 +#: templates/cashonly/includes/product_list.html:8 msgid "Product image" msgstr "Produktbild" -#: templates/cash/includes/transaction_list.html:7 +#: templates/cashonly/includes/transaction_list.html:7 msgid "Date" msgstr "Datum" -#: templates/cash/includes/transaction_list.html:8 +#: templates/cashonly/includes/transaction_list.html:8 msgid "Subject" msgstr "Betreff" -#: templates/cash/includes/transaction_list.html:9 +#: templates/cashonly/includes/transaction_list.html:9 msgid "Description" msgstr "Beschreibung" -#: templates/cash/includes/transaction_list.html:10 +#: templates/cashonly/includes/transaction_list.html:10 msgctxt "money" msgid "amount" msgstr "Betrag" diff --git a/cash/management/__init__.py b/cashonly/management/__init__.py similarity index 100% rename from cash/management/__init__.py rename to cashonly/management/__init__.py diff --git a/cash/management/commands/__init__.py b/cashonly/management/commands/__init__.py similarity index 100% rename from cash/management/commands/__init__.py rename to cashonly/management/commands/__init__.py diff --git a/cash/management/commands/dailydigest.py b/cashonly/management/commands/dailydigest.py similarity index 96% rename from cash/management/commands/dailydigest.py rename to cashonly/management/commands/dailydigest.py index 6ff383f..694a9d1 100644 --- a/cash/management/commands/dailydigest.py +++ b/cashonly/management/commands/dailydigest.py @@ -1,4 +1,4 @@ -from cash.models import * +from cashonly.models import * from django.conf import settings from django.core.mail import send_mass_mail from django.core.management.base import NoArgsCommand, CommandError @@ -20,7 +20,7 @@ class Command(NoArgsCommand): def handle_noargs(self, **options): translation.activate('de') - tpl = get_template('cash/daily_digest.txt') + tpl = get_template('cashonly/daily_digest.txt') messages = [] for a in Account.objects.all(): @@ -29,7 +29,7 @@ class Command(NoArgsCommand): 'credit': a.credit, 'range': RANGE, 'url': USERSETTINGS_URL} - + transactions = Transaction.objects.filter(account = a) \ .filter(timestamp__gte=(datetime.datetime.now() - datetime.timedelta(hours = RANGE))) diff --git a/cash/management/commands/debtreminder.py b/cashonly/management/commands/debtreminder.py similarity index 92% rename from cash/management/commands/debtreminder.py rename to cashonly/management/commands/debtreminder.py index aa9d298..09a10f9 100644 --- a/cash/management/commands/debtreminder.py +++ b/cashonly/management/commands/debtreminder.py @@ -1,5 +1,5 @@ -from cash.models import * +from cashonly.models import * from django.conf import settings from django.core.mail import send_mass_mail from django.core.management.base import NoArgsCommand @@ -14,7 +14,7 @@ class Command(NoArgsCommand): def handle_noargs(self, **options): translation.activate('de') - tpl = get_template('cash/debt_reminder.txt') + tpl = get_template('cashonly/debt_reminder.txt') messages = [] for a in Account.objects.all(): diff --git a/cash/models.py b/cashonly/models.py similarity index 100% rename from cash/models.py rename to cashonly/models.py diff --git a/cash/static/images/no-image.png b/cashonly/static/images/no-image.png similarity index 100% rename from cash/static/images/no-image.png rename to cashonly/static/images/no-image.png diff --git a/cash/static/signin.css b/cashonly/static/signin.css similarity index 100% rename from cash/static/signin.css rename to cashonly/static/signin.css diff --git a/cash/static/style.css b/cashonly/static/style.css similarity index 100% rename from cash/static/style.css rename to cashonly/static/style.css diff --git a/cash/templates/cash/base.html b/cashonly/templates/cashonly/base.html similarity index 95% rename from cash/templates/cash/base.html rename to cashonly/templates/cashonly/base.html index 41fbb8c..a17f18e 100644 --- a/cash/templates/cash/base.html +++ b/cashonly/templates/cashonly/base.html @@ -116,7 +116,7 @@ {% trans "Last purchased products" %}
- {% include "cash/includes/product_list.html" with products=latest_purchases class="col-xs-6 col-md-4" only %} + {% include "cashonly/includes/product_list.html" with products=latest_purchases class="col-xs-6 col-md-4" only %}
@@ -126,7 +126,7 @@ {% trans "Your transactions in the last 12 hours" %} {% if latest_transactions %} - {% include "cash/includes/transaction_list.html" with transactions=latest_transactions only %} + {% include "cashonly/includes/transaction_list.html" with transactions=latest_transactions only %} {% else %}
{% blocktrans %}There where no transactions in your account in the last 12 hours.{% endblocktrans %} diff --git a/cash/templates/cash/buy_confirm.html b/cashonly/templates/cashonly/buy_confirm.html similarity index 96% rename from cash/templates/cash/buy_confirm.html rename to cashonly/templates/cashonly/buy_confirm.html index fd7b4a8..69619a3 100644 --- a/cash/templates/cash/buy_confirm.html +++ b/cashonly/templates/cashonly/buy_confirm.html @@ -1,4 +1,4 @@ -{% extends "cash/base.html" %} +{% extends "cashonly/base.html" %} {% load i18n %} diff --git a/cash/templates/cash/buy_error.html b/cashonly/templates/cashonly/buy_error.html similarity index 89% rename from cash/templates/cash/buy_error.html rename to cashonly/templates/cashonly/buy_error.html index 79cd55b..82a314c 100644 --- a/cash/templates/cash/buy_error.html +++ b/cashonly/templates/cashonly/buy_error.html @@ -1,4 +1,4 @@ -{% extends "cash/base.html" %} +{% extends "cashonly/base.html" %} {% load i18n %} diff --git a/cash/templates/cash/buy_thanks.html b/cashonly/templates/cashonly/buy_thanks.html similarity index 88% rename from cash/templates/cash/buy_thanks.html rename to cashonly/templates/cashonly/buy_thanks.html index 1e4aa23..9a013ea 100644 --- a/cash/templates/cash/buy_thanks.html +++ b/cashonly/templates/cashonly/buy_thanks.html @@ -1,4 +1,4 @@ -{% extends "cash/base.html" %} +{% extends "cashonly/base.html" %} {% load i18n %} diff --git a/cash/templates/cash/daily_digest.txt b/cashonly/templates/cashonly/daily_digest.txt similarity index 100% rename from cash/templates/cash/daily_digest.txt rename to cashonly/templates/cashonly/daily_digest.txt diff --git a/cash/templates/cash/debt_reminder.txt b/cashonly/templates/cashonly/debt_reminder.txt similarity index 100% rename from cash/templates/cash/debt_reminder.txt rename to cashonly/templates/cashonly/debt_reminder.txt diff --git a/cash/templates/cash/includes/product_list.html b/cashonly/templates/cashonly/includes/product_list.html similarity index 100% rename from cash/templates/cash/includes/product_list.html rename to cashonly/templates/cashonly/includes/product_list.html diff --git a/cash/templates/cash/includes/transaction_list.html b/cashonly/templates/cashonly/includes/transaction_list.html similarity index 100% rename from cash/templates/cash/includes/transaction_list.html rename to cashonly/templates/cashonly/includes/transaction_list.html diff --git a/cashonly/templates/cashonly/index.html b/cashonly/templates/cashonly/index.html new file mode 100644 index 0000000..3cbf89a --- /dev/null +++ b/cashonly/templates/cashonly/index.html @@ -0,0 +1 @@ +{% extends "cashonly/base.html" %} diff --git a/cash/templates/cash/login.html b/cashonly/templates/cashonly/login.html similarity index 100% rename from cash/templates/cash/login.html rename to cashonly/templates/cashonly/login.html diff --git a/cash/templates/cash/product_detail.html b/cashonly/templates/cashonly/product_detail.html similarity index 90% rename from cash/templates/cash/product_detail.html rename to cashonly/templates/cashonly/product_detail.html index 81966b2..1c6184f 100644 --- a/cash/templates/cash/product_detail.html +++ b/cashonly/templates/cashonly/product_detail.html @@ -1,4 +1,4 @@ -{% extends "cash/base.html" %} +{% extends "cashonly/base.html" %} {% load i18n %} diff --git a/cash/templates/cash/product_list.html b/cashonly/templates/cashonly/product_list.html similarity index 77% rename from cash/templates/cash/product_list.html rename to cashonly/templates/cashonly/product_list.html index 50aa357..52cee30 100644 --- a/cash/templates/cash/product_list.html +++ b/cashonly/templates/cashonly/product_list.html @@ -1,4 +1,4 @@ -{% extends "cash/base.html" %} +{% extends "cashonly/base.html" %} {% load static %} {% load i18n %} @@ -15,6 +15,6 @@
-{% include "cash/includes/product_list.html" with products=product_list only %} +{% include "cashonly/includes/product_list.html" with products=product_list only %} {% endblock %} diff --git a/cash/templates/cash/transaction_list.html b/cashonly/templates/cashonly/transaction_list.html similarity index 91% rename from cash/templates/cash/transaction_list.html rename to cashonly/templates/cashonly/transaction_list.html index eae438f..ff4710e 100644 --- a/cash/templates/cash/transaction_list.html +++ b/cashonly/templates/cashonly/transaction_list.html @@ -1,4 +1,4 @@ -{% extends "cash/base.html" %} +{% extends "cashonly/base.html" %} {% load i18n %} @@ -16,7 +16,7 @@
-{% include "cash/includes/transaction_list.html" with transactions=transaction_list only %} +{% include "cashonly/includes/transaction_list.html" with transactions=transaction_list only %}