From 7a8cdf3913efc11fe411cdad397badd6542e11ec Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Wed, 23 Oct 2013 18:54:44 +0200 Subject: [PATCH] // admin create order WIP --- admin-dev/themes/default/css/admin-theme.css | 30 +- admin-dev/themes/default/css/admin-theme.sass | 15 + .../css/admin-theme/_admin-commons.sass | 4 +- .../controllers/cart_rules/conditions.tpl | 78 ++- .../template/controllers/orders/form.tpl | 620 ++++++++++-------- .../controllers/orders/helpers/view/view.tpl | 445 +++++++------ admin-dev/themes/default/template/header.tpl | 40 +- controllers/admin/AdminLoginController.php | 3 - 8 files changed, 681 insertions(+), 554 deletions(-) diff --git a/admin-dev/themes/default/css/admin-theme.css b/admin-dev/themes/default/css/admin-theme.css index 90d3b31e0..a0f3f4317 100644 --- a/admin-dev/themes/default/css/admin-theme.css +++ b/admin-dev/themes/default/css/admin-theme.css @@ -1,5 +1,5 @@ @import url(http://fonts.googleapis.com/css?family=Josefin+Sans:200,400,700); -/* +/*! * Bootstrap v3.0.0 * * Copyright 2013 Twitter, Inc @@ -8,7 +8,7 @@ * * Designed and built with all the love in the world by @mdo and @fat. */ -/* normalize.css v2.1.0 | MIT License | git.io/normalize */ +/*! normalize.css v2.1.0 | MIT License | git.io/normalize */ /* line 22, ../bower_components/sass-bootstrap/lib/_normalize.scss */ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } @@ -5718,7 +5718,7 @@ th.visible-print, td.visible-print { /* line 523, ../bower_components/sass-bootstrap/lib/_mixins.scss */ th.hidden-print, td.hidden-print { display: none !important; } } -/* +/*! * Font Awesome 3.2.1 * the iconic font designed for Bootstrap * ------------------------------------------------------------------------------ @@ -7643,11 +7643,22 @@ html, body { margin-left: 0; width: 100%; } } -/* line 84, admin-theme.sass */ +/* line 85, admin-theme.sass */ #nobootstrap { float: left; } -/* line 92, admin-theme.sass */ +/* line 91, admin-theme.sass */ +#customer_part .customerCard.selected-customer .panel, #customer_part .customerCard.selected-customer #header_notifs_icon_wrapper .notifs_panel, #header_notifs_icon_wrapper #customer_part .customerCard.selected-customer .notifs_panel, #customer_part .customerCard.selected-customer #dash_version { + color: #5cb85c; + border: solid 2px #5cb85c; } + +/* line 97, admin-theme.sass */ +body.display-modal #content, body.display-modal #main { + margin: 0; + padding: 0; + background: #f8f8f8; } + +/* line 107, admin-theme.sass */ *:focus { outline: none !important; -moz-outline: none !important; @@ -8283,11 +8294,11 @@ a.link-social:hover { -webkit-font-smoothing: antialiased; content: "\F05A"; } -/* line 101, admin-theme/_admin-commons.sass */ +/* line 99, admin-theme/_admin-commons.sass */ .panel .panel-footer, #header_notifs_icon_wrapper .notifs_panel .panel-footer, #dash_version .panel-footer, #header_notifs_icon_wrapper .notifs_panel .notifs_panel_footer { - margin: 0 -20px -20px; } + margin: 15px -20px -20px; } -/* line 104, admin-theme/_admin-commons.sass */ +/* line 102, admin-theme/_admin-commons.sass */ .overflow-y { height: 200px; overflow-y: auto; } @@ -9312,7 +9323,8 @@ textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[ty -webkit-box-shadow: #00a4e7 0 0 0 inset; box-shadow: #00a4e7 0 0 0 inset; } } -/* Ladda +/*! + * Ladda * http://lab.hakim.se/ladda * MIT licensed * diff --git a/admin-dev/themes/default/css/admin-theme.sass b/admin-dev/themes/default/css/admin-theme.sass index cff18e73a..fb8b98beb 100755 --- a/admin-dev/themes/default/css/admin-theme.sass +++ b/admin-dev/themes/default/css/admin-theme.sass @@ -81,9 +81,24 @@ html, body margin-left: 0 width: 100% +//backward #nobootstrap float: left +//orders +#customer_part + .customerCard + &.selected-customer .panel + color: $brand-success + border: solid 2px $brand-success + +//modal +body.display-modal + #content, #main + margin: 0 + padding: 0 + background: #F8F8F8 + //todo: remove temp fix for bootstrap RC1 -> final input[type="text"],input[type="search"],input[type="password"], textarea, select @extend .form-control diff --git a/admin-dev/themes/default/css/admin-theme/_admin-commons.sass b/admin-dev/themes/default/css/admin-theme/_admin-commons.sass index a6b300da4..0997b057a 100644 --- a/admin-dev/themes/default/css/admin-theme/_admin-commons.sass +++ b/admin-dev/themes/default/css/admin-theme/_admin-commons.sass @@ -94,12 +94,10 @@ text-decoration: inherit -webkit-font-smoothing: antialiased content: "\F05A" - - .panel .panel-footer - margin: 0 -20px -20px + margin: 15px -20px -20px .overflow-y height: 200px diff --git a/admin-dev/themes/default/template/controllers/cart_rules/conditions.tpl b/admin-dev/themes/default/template/controllers/cart_rules/conditions.tpl index 4812b500f..812efcbd2 100644 --- a/admin-dev/themes/default/template/controllers/cart_rules/conditions.tpl +++ b/admin-dev/themes/default/template/controllers/cart_rules/conditions.tpl @@ -1,4 +1,4 @@ -
+
-
+
-
+
-
+
-
+