Browse Source

Added a "Document" controller

Roland Haroutiounian 8 years ago
parent
commit
59ccca35db

+ 6
- 0
plugins/webui/interface/controllers/document.py View File

@@ -0,0 +1,6 @@
1
+from .base import get_response
2
+
3
+
4
+def show_document(request):
5
+    template_vars = {'id': request.url_args[0]}
6
+    return get_response('documents/show.html', tpl_vars=template_vars)

+ 3
- 0
plugins/webui/templates/documents/show.html View File

@@ -0,0 +1,3 @@
1
+{% extends "base_backend.html" %}
2
+{% block title %}Lodel 2 - Document {{ id }}{% endblock %}
3
+{% block content %}ADMIN{% endblock %}

Loading…
Cancel
Save