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 %} + +
+

Inventory

+ +
+ +
+
+ +
+ +
+
+ + +
+ +
+ +
Computers
+ +
+
Full Name
+
Kevin Anderson
+
+ +
+
Company
+
Lueilwitz, Wisoky and Leuschke
+
+ +
+
Job
+
Web Designer
+
+ +
+
Country
+
USA
+
+ +
+
Address
+
A108 Adam Street, New York, NY 535022
+
+ +
+
Phone
+
(436) 486-3538 x29071
+
+ +
+
Email
+
k.anderson@example.com
+
+ +
+ +
+ + +
+
+ +
+ Profile +
+ + +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+ + +
+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+{% endblock main %} diff --git a/ereuse_devicehub/views.py b/ereuse_devicehub/views.py index 1a458345..2549ec54 100644 --- a/ereuse_devicehub/views.py +++ b/ereuse_devicehub/views.py @@ -32,8 +32,6 @@ class LoginView(View): return flask.render_template('ereuse_devicehub/user_login.html', form=form) -from flask import g, current_app as app - class UserProfileView(View): # decorators = [login_required] template_name = 'ereuse_devicehub/user_profile.html'