diff --git a/admin-dev/themes/default/css/admin-theme.css b/admin-dev/themes/default/css/admin-theme.css index 9fab50409..81962e0b3 100644 --- a/admin-dev/themes/default/css/admin-theme.css +++ b/admin-dev/themes/default/css/admin-theme.css @@ -1748,7 +1748,7 @@ input[type="button"].btn-block { margin-bottom: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } - .list-group-item > .badge { + .list-group-item > .badge, .list-group-item > .badge-success, .list-group-item > .badge-error { float: right; margin-right: -15px; } @@ -2938,7 +2938,7 @@ a.thumbnail:focus { .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } -.badge { +.badge, .badge-success, .badge-error { display: inline-block; min-width: 10px; padding: 3px 7px; @@ -2951,24 +2951,26 @@ a.thumbnail:focus { text-align: center; background-color: #999999; border-radius: 10px; } - .badge:empty { + .badge:empty, .badge-success:empty, .badge-error:empty { display: none; } -a.badge:hover, a.badge:focus { +a.badge:hover, a.badge-success:hover, a.badge-error:hover, a.badge:focus, a.badge-success:focus, a.badge-error:focus { color: #fff; text-decoration: none; cursor: pointer; } -.btn .badge, .toolbar_btn .badge { +.btn .badge, .toolbar_btn .badge, .btn .badge-success, .toolbar_btn .badge-success, .btn .badge-error, .toolbar_btn .badge-error { position: relative; top: -1px; } -a.list-group-item.active > .badge, -.nav-pills > .active > a > .badge { +a.list-group-item.active > .badge, a.list-group-item.active > .badge-success, a.list-group-item.active > .badge-error, +.nav-pills > .active > a > .badge, +.nav-pills > .active > a > .badge-success, +.nav-pills > .active > a > .badge-error { color: #313a45; background-color: #fff; } -.nav-pills > li > a > .badge { +.nav-pills > li > a > .badge, .nav-pills > li > a > .badge-success, .nav-pills > li > a > .badge-error { margin-left: 3px; } @-webkit-keyframes progress-bar-stripes { @@ -5037,7 +5039,8 @@ https://github.com/ghinda/css-toggle-switch .prestashop-switch span { color: #fff; } } html, body { - height: 100%; } + height: 100%; + min-height: 700px; } body.fixed-top { position: relative; @@ -5140,15 +5143,20 @@ body.fixed-top { width: 240px; border-bottom: solid 1px black; -webkit-box-shadow: #b4ac9c 0 4px 0; - box-shadow: #b4ac9c 0 4px 0; } + box-shadow: #b4ac9c 0 4px 0; + min-height: 700px; + height: 100%; } .page-sidebar > ul > li > ul.sub-menu { display: none; list-style: none; clear: both; margin: 8px 0px 8px 0px; } .page-sidebar > ul { + height: 100%; + overflow: scroll; margin: 0; - padding: 0; } + padding: 0; + padding-bottom: 100px; } .page-sidebar > ul li { background-color: #48525f; list-style: none; } @@ -5478,3 +5486,9 @@ tr.filter { .breadcrumb { background-color: white; } + +.badge-success { + background-color: #5cb85c; } + +.badge-error { + background-color: #d9534f; } diff --git a/admin-dev/themes/default/css/admin-theme.sass b/admin-dev/themes/default/css/admin-theme.sass index 9a97c9a8f..b2ad5a669 100755 --- a/admin-dev/themes/default/css/admin-theme.sass +++ b/admin-dev/themes/default/css/admin-theme.sass @@ -11,6 +11,7 @@ $bg-head-color: #9ED072 html, body height: 100% + min-height: 700px body.fixed-top position: relative @@ -105,15 +106,19 @@ body.fixed-top width: 240px border-bottom: solid 1px black @include box-shadow(darken($bg-content-color,30%) 0 4px 0) - + min-height: 700px + height: 100% > ul > li > ul.sub-menu display: none list-style: none clear: both margin: 8px 0px 8px 0px > ul + height: 100% + overflow: scroll margin: 0 padding: 0 + padding-bottom: 100px li background-color: #48525F list-style: none @@ -465,3 +470,14 @@ tr.filter .breadcrumb background-color: lighten($bg-content-color,7%) + + +.badge-success + @extend .badge + background-color: $brand-success + +.badge-error + @extend .badge + background-color: $brand-danger + + diff --git a/admin-dev/themes/default/template/controllers/invoices/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/invoices/helpers/form/form.tpl index 3c3c1f4c6..c3bfc8e00 100644 --- a/admin-dev/themes/default/template/controllers/invoices/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/invoices/helpers/form/form.tpl @@ -25,11 +25,9 @@ {extends file="helpers/form/form.tpl"} {block name=script} - $(document).ready(function() { var btn_save_date = $('span[class~="process-icon-save-date"]').parent(); var btn_submit_date = $('#submitPrint'); - if (btn_save_date.length > 0 && btn_submit_date.length > 0) { btn_submit_date.hide(); @@ -41,10 +39,8 @@ $('#invoice_date_form').submit(); }); } - var btn_save_status = $('span[class~="process-icon-save-status"]').parent(); var btn_submit_status = $('#submitPrint2'); - if (btn_save_status.length > 0 && btn_submit_status.length > 0) { btn_submit_status.hide(); @@ -52,12 +48,10 @@ btn_save_status.find('span').addClass('process-icon-save'); btn_save_status.click(function() { btn_submit_status.before(''); - $('#invoice_status_form').submit(); }); } }); - {/block} {block name="input"} @@ -67,9 +61,25 @@

{/foreach} @@ -77,5 +87,3 @@ {$smarty.block.parent} {/if} {/block} - - diff --git a/admin-dev/themes/default/template/helpers/form/form.tpl b/admin-dev/themes/default/template/helpers/form/form.tpl index 3f61c0af5..5085fc34a 100644 --- a/admin-dev/themes/default/template/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/helpers/form/form.tpl @@ -440,12 +440,17 @@ {hook h=$hookName fieldset=$f} {/if} {elseif $key == 'submit'} -
- +
+
+ +
{elseif $key == 'desc'}

diff --git a/admin-dev/themes/default/template/helpers/options/options.tpl b/admin-dev/themes/default/template/helpers/options/options.tpl index 7e9e2f17b..e26fac51f 100644 --- a/admin-dev/themes/default/template/helpers/options/options.tpl +++ b/admin-dev/themes/default/template/helpers/options/options.tpl @@ -44,7 +44,7 @@

{* Options category title *} - + {if isset($categoryData['title'])}{$categoryData['title']}{else}{l s='Options'}{/if} @@ -226,9 +226,18 @@ {/if} {/foreach} {if isset($categoryData['submit'])} -
- +
+
+ +
{/if} {if isset($categoryData['required_fields']) && $categoryData['required_fields']} diff --git a/controllers/admin/AdminInvoicesController.php b/controllers/admin/AdminInvoicesController.php index ef778158e..c90344b84 100644 --- a/controllers/admin/AdminInvoicesController.php +++ b/controllers/admin/AdminInvoicesController.php @@ -89,32 +89,31 @@ class AdminInvoicesControllerCore extends AdminController $this->fields_form = array( 'legend' => array( 'title' => $this->l('By date'), - 'image' => '../img/admin/pdf.gif' + 'icon' => 'icon-calendar' ), 'input' => array( array( 'type' => 'date', 'label' => $this->l('From:'), 'name' => 'date_from', - 'size' => 20, 'maxlength' => 10, 'required' => true, - 'desc' => $this->l('Format: 2011-12-31 (inclusive)') + 'hint' => $this->l('Format: 2011-12-31 (inclusive)') ), array( 'type' => 'date', 'label' => $this->l('To:'), 'name' => 'date_to', - 'size' => 20, 'maxlength' => 10, 'required' => true, - 'desc' => $this->l('Format: 2012-12-31 (inclusive)') + 'hint' => $this->l('Format: 2012-12-31 (inclusive)') ) ), 'submit' => array( 'title' => $this->l('Generate PDF file by date'), - 'class' => 'button', - 'id' => 'submitPrint' + 'class' => 'btn btn-primary', + 'id' => 'submitPrint', + 'icon' => 'icon-download-alt' ) ); @@ -133,7 +132,7 @@ class AdminInvoicesControllerCore extends AdminController $this->fields_form = array( 'legend' => array( 'title' => $this->l('By order status'), - 'image' => '../img/admin/pdf.gif' + 'icon' => 'icon-pushpin' ), 'input' => array( array( @@ -145,13 +144,14 @@ class AdminInvoicesControllerCore extends AdminController 'id' => 'id_order_state', 'name' => 'name' ), - 'desc' => $this->l('You can also export orders which have not been charged yet.').' ().' + 'hint' => $this->l('You can also export orders which have not been charged yet.') ) ), 'submit' => array( 'title' => $this->l('Generate PDF file by status.'), - 'class' => 'button', - 'id' => 'submitPrint2' + 'class' => 'btn btn-primary', + 'id' => 'submitPrint2', + 'icon' => 'icon-download-alt' ) );