CSS improvements and Takepos setup check
This commit is contained in:
parent
28c1b1ce58
commit
8b1b8bb7a3
@ -53,4 +53,5 @@ NbOfInvoices=Nb of invoices
|
|||||||
Paymentnumpad=Payment Num Pad
|
Paymentnumpad=Payment Num Pad
|
||||||
Numberspad=Numbers Pad
|
Numberspad=Numbers Pad
|
||||||
BillsCoinsPad=Bills and Coins Pad
|
BillsCoinsPad=Bills and Coins Pad
|
||||||
DolistorePosCategory=TakePOS modules and other POS solutions for Dolibarr
|
DolistorePosCategory=TakePOS modules and other POS solutions for Dolibarr
|
||||||
|
TakeposNeedsCategories=TakePOS needs product categories to work
|
||||||
@ -1,21 +1,11 @@
|
|||||||
html,body {
|
html,body {
|
||||||
padding:0;
|
box-sizing: border-box;
|
||||||
|
padding:3px;
|
||||||
margin:0;
|
margin:0;
|
||||||
height:100%;
|
height:100%;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row {
|
|
||||||
width:100%;
|
|
||||||
height:50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.row div {
|
|
||||||
width:33%;
|
|
||||||
height:100%;
|
|
||||||
float:left;
|
|
||||||
}
|
|
||||||
|
|
||||||
button.calcbutton {
|
button.calcbutton {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -69,33 +59,36 @@ button.actionbutton {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
overflow: visible; /* removes extra width in IE */
|
overflow: visible; /* removes extra width in IE */
|
||||||
width:32%;
|
width:33%;
|
||||||
height:32%;
|
height:33%;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.wrapper{
|
div.wrapper{
|
||||||
float:left; /* important */
|
float:left; /* important */
|
||||||
position:relative; /* important(so we can absolutely position the description div */
|
position:relative; /* important(so we can absolutely position the description div */
|
||||||
width:21.5%;
|
width:25%;
|
||||||
height:23%;
|
height:25%;
|
||||||
margin:1%;
|
margin:0;
|
||||||
|
padding:1px;
|
||||||
border: 0.1em solid;
|
border: 0.1em solid;
|
||||||
box-shadow: 3px 3px 2px #888;
|
box-shadow: 3px 3px 2px #888;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-color:#f0eeee;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.wrapper2{
|
div.wrapper2{
|
||||||
float:left; /* important */
|
float:left; /* important */
|
||||||
position:relative; /* important(so we can absolutely position the description div */
|
position:relative; /* important(so we can absolutely position the description div */
|
||||||
width:10.9%;
|
width:12.5%;
|
||||||
height:23%;
|
height:25%;
|
||||||
margin-top:0.5%;
|
margin:0;
|
||||||
margin-bottom:0.5%;
|
padding:1px;
|
||||||
margin-left:0.5%;
|
|
||||||
margin-right:0.5%;
|
|
||||||
border: 0.1em solid;
|
border: 0.1em solid;
|
||||||
box-shadow: 3px 3px 2px #888;
|
box-shadow: 2px 2px 1px #888;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-color:#f0eeee;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:active{
|
button:active{
|
||||||
@ -124,8 +117,8 @@ div.description{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container{
|
.container{
|
||||||
width: 98%;
|
width: 100%;
|
||||||
height: 98%;
|
height: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -145,10 +138,12 @@ div.description{
|
|||||||
|
|
||||||
.div1{
|
.div1{
|
||||||
height:100%;
|
height:100%;
|
||||||
width: 33%;
|
width: 34%;
|
||||||
float: left;
|
float: left;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
overflow: auto;
|
||||||
|
background-color:white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.div2{
|
.div2{
|
||||||
@ -156,7 +151,6 @@ div.description{
|
|||||||
width: 33%;
|
width: 33%;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
float: left;
|
float: left;
|
||||||
text-align: center;
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@ -165,7 +159,6 @@ div.description{
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 33%;
|
width: 33%;
|
||||||
float: left;
|
float: left;
|
||||||
text-align: center;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,6 +168,7 @@ div.description{
|
|||||||
float: left;
|
float: left;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: 6px;
|
font-size: 6px;
|
||||||
|
padding:3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.div5{
|
.div5{
|
||||||
@ -183,6 +177,7 @@ div.description{
|
|||||||
float: left;
|
float: left;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: 6px;
|
font-size: 6px;
|
||||||
|
padding:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.description_content{
|
p.description_content{
|
||||||
|
|||||||
@ -387,12 +387,12 @@ $( document ).ready(function() {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<body style="overflow: hidden; background-color:#E8E8E8;">
|
<body style="overflow: hidden; background-color:#D1D1D1;">
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row1">
|
<div class="row1">
|
||||||
|
|
||||||
<div id="poslines" class="div1" style="overflow: auto;">
|
<div id="poslines" class="div1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="div2">
|
<div class="div2">
|
||||||
@ -415,6 +415,13 @@ $( document ).ready(function() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
// TakePOS setup check
|
||||||
|
if (empty($conf->global->CASHDESK_ID_THIRDPARTY) or empty($conf->global->CASHDESK_ID_BANKACCOUNT_CASH) or empty($conf->global->CASHDESK_ID_BANKACCOUNT_CB)) {
|
||||||
|
setEventMessages($langs->trans("ErrorModuleSetupNotComplete"), null, 'errors');
|
||||||
|
}
|
||||||
|
if (count($maincategories)==0){
|
||||||
|
setEventMessages($langs->trans("TakeposNeedsCategories"), null, 'errors');
|
||||||
|
}
|
||||||
// User menu and external TakePOS modules
|
// User menu and external TakePOS modules
|
||||||
$menus = array();
|
$menus = array();
|
||||||
$r=0;
|
$r=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user