Subversion Repositories SmartDukaan

Rev

Rev 37541 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37541 Rev 37558
Line 522... Line 522...
522
                                <select id="editStatus" name="editStatus" placeholder="Status"
522
                                <select id="editStatus" name="editStatus" placeholder="Status"
523
                                        class="form-control input-sm" onchange="editStatusAction()">
523
                                        class="form-control input-sm" onchange="editStatusAction()">
524
                                    <option value="" disabled selected>Status</option>
524
                                    <option value="" disabled selected>Status</option>
525
                                    <option value="followUp">Follow Up</option>
525
                                    <option value="followUp">Follow Up</option>
526
                                    <option value="notInterested">Not Interested</option>
526
                                    <option value="notInterested">Not Interested</option>
-
 
527
                                    <option value="onHold">On Hold</option>
527
                                    <option value="finalized">Finalized</option>
528
                                    <option value="finalized">Finalized</option>
528
                                </select>
529
                                </select>
529
                            </div>
530
                            </div>
530
 
531
 
531
                            <div class="col-lg-3 form-group">
532
                            <div class="col-lg-3 form-group">
Line 663... Line 664...
663
                                <select id="status" name="status" placeholder="Status"
664
                                <select id="status" name="status" placeholder="Status"
664
                                        class="form-control input-sm" onchange="statusAction()">
665
                                        class="form-control input-sm" onchange="statusAction()">
665
                                    <option value="" disabled selected>Status</option>
666
                                    <option value="" disabled selected>Status</option>
666
                                    <option value="followUp">Follow Up</option>
667
                                    <option value="followUp">Follow Up</option>
667
                                    <option value="notInterested">Not Interested</option>
668
                                    <option value="notInterested">Not Interested</option>
-
 
669
                                    <option value="onHold">On Hold</option>
668
                                    <option value="finalized">Finalized</option>
670
                                    <option value="finalized">Finalized</option>
669
                                </select>
671
                                </select>
670
                            </div>
672
                            </div>
671
 
673
 
672
                            <div class="col-lg-3 form-group">
674
                            <div class="col-lg-3 form-group">
Line 968... Line 970...
968
                            let ni = 0;
970
                            let ni = 0;
969
 
971
 
970
                            let fwup = 0;
972
                            let fwup = 0;
971
                            let htld = 0;
973
                            let htld = 0;
972
                            let pend = 0;
974
                            let pend = 0;
-
 
975
                            let hold = 0;
973
                            let final = 0;
976
                            let final = 0;
974
 
977
 
975
                            table.rows({
978
                            table.rows({
976
                                "search": "applied"
979
                                "search": "applied"
977
                            }).every(function () {
980
                            }).every(function () {
Line 990... Line 993...
990
                                } else if (status == "followUp") {
993
                                } else if (status == "followUp") {
991
                                    fwup++;
994
                                    fwup++;
992
                                } else if (status == "pending") {
995
                                } else if (status == "pending") {
993
 
996
 
994
                                    pend++;
997
                                    pend++;
-
 
998
                                } else if (status == "onHold") {
-
 
999
 
-
 
1000
                                    hold++;
995
                                } else if (status == "finalized") {
1001
                                } else if (status == "finalized") {
996
 
1002
 
997
                                    final++;
1003
                                    final++;
998
                                }
1004
                                }
999
                                var count = table.rows({search: 'applied'}).count();
1005
                                var count = table.rows({search: 'applied'}).count();
Line 1006... Line 1012...
1006
                                "data": {
1012
                                "data": {
1007
                                    "labels": [
1013
                                    "labels": [
1008
                                        "notInterested",
1014
                                        "notInterested",
1009
                                        "followUp",
1015
                                        "followUp",
1010
                                        "pending",
1016
                                        "pending",
-
 
1017
                                        "onHold",
1011
                                        "finalized",
1018
                                        "finalized",
1012
                                        "HotLeads"
1019
                                        "HotLeads"
1013
                                    ],
1020
                                    ],
1014
                                    "datasets": [
1021
                                    "datasets": [
1015
                                        {
1022
                                        {
1016
                                            "data": [
1023
                                            "data": [
1017
                                                ni, fwup, pend, final, htld
1024
                                                ni, fwup, pend, hold, final, htld
1018
                                            ],
1025
                                            ],
1019
                                            "backgroundColor": ["red", "#9ACD32", "pink", "blue", "green"],
1026
                                            "backgroundColor": ["red", "#9ACD32", "pink", "orange", "blue", "green"],
1020
                                            "label": "DataSet 1"
1027
                                            "label": "DataSet 1"
1021
                                        }
1028
                                        }
1022
                                    ]
1029
                                    ]
1023
                                },
1030
                                },
1024
                                "options": {
1031
                                "options": {