diff --git a/ordr2/static/css/style.css b/ordr2/static/css/style.css index a86d3cd..ecf0bba 100755 --- a/ordr2/static/css/style.css +++ b/ordr2/static/css/style.css @@ -750,3 +750,4 @@ input.number { text-align:right; } .moneyinput .amount { width:167px; text-align:right;} .moneyinput .currency { width:30px; text-align:center;} .controls .form-control-static { padding-top:5px; } +.form-like-display.form-horizontal .control-group { margin-bottom:0px; } diff --git a/ordr2/templates/orders/view.jinja2 b/ordr2/templates/orders/view.jinja2 new file mode 100644 index 0000000..3ec3f0a --- /dev/null +++ b/ordr2/templates/orders/view.jinja2 @@ -0,0 +1,156 @@ +{% extends "ordr2:templates/layout.jinja2" %} +{% import 'ordr2:templates/macros.jinja2' as macros with context %} + +{% block subtitle %} Order | View | {{ context.model.cas_desctiption }} {% endblock subtitle %} + +{% block content %} + +
+
+ +
+
+

+ View Order: {{ context.model.cas_desctiption }} +

+
+
+ +
+ +
+
+
+ +{% endblock content %} diff --git a/ordr2/views/orders.py b/ordr2/views/orders.py index 43bf4e6..491c73b 100644 --- a/ordr2/views/orders.py +++ b/ordr2/views/orders.py @@ -166,6 +166,15 @@ def order_delete_form_processing(context, request): # single order processing +@view_config( + context='ordr2:resources.OrderResource', + permission='view', + request_method='GET', + renderer='ordr2:templates/orders/view.jinja2' + ) +def order_view(context, request): + return {} + @view_config( context='ordr2:resources.OrderResource', name='delete',