Subversion Repositories SmartDukaan

Rev

Rev 34881 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34881 Rev 34947
Line 37... Line 37...
37
        <tr>
37
        <tr>
38
            <th>Product Id</th>
38
            <th>Product Id</th>
39
            <th>Catalog Brand</th>
39
            <th>Catalog Brand</th>
40
            <th>Gift Id</th>
40
            <th>Gift Id</th>
41
            <th>Status</th>
41
            <th>Status</th>
-
 
42
            <th>Commission</th>
-
 
43
            <th>Featured</th>
42
            <th>Expire Date</th>
44
            <th>Expire Date</th>
43
            <th>Action</th>
45
            <th>Action</th>
44
        </tr>
46
        </tr>
45
        </thead>
47
        </thead>
46
        <tbody>
48
        <tbody>
Line 48... Line 50...
48
            <tr>
50
            <tr>
49
                <td>$product.getId()</td>
51
                <td>$product.getId()</td>
50
                <td>$catalogIdMap.get($product.getCatalogId()).getBrand()</td>
52
                <td>$catalogIdMap.get($product.getCatalogId()).getBrand()</td>
51
                <td>$product.getGiftId()</td>
53
                <td>$product.getGiftId()</td>
52
                <td>$product.getStatus()</td>
54
                <td>$product.getStatus()</td>
-
 
55
                <td>#if($product.getCommission())$product.getCommission()
-
 
56
                #else
-
 
57
                    0
-
 
58
                #end
-
 
59
                </td>
-
 
60
                <td>$product.isFeatured()</td>
53
                <td> $dateFormatter.format( $product.getExpiryDate()) </td>
61
                <td> $dateFormatter.format( $product.getExpiryDate()) </td>
54
                <td>
62
                <td>
55
 
-
 
56
 
-
 
57
                    <button class="btn btn-info btn-sm edit-affiliate-product" data-target="#editAffiliateProductModal"
63
                    <button class="btn btn-info btn-sm edit-affiliate-product" data-target="#editAffiliateProductModal"
58
                            data-productid="$product.getId()">Update
64
                            data-productid="$product.getId()">Update
59
                    </button>
65
                    </button>
60
                    <button class="btn btn-primary btn-sm delete-affiliate-product"
66
                    <button class="btn btn-primary btn-sm delete-affiliate-product"
61
                            data-productid="$product.getId()" data-toggle="modal"
67
                            data-productid="$product.getId()" data-toggle="modal"
Line 104... Line 110...
104
                            </div>
110
                            </div>
105
                        </div>
111
                        </div>
106
                    </div>
112
                    </div>
107
 
113
 
108
                    <div class="row">
114
                    <div class="row">
109
                        <div class="col-md-6">
115
                        <div class="col-md-4">
110
                            <div class="form-group">
116
                            <div class="form-group">
111
                                <label for="status">Status *</label>
117
                                <label for="status">Status *</label>
112
                                <select id="status" name="status" class="form-control" required>
118
                                <select id="status" name="status" class="form-control" required>
113
                                    #foreach($status in $productStatus)
119
                                    #foreach($status in $productStatus)
114
                                        <option value="$status">$status</option>
120
                                        <option value="$status">$status</option>
115
                                    #end
121
                                    #end
116
                                </select>
122
                                </select>
117
                            </div>
123
                            </div>
118
                        </div>
124
                        </div>
119
                        <div class="col-md-6">
125
                        <div class="col-md-4">
-
 
126
                            <div class="form-group">
-
 
127
                                <label for="commission">Commission %</label>
-
 
128
                                <input type="number" class="form-control" id="commission" name="commission">
-
 
129
                            </div>
-
 
130
                        </div>
-
 
131
                        <div class="col-md-4">
120
                            <div class="form-group">
132
                            <div class="form-group">
121
                                <label for="expiry_date">Expiry Date</label>
133
                                <label for="expiry_date">Expiry Date</label>
122
                                <input type="datetime-local" class="form-control" id="expiry_date" name="expiryDate">
134
                                <input type="datetime-local" class="form-control" id="expiry_date" name="expiryDate">
123
                            </div>
135
                            </div>
124
                        </div>
136
                        </div>
125
                    </div>
137
                    </div>
-
 
138
 
126
                </form>
139
                </form>
127
            </div>
140
            </div>
-
 
141
            <div class="modal-footer d-flex justify-content-between align-items-center">
128
            <div class="modal-footer">
142
                <span class="pull-left">
-
 
143
                    <input type="checkbox" id="featured"> Featured
-
 
144
                </span>
-
 
145
                <div>
129
                <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
146
                    <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
130
                <button type="button" class="btn btn-primary saveAffiliateProduct">Save</button>
147
                    <button type="button" class="btn btn-primary saveAffiliateProduct">Save</button>
-
 
148
                </div>
131
            </div>
149
            </div>
132
        </div>
150
        </div>
133
    </div>
151
    </div>
134
</div>
152
</div>
135
 
153
 
Line 169... Line 187...
169
                            </div>
187
                            </div>
170
                        </div>
188
                        </div>
171
                    </div>
189
                    </div>
172
 
190
 
173
                    <div class="row">
191
                    <div class="row">
174
                        <div class="col-md-6">
192
                        <div class="col-md-4">
175
                            <div class="form-group">
193
                            <div class="form-group">
176
                                <label for="edit_status">Status *</label>
194
                                <label for="edit_status">Status *</label>
177
                                <select id="edit_status" name="status" class="form-control" required>
195
                                <select id="edit_status" name="status" class="form-control" required>
178
                                    #foreach($status in $productStatus)
196
                                    #foreach($status in $productStatus)
179
                                        <option value="$status">$status</option>
197
                                        <option value="$status">$status</option>
180
                                    #end
198
                                    #end
181
                                </select>
199
                                </select>
182
                            </div>
200
                            </div>
183
                        </div>
201
                        </div>
184
                        <div class="col-md-6">
202
                        <div class="col-md-4">
-
 
203
                            <div class="form-group">
-
 
204
                                <label for="edit_commission">Commission %</label>
-
 
205
                                <input type="number" class="form-control" id="edit_commission" name="commission"
-
 
206
                                       placeholder="Enter Commission Percentage">
-
 
207
                            </div>
-
 
208
                        </div>
-
 
209
                        <div class="col-md-4">
185
                            <div class="form-group">
210
                            <div class="form-group">
186
                                <label for="edit_expiry_date">Expiry Date</label>
211
                                <label for="edit_expiry_date">Expiry Date</label>
187
                                <input type="datetime-local" class="form-control" id="edit_expiry_date"
212
                                <input type="datetime-local" class="form-control" id="edit_expiry_date"
188
                                       name="expiryDate">
213
                                       name="expiryDate">
189
                            </div>
214
                            </div>
190
                        </div>
215
                        </div>
191
                    </div>
216
                    </div>
192
                </form>
217
                </form>
193
            </div>
218
            </div>
194
            <div class="modal-footer">
219
            <div class="modal-footer">
-
 
220
                 <span class="pull-left">
-
 
221
                    <input type="checkbox" id="edit_featured"> Featured
-
 
222
                </span>
195
                <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
223
                <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
196
                <button type="button" class="btn btn-primary updateAffiliateProduct">Update</button>
224
                <button type="button" class="btn btn-primary updateAffiliateProduct">Update</button>
197
            </div>
225
            </div>
198
        </div>
226
        </div>
199
    </div>
227
    </div>