From 00fe10e847f6dc9dbb16021f84d709530f368db1 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 20 Sep 2013 09:29:26 +1000 Subject: [PATCH] Reposition order cycle admin debug info --- .../stylesheets/admin/openfoodweb.css.scss | 10 ++++++++++ app/views/admin/order_cycles/_form.html.haml | 17 +++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/admin/openfoodweb.css.scss b/app/assets/stylesheets/admin/openfoodweb.css.scss index 442d280581..67c6ea1ea7 100644 --- a/app/assets/stylesheets/admin/openfoodweb.css.scss +++ b/app/assets/stylesheets/admin/openfoodweb.css.scss @@ -78,6 +78,16 @@ form.order_cycle { .actions { margin-top: 3em; } + + #order-cycles-debug { + position: fixed; + top: 0px; + left: 0px; + height: 100%; + width: 316px; + overflow-y: scroll; + background-color: #fff; + } } table#listing_payment_methods { diff --git a/app/views/admin/order_cycles/_form.html.haml b/app/views/admin/order_cycles/_form.html.haml index 0f1cac71fc..70e119c167 100644 --- a/app/views/admin/order_cycles/_form.html.haml +++ b/app/views/admin/order_cycles/_form.html.haml @@ -59,12 +59,13 @@ = link_to 'Cancel', main_app.admin_order_cycles_path -%h2 Debug information +#order-cycles-debug + %h2 Debug information -%pre order_cycle = {{ order_cycle | json }} -%hr/ -%pre enterprises = {{ enterprises | json }} -%hr/ -%pre enterprise_fees = {{ enterprise_fees | json }} -%hr/ -%pre supplied_products = {{ supplied_products | json }} + %pre order_cycle = {{ order_cycle | json }} + %hr/ + %pre enterprises = {{ enterprises | json }} + %hr/ + %pre enterprise_fees = {{ enterprise_fees | json }} + %hr/ + %pre supplied_products = {{ supplied_products | json }}