cg_app_base 1.0.62 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/flatty/theme.js.coffee +24 -24
- data/app/assets/stylesheets/application2.scss +293 -2
- data/app/assets/stylesheets/print.css +236 -192
- data/app/controllers/concerns/cg_app_base/cross_domain_concern.rb +24 -0
- data/app/helpers/cg_app_base/application_helper.rb +13 -2
- data/app/views/layouts/application.html.erb +7 -6
- data/app/views/shared/_main_navigation.html.erb +1 -1
- data/config/navigation.rb +4 -2
- data/lib/cg_app_base/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f9b25aa16300608f46df8ee696593646a8e70de
|
4
|
+
data.tar.gz: b2f0df766cbed33da944ad59e3b7e2089f7439fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1413723391651e454432977bd0974a93022e527c4e7209fa081870d222dd1e1e56898cb1cc55e9bf643f14fa72c8f0244081481f0c03aea131ec8f4d1ef53931
|
7
|
+
data.tar.gz: 5d4a161f304e0c527e94a8e7d4feb8dc653f48f89eec3d437fa2488acc173912ff8d1c8d57bf7ea740e021570e6b48b1d58bb7147848ad7c5f6b5b7fea2d0ee0
|
@@ -50,6 +50,30 @@ $(document).ready ->
|
|
50
50
|
@nav_open = ->
|
51
51
|
return $("body").hasClass("main-nav-opened") || $("#main-nav").width() > 50
|
52
52
|
|
53
|
+
# --------------------------------------------------------------------------------------------------------------------
|
54
|
+
# removes .box after click on .box-remove button
|
55
|
+
$(document).on "click", ".box .box-remove", (e) ->
|
56
|
+
$(this).parents(".box").first().remove()
|
57
|
+
e.preventDefault()
|
58
|
+
return false
|
59
|
+
|
60
|
+
# hides .box after click on .box-collapse
|
61
|
+
$(document).on "click", ".box .box-collapse", (e) ->
|
62
|
+
box = $(this).parents(".box").first()
|
63
|
+
box_content = box.find(".scrollable-area")
|
64
|
+
box_content.hide()
|
65
|
+
box.toggleClass("box-collapsed", 300)
|
66
|
+
box_content.fadeIn(1000)
|
67
|
+
e.preventDefault()
|
68
|
+
return false
|
69
|
+
# --------------------------------------------------------------------------------------------------------------------
|
70
|
+
|
71
|
+
# --------------------------------------------------------------------------------------------------------------------
|
72
|
+
# check all checkboxes in table with class only-checkbox
|
73
|
+
$(document).on "click", ".check-all", (e) ->
|
74
|
+
$(this).parents("table:eq(0)").find(".only-checkbox :checkbox").attr "checked", @checked
|
75
|
+
# --------------------------------------------------------------------------------------------------------------------
|
76
|
+
|
53
77
|
# JS plugins initializations
|
54
78
|
$(document).ready ->
|
55
79
|
setTimeAgo()
|
@@ -61,32 +85,8 @@ $(document).ready ->
|
|
61
85
|
setMaxLength()
|
62
86
|
setValidateForm()
|
63
87
|
|
64
|
-
# --------------------------------------------------------------------------------------------------------------------
|
65
|
-
# removes .box after click on .box-remove button
|
66
|
-
$(".box .box-remove").live "click", (e) ->
|
67
|
-
$(this).parents(".box").first().remove()
|
68
|
-
e.preventDefault()
|
69
|
-
return false
|
70
|
-
|
71
|
-
# hides .box after click on .box-collapse
|
72
|
-
$(".box .box-collapse").live "click", (e) ->
|
73
|
-
box = $(this).parents(".box").first()
|
74
|
-
box_content = box.find(".scrollable-area")
|
75
|
-
box_content.hide()
|
76
|
-
box.toggleClass("box-collapsed", 300)
|
77
|
-
box_content.fadeIn(1000)
|
78
|
-
e.preventDefault()
|
79
|
-
return false
|
80
|
-
# --------------------------------------------------------------------------------------------------------------------
|
81
|
-
|
82
88
|
$('.pwstrength').pwstrength(showVerdicts: false) if jQuery().pwstrength
|
83
89
|
|
84
|
-
# --------------------------------------------------------------------------------------------------------------------
|
85
|
-
# check all checkboxes in table with class only-checkbox
|
86
|
-
$(".check-all").live "click", (e) ->
|
87
|
-
$(this).parents("table:eq(0)").find(".only-checkbox :checkbox").attr "checked", @checked
|
88
|
-
# --------------------------------------------------------------------------------------------------------------------
|
89
|
-
|
90
90
|
# --------------------------------------------------------------------------------------------------------------------
|
91
91
|
# setting up responsive tabs
|
92
92
|
$('.nav-responsive.nav-pills, .nav-responsive.nav-tabs').tabdrop() if jQuery().tabdrop
|
@@ -134,6 +134,16 @@ tr.text-fb a {
|
|
134
134
|
font-size: 100% !important;
|
135
135
|
}
|
136
136
|
|
137
|
+
.label_install {
|
138
|
+
background-color: #fcd052;
|
139
|
+
border: 5px solid #fcd052;
|
140
|
+
border-radius: 4px;
|
141
|
+
width: auto;
|
142
|
+
float: left;
|
143
|
+
clear: both;
|
144
|
+
min-width: 50%;
|
145
|
+
}
|
146
|
+
|
137
147
|
.quote_highlight {
|
138
148
|
color: #ffffff;
|
139
149
|
padding: 3px;
|
@@ -415,6 +425,27 @@ legend {
|
|
415
425
|
}
|
416
426
|
|
417
427
|
.form-control {
|
428
|
+
height: 31px;
|
429
|
+
padding: 3px 6px;
|
430
|
+
font-size: 14px;
|
431
|
+
line-height: 1.428571429;
|
432
|
+
color: #555555;
|
433
|
+
vertical-align: middle;
|
434
|
+
background-color: white;
|
435
|
+
border: 1px solid #cccccc;
|
436
|
+
border-radius: 0px;
|
437
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
438
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
439
|
+
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
440
|
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
441
|
+
}
|
442
|
+
|
443
|
+
#selectAccount .form-control, #selectContact .form-control {
|
444
|
+
height: 38px;
|
445
|
+
-webkit-appearance: none;
|
446
|
+
}
|
447
|
+
|
448
|
+
.fc-special {
|
418
449
|
height: 31px;
|
419
450
|
padding: 3px 6px;
|
420
451
|
font-size: 14px;
|
@@ -887,6 +918,102 @@ address {
|
|
887
918
|
word-wrap: break-word;
|
888
919
|
}
|
889
920
|
|
921
|
+
/* ICONES DE DETAILS DE SHIPPING ET DASHBOARD */
|
922
|
+
|
923
|
+
#actionsIcons .list-unstyled li {
|
924
|
+
margin-top: 8px;
|
925
|
+
float: left;
|
926
|
+
margin-right: 2px;
|
927
|
+
width: 30px;
|
928
|
+
height: 30px;
|
929
|
+
}
|
930
|
+
|
931
|
+
#actionsDetailIcons .list-unstyled li {
|
932
|
+
margin-top: 8px;
|
933
|
+
float: left;
|
934
|
+
margin-right: 1px;
|
935
|
+
width: 36px;
|
936
|
+
height: 30px;
|
937
|
+
}
|
938
|
+
|
939
|
+
#actionsIcons .list-unstyled li a {
|
940
|
+
text-align: center;
|
941
|
+
text-decoration: none;
|
942
|
+
max-width: 100%;
|
943
|
+
height: 100%;
|
944
|
+
border-radius: 100%;
|
945
|
+
-webkit-border-radius: 100%;
|
946
|
+
padding: 0.88em 1em;
|
947
|
+
position: relative;
|
948
|
+
}
|
949
|
+
|
950
|
+
#actionsDetailIcons .list-unstyled li a {
|
951
|
+
text-align: center;
|
952
|
+
text-decoration: none;
|
953
|
+
max-width: 100%;
|
954
|
+
height: 100%;
|
955
|
+
border-radius: 100%;
|
956
|
+
-webkit-border-radius: 100%;
|
957
|
+
padding: 0.4em 0.6em;
|
958
|
+
position: relative;
|
959
|
+
}
|
960
|
+
|
961
|
+
#actionsIcons .list-unstyled li a.inActionOrderIcn, #actionsDetailIcons .list-unstyled li a.inActionOrderIcn {
|
962
|
+
color: #ffffff;
|
963
|
+
background-color: #000000;
|
964
|
+
}
|
965
|
+
|
966
|
+
#actionsIcons .list-unstyled li a.inActionOrderIcn:hover, #actionsDetailIcons .list-unstyled li a.inActionOrderIcn:hover {
|
967
|
+
cursor: pointer !important;
|
968
|
+
color: rgba(255, 255, 255, 0.8);
|
969
|
+
background-color: #555555;
|
970
|
+
-webkit-transition: all ease-in-out 0.2s;
|
971
|
+
-moz-transition: all ease-in-out 0.2s;
|
972
|
+
-o-transition: all ease-in-out 0.2s;
|
973
|
+
transition: all ease-in-out 0.2s;
|
974
|
+
}
|
975
|
+
|
976
|
+
#actionsIcons .list-unstyled li a.inActionIcn, #actionsDetailIcons .list-unstyled li a.inActionIcn {
|
977
|
+
color: #ffffff;
|
978
|
+
background-color: #3b9e3b;
|
979
|
+
}
|
980
|
+
|
981
|
+
#actionsIcons .list-unstyled li a.inActionIcn:hover, #actionsDetailIcons .list-unstyled li a.inActionIcn:hover {
|
982
|
+
cursor: pointer !important;
|
983
|
+
color: rgba(255, 255, 255, 0.8);
|
984
|
+
background-color: #47bb47;
|
985
|
+
-webkit-transition: all ease-in-out 0.2s;
|
986
|
+
-moz-transition: all ease-in-out 0.2s;
|
987
|
+
-o-transition: all ease-in-out 0.2s;
|
988
|
+
transition: all ease-in-out 0.2s;
|
989
|
+
}
|
990
|
+
|
991
|
+
#actionsIcons .list-unstyled li a.inActionNotesIcn, #actionsDetailIcons .list-unstyled li a.inActionNotesIcn {
|
992
|
+
color: #ffffff;
|
993
|
+
background-color: #356691;
|
994
|
+
}
|
995
|
+
|
996
|
+
#actionsIcons .list-unstyled li a.inActioNotesIcn:hover, #actionsDetailIcons .list-unstyled li a.inActionNotesIcn:hover {
|
997
|
+
cursor: pointer !important;
|
998
|
+
color: rgba(255, 255, 255, 0.8);
|
999
|
+
background-color: #4086bc;
|
1000
|
+
-webkit-transition: all ease-in-out 0.2s;
|
1001
|
+
-moz-transition: all ease-in-out 0.2s;
|
1002
|
+
-o-transition: all ease-in-out 0.2s;
|
1003
|
+
transition: all ease-in-out 0.2s;
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
#actionsIcons .list-unstyled li a i {
|
1007
|
+
font-size: 1.2em;
|
1008
|
+
width: 100%;
|
1009
|
+
position: relative;
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
#actionsDetailIcons .list-unstyled li a i {
|
1013
|
+
width: 100%;
|
1014
|
+
position: relative;
|
1015
|
+
}
|
1016
|
+
|
890
1017
|
.responsive-table {
|
891
1018
|
position: relative;
|
892
1019
|
overflow: hidden;
|
@@ -929,6 +1056,10 @@ address {
|
|
929
1056
|
}
|
930
1057
|
}
|
931
1058
|
|
1059
|
+
.table-hover > tbody > tr.label-danger:hover > td, .table-hover > tbody > tr.label-danger:hover > th {
|
1060
|
+
background-color: rgba(160, 219, 255, 0.0) !important;
|
1061
|
+
}
|
1062
|
+
|
932
1063
|
div.invoiceTitle, span.invoiceTitle {
|
933
1064
|
text-align: right !important;
|
934
1065
|
border: 0px solid rgba(255, 255, 255, 1) !important;
|
@@ -1037,6 +1168,10 @@ header .navbar .toggle-nav {
|
|
1037
1168
|
padding: 7px;
|
1038
1169
|
}
|
1039
1170
|
|
1171
|
+
.btn-sm, .btn-group-sm > .btn, .btn-xs, .btn-group-xs > .btn {
|
1172
|
+
border-radius: 0px;
|
1173
|
+
}
|
1174
|
+
|
1040
1175
|
.dropdown_liltableup {
|
1041
1176
|
margin-bottom: 5px;
|
1042
1177
|
z-index: 50;
|
@@ -1107,6 +1242,20 @@ input, button, select, textarea {
|
|
1107
1242
|
.searchblock {
|
1108
1243
|
background-color: #0163AC;
|
1109
1244
|
padding: 14px;
|
1245
|
+
|
1246
|
+
.select2-container.form-control:focus, .select2-container-multi .select2-choices:focus, select:focus, textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .form-control:focus, .uneditable-input:focus {
|
1247
|
+
border-color: #aaaaaa;
|
1248
|
+
-webkit-box-shadow: 0 0 0px #dce1e5;
|
1249
|
+
-moz-box-shadow: 0 0 0px #dce1e5;
|
1250
|
+
box-shadow: 0 0 0px #dce1e5;
|
1251
|
+
}
|
1252
|
+
.form-control:focus {
|
1253
|
+
border-color: #66afe9;
|
1254
|
+
outline: 0;
|
1255
|
+
-webkit-box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0), 0 0 0px rgba(102, 175, 233, 0);
|
1256
|
+
box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0), 0 0 0px rgba(102, 175, 233, 0);
|
1257
|
+
}
|
1258
|
+
|
1110
1259
|
}
|
1111
1260
|
|
1112
1261
|
.searchblock label {
|
@@ -1213,6 +1362,11 @@ input, button, select, textarea {
|
|
1213
1362
|
height: 17px !important;
|
1214
1363
|
}
|
1215
1364
|
|
1365
|
+
/* MAPS */
|
1366
|
+
body div#map {
|
1367
|
+
height: 700px;
|
1368
|
+
}
|
1369
|
+
|
1216
1370
|
#map-outer {
|
1217
1371
|
height: 440px;
|
1218
1372
|
padding: 20px;
|
@@ -1221,8 +1375,10 @@ input, button, select, textarea {
|
|
1221
1375
|
background-color: #FFF
|
1222
1376
|
}
|
1223
1377
|
|
1224
|
-
|
1225
|
-
|
1378
|
+
@media print {
|
1379
|
+
body div#map, div#map-outer {
|
1380
|
+
height: 310px !important;
|
1381
|
+
}
|
1226
1382
|
}
|
1227
1383
|
|
1228
1384
|
@media all and (max-width: 600px) {
|
@@ -1231,6 +1387,39 @@ input, button, select, textarea {
|
|
1231
1387
|
}
|
1232
1388
|
}
|
1233
1389
|
|
1390
|
+
@media (max-width: 992px) {
|
1391
|
+
.rteMap {
|
1392
|
+
height: 600px;
|
1393
|
+
}
|
1394
|
+
.rteExcept {
|
1395
|
+
height: 300px;
|
1396
|
+
}
|
1397
|
+
.rteExceptForm {
|
1398
|
+
height: 300px;
|
1399
|
+
margin-top: 0px;
|
1400
|
+
}
|
1401
|
+
.rteExceptFormLg {
|
1402
|
+
display: none;
|
1403
|
+
height: 175px;
|
1404
|
+
}
|
1405
|
+
}
|
1406
|
+
|
1407
|
+
@media (min-width: 992px) {
|
1408
|
+
.rteMap {
|
1409
|
+
height: 600px;
|
1410
|
+
}
|
1411
|
+
.rteExcept {
|
1412
|
+
height: 500px;
|
1413
|
+
}
|
1414
|
+
.rteExceptForm {
|
1415
|
+
height: 200px;
|
1416
|
+
margin-top: -175px;
|
1417
|
+
}
|
1418
|
+
.rteExceptFormLg {
|
1419
|
+
height: 175px;
|
1420
|
+
}
|
1421
|
+
}
|
1422
|
+
|
1234
1423
|
.status {
|
1235
1424
|
display: inline;
|
1236
1425
|
padding: .2em 0.5em;
|
@@ -1800,6 +1989,7 @@ p.titletable {
|
|
1800
1989
|
}
|
1801
1990
|
}
|
1802
1991
|
}
|
1992
|
+
|
1803
1993
|
#projections .table thead > tr > th, #projections .table thead > tr > td, #projections .table tbody > tr > th, #projections .table tbody > tr > td, #projections .table tfoot > tr > th, #projections .table tfoot > tr > td {
|
1804
1994
|
font-size: 0.845em;
|
1805
1995
|
width: 50%;
|
@@ -1872,4 +2062,105 @@ p.titletable {
|
|
1872
2062
|
}
|
1873
2063
|
}
|
1874
2064
|
|
2065
|
+
}
|
2066
|
+
|
2067
|
+
/* DÉTAILS DU CONTRAT PRODUITS */
|
2068
|
+
|
2069
|
+
#product_table {
|
2070
|
+
|
2071
|
+
span.productCateg {
|
2072
|
+
font-size: 1.25em;
|
2073
|
+
font-weight: 400;
|
2074
|
+
}
|
2075
|
+
span.productName {
|
2076
|
+
font-size: 1.25em;
|
2077
|
+
font-weight: 600;
|
2078
|
+
}
|
2079
|
+
span.productSku {
|
2080
|
+
font-size: 1.5em;
|
2081
|
+
font-weight: 400;
|
2082
|
+
}
|
2083
|
+
span.productConfig, span.productQty {
|
2084
|
+
font-size: 1.1em;
|
2085
|
+
font-weight: 400;
|
2086
|
+
|
2087
|
+
b {
|
2088
|
+
font-weight: 600;
|
2089
|
+
}
|
2090
|
+
}
|
2091
|
+
span.productSerie {
|
2092
|
+
text-transform: uppercase;
|
2093
|
+
border-bottom: 1px solid #2b2d30;
|
2094
|
+
float: left;
|
2095
|
+
font-size: 1.4em;
|
2096
|
+
font-weight: 400;
|
2097
|
+
margin: 0 0 2px 0;
|
2098
|
+
width: 100%;
|
2099
|
+
}
|
2100
|
+
span.productColor {
|
2101
|
+
font-size: 1.3em;
|
2102
|
+
font-weight: 600;
|
2103
|
+
padding: 4px 0;
|
2104
|
+
}
|
2105
|
+
span.productLocation {
|
2106
|
+
text-transform: capitalize;
|
2107
|
+
font-size: 1.2em;
|
2108
|
+
font-weight: 400;
|
2109
|
+
padding: 4px 0;
|
2110
|
+
}
|
2111
|
+
span.productSize {
|
2112
|
+
font-size: 1.3em;
|
2113
|
+
font-weight: 400;
|
2114
|
+
border: 1px solid #dbf2fe;
|
2115
|
+
background-color: #ffffff;
|
2116
|
+
-webkit-border-radius: 3px;
|
2117
|
+
border-radius: 3px;
|
2118
|
+
-moz-border-radius: 3px;
|
2119
|
+
padding: 4px;
|
2120
|
+
|
2121
|
+
b {
|
2122
|
+
font-weight: 600;
|
2123
|
+
|
2124
|
+
&:first-child {
|
2125
|
+
margin-right: 5px;
|
2126
|
+
}
|
2127
|
+
}
|
2128
|
+
i {
|
2129
|
+
margin-right: 5px;
|
2130
|
+
}
|
2131
|
+
}
|
2132
|
+
|
2133
|
+
span.productNote {
|
2134
|
+
border: 1px solid #dbf2fe;
|
2135
|
+
height: 100px;
|
2136
|
+
width: 100%;
|
2137
|
+
float: left;
|
2138
|
+
text-align: left;
|
2139
|
+
background-color: #ffffff;
|
2140
|
+
-webkit-border-radius: 6px;
|
2141
|
+
border-radius: 6px;
|
2142
|
+
-moz-border-radius: 6px;
|
2143
|
+
padding: 5px;
|
2144
|
+
}
|
2145
|
+
|
2146
|
+
#imageProduct {
|
2147
|
+
height: 100px;
|
2148
|
+
float: left;
|
2149
|
+
text-align: center;
|
2150
|
+
|
2151
|
+
.imageBox {
|
2152
|
+
border: 1px solid #dbf2fe;
|
2153
|
+
background-color: #ffffff;
|
2154
|
+
-webkit-border-radius: 6px;
|
2155
|
+
border-radius: 6px;
|
2156
|
+
-moz-border-radius: 6px;
|
2157
|
+
|
2158
|
+
img {
|
2159
|
+
width: auto;
|
2160
|
+
max-height: 100px;
|
2161
|
+
position: relative;
|
2162
|
+
}
|
2163
|
+
}
|
2164
|
+
}
|
2165
|
+
|
1875
2166
|
}
|
@@ -1,193 +1,237 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
}
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
}
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
}
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
1
|
+
@charset "UTF-8";
|
2
|
+
/* CSS Print Document */
|
3
|
+
|
4
|
+
@media print {
|
5
|
+
|
6
|
+
@page {
|
7
|
+
margin-left: 0;
|
8
|
+
margin-right: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
html {
|
12
|
+
font: 62.5%/1.4 'Roboto Condensed', sans-serif;
|
13
|
+
}
|
14
|
+
|
15
|
+
body {
|
16
|
+
font-size: 1.3em;
|
17
|
+
padding: 0 15px;
|
18
|
+
}
|
19
|
+
|
20
|
+
header.letter {
|
21
|
+
|
22
|
+
}
|
23
|
+
|
24
|
+
#header, #footer {
|
25
|
+
width: 960px;
|
26
|
+
margin: 0 auto;
|
27
|
+
}
|
28
|
+
|
29
|
+
h1 {
|
30
|
+
margin: 0;
|
31
|
+
font-family: 'Roboto Condensed', sans-serif;
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 a {
|
35
|
+
display: block;
|
36
|
+
width: 300px;
|
37
|
+
text-decoration: none;
|
38
|
+
margin: 0;
|
39
|
+
color: #253c93;
|
40
|
+
}
|
41
|
+
|
42
|
+
h2 {
|
43
|
+
margin: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
h2 a {
|
47
|
+
font-size: 70%;
|
48
|
+
}
|
49
|
+
|
50
|
+
a {
|
51
|
+
color: #253c93;
|
52
|
+
}
|
53
|
+
|
54
|
+
p {
|
55
|
+
text-align: justify;
|
56
|
+
}
|
57
|
+
|
58
|
+
.example, .source {
|
59
|
+
float: left;
|
60
|
+
}
|
61
|
+
|
62
|
+
.example {
|
63
|
+
width: 58%;
|
64
|
+
}
|
65
|
+
|
66
|
+
.source {
|
67
|
+
width: 40%;
|
68
|
+
}
|
69
|
+
|
70
|
+
iframe.example, div.source {
|
71
|
+
height: 300px;
|
72
|
+
border: 1px solid #ccc;
|
73
|
+
background-color: #fff;
|
74
|
+
}
|
75
|
+
|
76
|
+
div.source {
|
77
|
+
border-left: 0px none;
|
78
|
+
padding: 0 0 0 1%;
|
79
|
+
overflow: auto;
|
80
|
+
}
|
81
|
+
|
82
|
+
div.source pre {
|
83
|
+
white-space: pre-wrap;
|
84
|
+
font-size: 12px;
|
85
|
+
}
|
86
|
+
|
87
|
+
.letterMain {
|
88
|
+
margin: 25px 0 0 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
a.btn-primary {
|
92
|
+
color: #ffffff !important;
|
93
|
+
text-decoration: none !important;
|
94
|
+
}
|
95
|
+
.btn-primary:hover {
|
96
|
+
text-decoration: none;
|
97
|
+
}
|
98
|
+
|
99
|
+
#footer {
|
100
|
+
clear: both;
|
101
|
+
min-height: 125px;
|
102
|
+
text-align: center;
|
103
|
+
padding-top: 1px;
|
104
|
+
}
|
105
|
+
|
106
|
+
#footer p {
|
107
|
+
font-size: 140%;
|
108
|
+
line-height: 1.2;
|
109
|
+
margin: .5em 0;
|
110
|
+
}
|
111
|
+
|
112
|
+
#footer a {
|
113
|
+
float: left;
|
114
|
+
margin: .5em 1em 0 0;
|
115
|
+
}
|
116
|
+
|
117
|
+
#bsap_1239784 {
|
118
|
+
margin: .5em 0;
|
119
|
+
}
|
120
|
+
|
121
|
+
body, #content, #container {
|
122
|
+
width: 100%;
|
123
|
+
margin: 0;
|
124
|
+
}
|
125
|
+
|
126
|
+
/* SECTION 2: Remove any elements not needed in print.
|
127
|
+
This would include navigation, ads, sidebars, etc. */
|
128
|
+
#topnav, #navbar, #nav, #sidebar, .ad, .noprint {
|
129
|
+
display: none;
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
/* SECTION 3: Set body font face, size, and color.
|
134
|
+
Consider using a serif font for readability. */
|
135
|
+
/* SECTION 4: Set heading font face, sizes, and color.
|
136
|
+
Diffrentiate your headings from your body text.
|
137
|
+
Perhaps use a large sans-serif for distinction. */
|
138
|
+
h1, h2, h3, h4, h5, h6 {
|
139
|
+
color: #000;
|
140
|
+
}
|
141
|
+
|
142
|
+
h1 {
|
143
|
+
font-size: 190%;
|
144
|
+
}
|
145
|
+
|
146
|
+
h2 {
|
147
|
+
font-size: 175%;
|
148
|
+
}
|
149
|
+
|
150
|
+
h3 {
|
151
|
+
font-size: 135%;
|
152
|
+
}
|
153
|
+
|
154
|
+
h4 {
|
155
|
+
font-size: 100%;
|
156
|
+
font-variant: small-caps;
|
157
|
+
}
|
158
|
+
|
159
|
+
h5 {
|
160
|
+
font-size: 100%;
|
161
|
+
}
|
162
|
+
|
163
|
+
h6 {
|
164
|
+
font-size: 90%;
|
165
|
+
font-style: italic;
|
166
|
+
}
|
167
|
+
|
168
|
+
/* SECTION 5: Make hyperlinks more usable.
|
169
|
+
Ensure links are underlined, and consider appending
|
170
|
+
the URL to the end of the link for usability. */
|
171
|
+
a:link, a:visited {
|
172
|
+
color: #00c;
|
173
|
+
font-weight: bold;
|
174
|
+
text-decoration: underline;
|
175
|
+
}
|
176
|
+
|
177
|
+
#content a:link:after, #content a:visited:after {
|
178
|
+
}
|
179
|
+
|
180
|
+
/* C&G */
|
181
|
+
|
182
|
+
.box .mainBox {
|
183
|
+
padding: 0;
|
184
|
+
margin: 0 -10px;
|
185
|
+
display: block;
|
186
|
+
}
|
187
|
+
|
188
|
+
#content .page-header {
|
189
|
+
display: block;
|
190
|
+
min-height: 16px;
|
191
|
+
border-bottom: 0 solid #eeeeee;
|
192
|
+
position: relative;
|
193
|
+
color: #222222;
|
194
|
+
overflow: hidden;
|
195
|
+
margin: 0;
|
196
|
+
padding: 0
|
197
|
+
}
|
198
|
+
|
199
|
+
#content .page-header h1 { font-size: 18px; margin: 0; }
|
200
|
+
|
201
|
+
#shipmap p {
|
202
|
+
margin: 0;
|
203
|
+
}
|
204
|
+
#shipmap li .dd-handle {
|
205
|
+
font-size: 50%;
|
206
|
+
}
|
207
|
+
#shipmap li .dd-handle span {
|
208
|
+
display: none;
|
209
|
+
}
|
210
|
+
#shipmap .dd-handle img {
|
211
|
+
margin-bottom: 20px;
|
212
|
+
}
|
213
|
+
#routeDrag ol ul {
|
214
|
+
padding-left: 0px;
|
215
|
+
}
|
216
|
+
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled {
|
217
|
+
opacity: .85 !important;
|
218
|
+
filter: Alpha(Opacity=85) !important;;
|
219
|
+
background-image: none;
|
220
|
+
}
|
221
|
+
|
222
|
+
#map {
|
223
|
+
height: 450px;
|
224
|
+
overflow: hidden;
|
225
|
+
border: 1px solid #c2c2c2;
|
226
|
+
}
|
227
|
+
#map .gm-style div {
|
228
|
+
margin: -38px 0 0 0;
|
229
|
+
width: 100%;
|
230
|
+
height: 80%;
|
231
|
+
}
|
232
|
+
.gmnoprint, .gmnoscreen, .gmnoprint .gm-style-cc, .gm-style-cc, .gm-style-mtc, .gm-style a {
|
233
|
+
color: transparent !important;
|
234
|
+
display: none !important;
|
235
|
+
}
|
236
|
+
|
193
237
|
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module CgAppBase
|
2
|
+
module CrossDomainConcern
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
def cors_check
|
6
|
+
if request and request.env["HTTP_ORIGIN"]
|
7
|
+
|
8
|
+
origin = request.env["HTTP_ORIGIN"]
|
9
|
+
allowed = ENV['ALLOWED_CORS']
|
10
|
+
|
11
|
+
if origin and allowed and allowed.include?(origin)
|
12
|
+
|
13
|
+
headers['Access-Control-Allow-Origin'] = origin
|
14
|
+
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS'
|
15
|
+
headers['Access-Control-Allow-Headers'] = 'X-Requested-With, X-Prototype-Version, Token'
|
16
|
+
headers['Access-Control-Max-Age'] = '60'
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -8,8 +8,19 @@ module CgAppBase
|
|
8
8
|
name.gsub(/\]/, '').gsub(/\[/, '_')
|
9
9
|
end
|
10
10
|
|
11
|
-
def icon(klass_ending, title='', style='')
|
12
|
-
|
11
|
+
def icon(klass_ending, title='', style='', mode_tooltip=false)
|
12
|
+
|
13
|
+
if mode_tooltip
|
14
|
+
has_tooltip = 'has-tooltip'
|
15
|
+
tooltip_original_title = "data-original-title='#{title}'"
|
16
|
+
my_title = ''
|
17
|
+
else
|
18
|
+
has_tooltip = ''
|
19
|
+
tooltip_original_title = ""
|
20
|
+
my_title = title
|
21
|
+
end
|
22
|
+
|
23
|
+
"<i style='#{style}' class='#{has_tooltip} icon-#{klass_ending}' #{tooltip_original_title}></i> #{my_title}".html_safe
|
13
24
|
end
|
14
25
|
|
15
26
|
def blueicon(klass_ending, title='')
|
@@ -9,16 +9,17 @@
|
|
9
9
|
<title><%= app_title %></title>
|
10
10
|
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Cg Fiche Client" %>">
|
11
11
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
12
|
-
<%= stylesheet_link_tag "application", media: "all" %>
|
13
|
-
<%= stylesheet_link_tag "application2", media: "all" %>
|
12
|
+
<%= stylesheet_link_tag "application", media: "all", data_turbolinks_track: true %>
|
13
|
+
<%= stylesheet_link_tag "application2", media: "all", data_turbolinks_track: true %>
|
14
|
+
<%= stylesheet_link_tag "print", media: "print", data_turbolinks_track: true %>
|
14
15
|
|
15
|
-
<%= javascript_include_tag "base" %>
|
16
|
-
<%= javascript_include_tag "application" %>
|
16
|
+
<%= javascript_include_tag "base", data_turbolinks_track: true %>
|
17
|
+
<%= javascript_include_tag "application", data_turbolinks_track: true %>
|
17
18
|
|
18
19
|
<link href='http://fonts.googleapis.com/css?family=Bitter:400,700|Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
|
19
20
|
<!--[if lt IE 9]>
|
20
|
-
<script src="assets/javascripts/ie/html5shiv.js" type="text/javascript"></script>
|
21
|
-
<script src="assets/javascripts/ie/respond.min.js" type="text/javascript"></script>
|
21
|
+
<script src="assets/javascripts/ie/html5shiv.js" type="text/javascript" data_turbolinks_track></script>
|
22
|
+
<script src="assets/javascripts/ie/respond.min.js" type="text/javascript" data_turbolinks_track></script>
|
22
23
|
<![endif]-->
|
23
24
|
|
24
25
|
<%= csrf_meta_tags %>
|
data/config/navigation.rb
CHANGED
@@ -65,6 +65,8 @@ SimpleNavigation::Configuration.run do |navigation|
|
|
65
65
|
if current_user.has_role? :admin
|
66
66
|
client_sub_items << {name: :customer_merges, descr: 'Fusionner clients', url: "customers_merges", icon: 'code-fork'}
|
67
67
|
client_sub_items << {name: :new_customer, descr: 'Nouveau client', url: "customers/new/particulier", icon: 'user'}
|
68
|
+
else
|
69
|
+
client_sub_items << {name: :new_customer, descr: 'Nouveau prospect', url: "customers/prospects/new", icon: 'user'}
|
68
70
|
end
|
69
71
|
|
70
72
|
client_sub_items.each do |sni|
|
@@ -74,10 +76,10 @@ SimpleNavigation::Configuration.run do |navigation|
|
|
74
76
|
ship_sub_items = []
|
75
77
|
if can?(:read, :shipping)
|
76
78
|
|
77
|
-
ship_sub_items << {name: :dashboard, descr: 'Tableau de bord', url: "shipping/
|
79
|
+
ship_sub_items << {name: :dashboard, descr: 'Tableau de bord', url: "shipping/shipment_orders", icon: 'dashboard'}
|
78
80
|
|
79
81
|
if can?(:manage, :shipping)
|
80
|
-
ship_sub_items << {name: :projections, descr: 'Projections', url: "shipping/
|
82
|
+
ship_sub_items << {name: :projections, descr: 'Projections', url: "shipping/shipment_orders/forecast", icon: 'signal'}
|
81
83
|
ship_sub_items << {name: :vehicles, descr: 'Véhicules', url: "shipping/vehicles", icon: 'truck'}
|
82
84
|
ship_sub_items << {name: :employees, descr: 'Employés', url: "shipping/employees", icon: 'user'}
|
83
85
|
ship_sub_items << {name: :shipping_routes, descr: 'Routes', url: "shipping/routes", icon: 'road'}
|
data/lib/cg_app_base/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cg_app_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.78
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Pineault
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -1052,6 +1052,7 @@ files:
|
|
1052
1052
|
- app/assets/stylesheets/vehicles.css.scss
|
1053
1053
|
- app/controllers/cg_app_base/application_controller.rb
|
1054
1054
|
- app/controllers/cg_app_base/redirect_tool_controller.rb
|
1055
|
+
- app/controllers/concerns/cg_app_base/cross_domain_concern.rb
|
1055
1056
|
- app/controllers/concerns/cg_app_base/ip_authorization_concern.rb
|
1056
1057
|
- app/helpers/cg_app_base/application_helper.rb
|
1057
1058
|
- app/models/ability.rb
|