diff --git a/ereuse_devicehub/inventory/__init__.py b/ereuse_devicehub/inventory/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ereuse_devicehub/inventory/devices/__init__.py b/ereuse_devicehub/inventory/devices/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ereuse_devicehub/inventory/devices/views.py b/ereuse_devicehub/inventory/devices/views.py new file mode 100644 index 00000000..8646f09c --- /dev/null +++ b/ereuse_devicehub/inventory/devices/views.py @@ -0,0 +1,22 @@ +import flask +from flask import Blueprint +from flask.views import View +from flask_login import login_required, login_user + +from ereuse_devicehub.forms import LoginForm +from ereuse_devicehub.resources.user.models import User +from ereuse_devicehub.utils import is_safe_url + +devices = Blueprint('devices', __name__) + + +class DeviceListView(View): + # decorators = [login_required] + template_name = 'inventory/device_list.html' + + def dispatch_request(self): + context = {} + return flask.render_template(self.template_name, **context) + + +devices.add_url_rule('/inventory/device/list/', view_func=DeviceListView.as_view('devicelist')) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html new file mode 100644 index 00000000..4ea12a71 --- /dev/null +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -0,0 +1,273 @@ +{% extends "ereuse_devicehub/base_site.html" %} +{% block main %} + +