Subversion Repositories SmartDukaan

Rev

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

Rev 33143 Rev 34066
Line 11... Line 11...
11
            </ol>
11
            </ol>
12
        </div>
12
        </div>
13
    </div>
13
    </div>
14
 
14
 
15
 
15
 
16
    <br>
16
 
17
    #if($isAdmin)
17
    #if($isAdmin)
-
 
18
        #if($isRBM)
-
 
19
            <div style="padding: 5px 10px; margin-top: 2px"
-
 
20
                 class="col-lg-2 form-group">
-
 
21
                <select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
-
 
22
                    <option value="" disabled selected>Partners</option>
-
 
23
                    #foreach($fofoId in $customRetailersMap.keySet())
-
 
24
                        <option value="$fofoId"
-
 
25
                                data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
-
 
26
                    #end
-
 
27
                </select>
-
 
28
            </div>
-
 
29
        #else
18
        <div class="row col-lg-12" style="float: right;">
30
        <div class="row col-lg-12" style="float: right;">
19
            <div class="col-lg-2">
31
            <div class="col-lg-2">
20
                <div class="input-group">
32
                <div class="input-group">
21
                    <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
33
                    <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
22
                           id="typeaheadpartner"
34
                           id="typeaheadpartner"
Line 26... Line 38...
26
                    <br>
38
                    <br>
27
                </div>
39
                </div>
28
            </div>
40
            </div>
29
        </div>
41
        </div>
30
    #end
42
    #end
-
 
43
    #end
-
 
44
    <br>
31
    <div class="row col-lg-12" style="float: right;">
45
    <div class="row col-lg-12" style="float: right;">
32
 
46
 
33
 
47
 
34
        #springMessage("reportspricedrop.from") <input type="date" id="startDate-price-drop-report" placeholder=""
48
        #springMessage("reportspricedrop.from") <input type="date" id="startDate-price-drop-report" placeholder=""
35
                                                       name="" value="$startDate">
49
                                                       name="" value="$startDate">
Line 135... Line 149...
135
            partnerId = selectedPartner.partnerId;
149
            partnerId = selectedPartner.partnerId;
136
 
150
 
137
            console.log(partnerId);
151
            console.log(partnerId);
138
        });
152
        });
139
    });
153
    });
-
 
154
    $(function () {
-
 
155
        $('#fofo-users').on('change', function () {
-
 
156
            var selectedFofoId = $(this).val();
-
 
157
            if (selectedFofoId) {
-
 
158
                partnerId = selectedFofoId;
-
 
159
                console.log("Partner ID set to:", partnerId);
-
 
160
            } else {
-
 
161
                alert("Please select a valid Fofo ID.");
-
 
162
            }
-
 
163
        });
-
 
164
    });
140
</script>
165
</script>
141
+#end
166
+#end
142
   
167
   
143
168