a ton of fun happened, refactored alot
This commit is contained in:
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "admin",
|
||||
"version": "0.1.1",
|
||||
"description": "Admin panel plugin for Nature In Pots",
|
||||
"entry_point": "register_cli"
|
||||
"name": "Admin",
|
||||
"version": "0.1.0",
|
||||
"author": "Bryson Shepard <bryson@natureinpots.com>",
|
||||
"description": "Provides the administrative UI and analytics hooks.",
|
||||
"module": "plugins.admin",
|
||||
"routes": {
|
||||
"module": "plugins.admin.routes",
|
||||
"blueprint": "bp",
|
||||
"url_prefix": "/admin"
|
||||
},
|
||||
"models": [
|
||||
"plugins.admin.models"
|
||||
],
|
||||
"license": "Proprietary",
|
||||
"repository": "https://github.com/your-org/your-app"
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ from datetime import datetime, timedelta
|
||||
|
||||
from app import db
|
||||
from plugins.auth.models import User
|
||||
from plugins.growlog.models import GrowLog
|
||||
from plugins.plant.growlog.models import GrowLog
|
||||
from plugins.plant.models import Plant
|
||||
from plugins.admin.models import AnalyticsEvent
|
||||
from .forms import UserForm
|
||||
|
@ -1,5 +1,5 @@
|
||||
{# plugins/admin/templates/admin/dashboard.html #}
|
||||
{% extends 'core_ui/base.html' %}
|
||||
{% extends 'core/base.html' %}
|
||||
{% block title %}Admin Dashboard – Nature In Pots{% endblock %}
|
||||
|
||||
{% block styles %}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends 'core_ui/base.html' %}
|
||||
{% extends 'core/base.html' %}
|
||||
{% block title %}{{ action }} User – Admin – Nature In Pots{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends 'core_ui/base.html' %}
|
||||
{% extends 'core/base.html' %}
|
||||
{% block title %}Users – Admin – Nature In Pots{% endblock %}
|
||||
{% block content %}
|
||||
<h1>Users</h1>
|
||||
|
Reference in New Issue
Block a user