mirror of https://github.com/snachodog/mybuddy.git
Rename project Baby Buddy.
This commit is contained in:
parent
2ca120b83f
commit
e45101b75c
|
@ -8,5 +8,5 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
# static files
|
# static files
|
||||||
/babyblotter/static
|
/babybuddy/static
|
||||||
/static
|
/static
|
||||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import unicode_literals
|
||||||
from rest_framework.permissions import DjangoModelPermissions
|
from rest_framework.permissions import DjangoModelPermissions
|
||||||
|
|
||||||
|
|
||||||
class BabyBlotterDjangoModelPermissions(DjangoModelPermissions):
|
class BabyBuddyDjangoModelPermissions(DjangoModelPermissions):
|
||||||
perms_map = {
|
perms_map = {
|
||||||
'GET': ['%(app_label)s.view_%(model_name)s'],
|
'GET': ['%(app_label)s.view_%(model_name)s'],
|
||||||
'OPTIONS': [],
|
'OPTIONS': [],
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
/* Baby Blotter
|
|
||||||
*
|
|
||||||
* Default namespace for the Baby Blotter app.
|
|
||||||
*/
|
|
||||||
if (typeof jQuery === 'undefined') {
|
|
||||||
throw new Error('Baby Blotter requires jQuery.')
|
|
||||||
}
|
|
||||||
|
|
||||||
var BabyBlotter = function () {
|
|
||||||
var BabyBlotter = {};
|
|
||||||
return BabyBlotter;
|
|
||||||
}();
|
|
|
@ -1,9 +0,0 @@
|
||||||
{% extends "admin/base.html" %}
|
|
||||||
|
|
||||||
{% block title %}{{ title }} | Baby Blotter Admin{% endblock %}
|
|
||||||
|
|
||||||
{% block branding %}
|
|
||||||
<h1 id="site-name"><a href="{% url 'admin:index' %}">Baby Blotter Admin</a></h1>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block nav-global %}{% endblock %}
|
|
|
@ -35,7 +35,7 @@ class Command(BaseCommand):
|
||||||
self.stdout.write(self.style.SUCCESS('Database flushed.'))
|
self.stdout.write(self.style.SUCCESS('Database flushed.'))
|
||||||
|
|
||||||
for config in apps.app_configs.values():
|
for config in apps.app_configs.values():
|
||||||
if path.split(path.split(config.path)[0])[1] == 'babyblotter':
|
if path.split(path.split(config.path)[0])[1] == 'babybuddy':
|
||||||
migrate = Migrate()
|
migrate = Migrate()
|
||||||
options['app_label'] = config.name
|
options['app_label'] = config.name
|
||||||
options['migration_name'] = 'zero'
|
options['migration_name'] = 'zero'
|
|
@ -15,7 +15,7 @@ BASE_DIR = os.path.dirname(
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'api',
|
'api',
|
||||||
'babyblotter',
|
'babybuddy',
|
||||||
'core',
|
'core',
|
||||||
'dashboard',
|
'dashboard',
|
||||||
'reports',
|
'reports',
|
||||||
|
@ -48,7 +48,7 @@ MIDDLEWARE = [
|
||||||
# URL dispatcher
|
# URL dispatcher
|
||||||
# https://docs.djangoproject.com/en/1.11/topics/http/urls/
|
# https://docs.djangoproject.com/en/1.11/topics/http/urls/
|
||||||
|
|
||||||
ROOT_URLCONF = 'babyblotter.urls'
|
ROOT_URLCONF = 'babybuddy.urls'
|
||||||
|
|
||||||
|
|
||||||
# Templates
|
# Templates
|
||||||
|
@ -74,7 +74,7 @@ TEMPLATES = [
|
||||||
# WGSI
|
# WGSI
|
||||||
# https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
|
# https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
|
||||||
|
|
||||||
WSGI_APPLICATION = 'babyblotter.wsgi.application'
|
WSGI_APPLICATION = 'babybuddy.wsgi.application'
|
||||||
|
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
|
@ -114,7 +114,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||||
|
|
||||||
REST_FRAMEWORK = {
|
REST_FRAMEWORK = {
|
||||||
'DEFAULT_PERMISSION_CLASSES': [
|
'DEFAULT_PERMISSION_CLASSES': [
|
||||||
'api.permissions.BabyBlotterDjangoModelPermissions'
|
'api.permissions.BabyBuddyDjangoModelPermissions'
|
||||||
],
|
],
|
||||||
'DEFAULT_RENDERER_CLASSES': (
|
'DEFAULT_RENDERER_CLASSES': (
|
||||||
'rest_framework.renderers.JSONRenderer',
|
'rest_framework.renderers.JSONRenderer',
|
|
@ -0,0 +1,12 @@
|
||||||
|
/* Baby Buddy
|
||||||
|
*
|
||||||
|
* Default namespace for the Baby Buddy app.
|
||||||
|
*/
|
||||||
|
if (typeof jQuery === 'undefined') {
|
||||||
|
throw new Error('Baby Buddy requires jQuery.')
|
||||||
|
}
|
||||||
|
|
||||||
|
var BabyBuddy = function () {
|
||||||
|
var BabyBuddy = {};
|
||||||
|
return BabyBuddy;
|
||||||
|
}();
|
|
@ -1,3 +1,3 @@
|
||||||
@import '../../../node_modules/bootstrap/scss/functions';
|
@import '../../../node_modules/bootstrap/scss/functions';
|
||||||
|
|
||||||
// Baby Blotter site-wide custom functions.
|
// Baby Buddy site-wide custom functions.
|
|
@ -1,4 +1,4 @@
|
||||||
// Baby Blotter site-wide custom styles.
|
// Baby Buddy site-wide custom styles.
|
||||||
|
|
||||||
// Temporary workaround. See: https://github.com/twbs/bootstrap/issues/23553
|
// Temporary workaround. See: https://github.com/twbs/bootstrap/issues/23553
|
||||||
.dropdown-menu-right {
|
.dropdown-menu-right {
|
|
@ -1,3 +1,3 @@
|
||||||
@import '../../../node_modules/bootstrap/scss/mixins';
|
@import '../../../node_modules/bootstrap/scss/mixins';
|
||||||
|
|
||||||
// Baby Blotter site-wide custom mixins.
|
// Baby Buddy site-wide custom mixins.
|
|
@ -2,4 +2,4 @@
|
||||||
@import '../../../node_modules/bootstrap/scss/variables';
|
@import '../../../node_modules/bootstrap/scss/variables';
|
||||||
@import 'themes/blueorange';
|
@import 'themes/blueorange';
|
||||||
|
|
||||||
// Baby Blotter site-wide variables.
|
// Baby Buddy site-wide variables.
|
|
@ -0,0 +1,9 @@
|
||||||
|
{% extends "admin/base.html" %}
|
||||||
|
|
||||||
|
{% block title %}{{ title }} | Baby Buddy Admin{% endblock %}
|
||||||
|
|
||||||
|
{% block branding %}
|
||||||
|
<h1 id="site-name"><a href="{% url 'admin:index' %}">Baby Buddy Admin</a></h1>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block nav-global %}{% endblock %}
|
|
@ -6,13 +6,13 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>{% block title %}{% endblock %} | Baby Blotter</title>
|
<title>{% block title %}{% endblock %} | Baby Buddy</title>
|
||||||
{% if debug %}
|
{% if debug %}
|
||||||
<link rel="stylesheet" href="{% static "babyblotter/css/app.css" %}" />
|
<link rel="stylesheet" href="{% static "babybuddy/css/app.css" %}" />
|
||||||
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.css" %}" />
|
<link rel="stylesheet" href="{% static "babybuddy/css/vendor.css" %}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="stylesheet" href="{% static "babyblotter/css/app.min.css" %}" />
|
<link rel="stylesheet" href="{% static "babybuddy/css/app.min.css" %}" />
|
||||||
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.min.css" %}" />
|
<link rel="stylesheet" href="{% static "babybuddy/css/vendor.min.css" %}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body style="padding-top: 3rem;">
|
<body style="padding-top: 3rem;">
|
||||||
|
@ -31,11 +31,11 @@
|
||||||
{% block page %}{% endblock %}
|
{% block page %}{% endblock %}
|
||||||
|
|
||||||
{% if debug %}
|
{% if debug %}
|
||||||
<script src="{% static "babyblotter/js/vendor.js" %}"></script>
|
<script src="{% static "babybuddy/js/vendor.js" %}"></script>
|
||||||
<script src="{% static "babyblotter/js/app.js" %}"></script>
|
<script src="{% static "babybuddy/js/app.js" %}"></script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<script src="{% static "babyblotter/js/vendor.min.js" %}"></script>
|
<script src="{% static "babybuddy/js/vendor.min.js" %}"></script>
|
||||||
<script src="{% static "babyblotter/js/app.min.js" %}"></script>
|
<script src="{% static "babybuddy/js/app.min.js" %}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% block javascript %}{% endblock %}
|
{% block javascript %}{% endblock %}
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends 'babyblotter/base.html' %}
|
{% extends 'babybuddy/base.html' %}
|
||||||
{% load timers %}
|
{% load timers %}
|
||||||
|
|
||||||
{% block nav %}
|
{% block nav %}
|
||||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
||||||
<a class="navbar-brand" href="/"><span class="text-info">Baby</span> Blotter</a>
|
<a class="navbar-brand" href="/"><span class="text-info">Baby</span> Buddy</a>
|
||||||
|
|
||||||
<div class="d-lg-none d-md-none ml-auto p-0 mr-2">
|
<div class="d-lg-none d-md-none ml-auto p-0 mr-2">
|
||||||
<a class="text-success mr-2" href="{% url 'timer-add-quick' %}"><i class="icon icon-2x icon-timer" aria-hidden="true"></i></a>
|
<a class="text-success mr-2" href="{% url 'timer-add-quick' %}"><i class="icon icon-2x icon-timer" aria-hidden="true"></i></a>
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/nav-dropdown.html' %}
|
{% extends 'babybuddy/nav-dropdown.html' %}
|
||||||
{% load static timers %}
|
{% load static timers %}
|
||||||
|
|
||||||
{% block page %}
|
{% block page %}
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends "babyblotter/base.html" %}
|
{% extends "babybuddy/base.html" %}
|
||||||
{% load static widget_tweaks %}
|
{% load static widget_tweaks %}
|
||||||
|
|
||||||
{% block breadcrumb_nav %}{% endblock %}
|
{% block breadcrumb_nav %}{% endblock %}
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
{% block page %}
|
{% block page %}
|
||||||
<div id="view-{{ request.resolver_match.view_name }}" class="container">
|
<div id="view-{{ request.resolver_match.view_name }}" class="container">
|
||||||
<div class="text-center mb-4">
|
<div class="text-center mb-4">
|
||||||
<h1 class="display-3 mb-3"><span class="text-info">Baby</span> Blotter</h1>
|
<h1 class="display-3 mb-3"><span class="text-info">Baby</span> Buddy</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-light p-4 rounded text-dark">
|
<div class="bg-light p-4 rounded text-dark">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
|
@ -2,6 +2,6 @@ import os
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babyblotter.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babybuddy.settings")
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
|
@ -1,4 +1,4 @@
|
||||||
/* Baby Blotter Timer
|
/* Baby Buddy Timer
|
||||||
*
|
*
|
||||||
* Uses a supplied ID to run a timer. The element using the ID must have
|
* Uses a supplied ID to run a timer. The element using the ID must have
|
||||||
* three children with the following classes:
|
* three children with the following classes:
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
* * timer-minutes
|
* * timer-minutes
|
||||||
* * timer-hours
|
* * timer-hours
|
||||||
*/
|
*/
|
||||||
BabyBlotter.Timer = function ($) {
|
BabyBuddy.Timer = function ($) {
|
||||||
var runIntervalId = null;
|
var runIntervalId = null;
|
||||||
var timerElement = null;
|
var timerElement = null;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Delete a Child{% endblock %}
|
{% block title %}Delete a Child{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
|
|
||||||
{% block title %}{{ object }}{% endblock %}
|
{% block title %}{{ object }}{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if object %}
|
{% if object %}
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Add a Child</h1>
|
<h1>Add a Child</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'babyblotter/form.html' %}
|
{% include 'babybuddy/form.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Children{% endblock %}
|
{% block title %}Children{% endblock %}
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include 'babyblotter/paginator.html' %}
|
{% include 'babybuddy/paginator.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if perms.core.add_child %}
|
{% if perms.core.add_child %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Delete a Diaper Change{% endblock %}
|
{% block title %}Delete a Diaper Change{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if request.resolver_match.url_name == 'diaperchange-update' %}
|
{% if request.resolver_match.url_name == 'diaperchange-update' %}
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Add a Diaper Change</h1>
|
<h1>Add a Diaper Change</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'babyblotter/form.html' %}
|
{% include 'babybuddy/form.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include 'babyblotter/paginator.html' %}
|
{% include 'babybuddy/paginator.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if perms.core.add_diaperchange %}
|
{% if perms.core.add_diaperchange %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Delete a Feeding{% endblock %}
|
{% block title %}Delete a Feeding{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if request.resolver_match.url_name == 'feeding-update' %}
|
{% if request.resolver_match.url_name == 'feeding-update' %}
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Add a Feeding</h1>
|
<h1>Add a Feeding</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'babyblotter/form.html' %}
|
{% include 'babybuddy/form.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
{% load duration %}
|
{% load duration %}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include 'babyblotter/paginator.html' %}
|
{% include 'babybuddy/paginator.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if perms.core.add_feeding %}
|
{% if perms.core.add_feeding %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Delete a Note{% endblock %}
|
{% block title %}Delete a Note{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if request.resolver_match.url_name == 'note-update' %}
|
{% if request.resolver_match.url_name == 'note-update' %}
|
||||||
|
@ -23,5 +23,5 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Add a Note</h1>
|
<h1>Add a Note</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'babyblotter/form.html' %}
|
{% include 'babybuddy/form.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Notes{% endblock %}
|
{% block title %}Notes{% endblock %}
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include 'babyblotter/paginator.html' %}
|
{% include 'babybuddy/paginator.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if perms.core.add_note %}
|
{% if perms.core.add_note %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Delete a Sleep Entry{% endblock %}
|
{% block title %}Delete a Sleep Entry{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if request.resolver_match.url_name == 'sleep-update' %}
|
{% if request.resolver_match.url_name == 'sleep-update' %}
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Add a Sleep Entry</h1>
|
<h1>Add a Sleep Entry</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'babyblotter/form.html' %}
|
{% include 'babybuddy/form.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
{% load duration %}
|
{% load duration %}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include 'babyblotter/paginator.html' %}
|
{% include 'babybuddy/paginator.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if perms.core.add_sleep %}
|
{% if perms.core.add_sleep %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Delete {{ object }}{% endblock %}
|
{% block title %}Delete {{ object }}{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load duration timers %}
|
{% load duration timers %}
|
||||||
|
|
||||||
{% block title %}{{ object }}{% endblock %}
|
{% block title %}{{ object }}{% endblock %}
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
{% if object.active %}
|
{% if object.active %}
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
BabyBlotter.Timer.run('timer-status');
|
BabyBuddy.Timer.run('timer-status');
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load duration %}
|
{% load duration %}
|
||||||
|
|
||||||
{% block title %}Timer{% endblock %}
|
{% block title %}Timer{% endblock %}
|
||||||
|
@ -19,5 +19,5 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Start Timer</h1>
|
<h1>Start Timer</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'babyblotter/form.html' %}
|
{% include 'babybuddy/form.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load bootstrap duration widget_tweaks %}
|
{% load bootstrap duration widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Timers{% endblock %}
|
{% block title %}Timers{% endblock %}
|
||||||
|
@ -39,6 +39,6 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include 'babyblotter/paginator.html' %}
|
{% include 'babybuddy/paginator.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}Delete a Tummy Time Entry{% endblock %}
|
{% block title %}Delete a Tummy Time Entry{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if request.resolver_match.url_name == 'tummytime-update' %}
|
{% if request.resolver_match.url_name == 'tummytime-update' %}
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Add a Tummy Time Entry</h1>
|
<h1>Add a Tummy Time Entry</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'babyblotter/form.html' %}
|
{% include 'babybuddy/form.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
{% load duration %}
|
{% load duration %}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include 'babyblotter/paginator.html' %}
|
{% include 'babybuddy/paginator.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if perms.core.add_tummytime %}
|
{% if perms.core.add_tummytime %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load cards %}
|
{% load cards %}
|
||||||
|
|
||||||
{% block title %}Dashboard - {{ object }}{% endblock %}
|
{% block title %}Dashboard - {{ object }}{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
|
|
||||||
{% block title %}Welcome!{% endblock %}
|
{% block title %}Welcome!{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var basePath = 'babyblotter/static/babyblotter/';
|
var basePath = 'babybuddy/static/babybuddy/';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
basePath: basePath,
|
basePath: basePath,
|
||||||
|
@ -29,7 +29,7 @@ module.exports = {
|
||||||
'node_modules/plotly.js/dist/plotly-cartesian.js'
|
'node_modules/plotly.js/dist/plotly-cartesian.js'
|
||||||
],
|
],
|
||||||
app: [
|
app: [
|
||||||
'babyblotter/static_src/js/babyblotter.js',
|
'babybuddy/static_src/js/babybuddy.js',
|
||||||
'api/static_src/js/*.js',
|
'api/static_src/js/*.js',
|
||||||
'core/static_src/js/*.js',
|
'core/static_src/js/*.js',
|
||||||
'dashboard/static_src/js/*.js'
|
'dashboard/static_src/js/*.js'
|
||||||
|
@ -40,15 +40,15 @@ module.exports = {
|
||||||
vendor: [
|
vendor: [
|
||||||
'node_modules/tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css'
|
'node_modules/tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css'
|
||||||
],
|
],
|
||||||
app: 'babyblotter/static_src/scss/babyblotter.scss',
|
app: 'babybuddy/static_src/scss/babybuddy.scss',
|
||||||
ignore: [
|
ignore: [
|
||||||
'babyblotter.scss'
|
'babybuddy.scss'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
watchConfig: {
|
watchConfig: {
|
||||||
scriptsGlob: [
|
scriptsGlob: [
|
||||||
'**/static_src/js/**/*.js',
|
'**/static_src/js/**/*.js',
|
||||||
'!babyblotter/static/js/'
|
'!babybuddy/static/js/'
|
||||||
],
|
],
|
||||||
stylesGlob: [
|
stylesGlob: [
|
||||||
'**/static_src/scss/**/*.scss'
|
'**/static_src/scss/**/*.scss'
|
||||||
|
|
|
@ -3,7 +3,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babyblotter.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babybuddy.settings")
|
||||||
try:
|
try:
|
||||||
from django.core.management import execute_from_command_line
|
from django.core.management import execute_from_command_line
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "babyblotter",
|
"name": "babybuddy",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "babyblotter",
|
"name": "babybuddy",
|
||||||
"description": "Baby activities tracker application.",
|
"description": "Baby activities tracker application.",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'babyblotter/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}{% endblock %}
|
{% block title %}{% endblock %}
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
{% if debug %}
|
{% if debug %}
|
||||||
<script src="{% static "babyblotter/js/graph.js" %}"></script>
|
<script src="{% static "babybuddy/js/graph.js" %}"></script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<script src="{% static "babyblotter/js/graph.min.js" %}"></script>
|
<script src="{% static "babybuddy/js/graph.min.js" %}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue