Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16398 | Rev 16400 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16398 Rev 16399
Línea 150... Línea 150...
150
    			'url' : '$routeDatatable',
150
    			'url' : '$routeDatatable',
151
    			'type' : 'get',
151
    			'type' : 'get',
152
                'beforeSend': function (request) {
152
                'beforeSend': function (request) {
153
                  NProgress.start();
153
                  NProgress.start();
154
                },
154
                },
155
                'dataFilter': function(response) {
-
 
156
                    var response = jQuery.parseJSON( response );
-
 
157
                    
-
 
158
                    var json                = {};
-
 
159
                    json.recordsTotal       = 0;
-
 
160
                    json.recordsFiltered    = 0;
-
 
161
                    json.data               = [];
-
 
162
                    
-
 
163
                    
-
 
164
                    if(response.success) {
-
 
165
                        json.recordsTotal       = response.data.total;
-
 
166
                        json.recordsFiltered    = response.data.total;
-
 
167
                        json.data               = response.data.items;
-
 
168
                    } else {
-
 
169
                        $.fn.showError(response.data)
-
 
170
                    }
-
 
171
                    
-
 
172
                    return JSON.stringify( json );
-
 
173
                },
-
 
174
                'aoColumns': [
155
                'aoColumns': [
175
                    { 'mDataProp': 'first_name' },
156
                    { 'mDataProp': 'first_name' },
176
                    { 'mDataProp': 'last_name' },
157
                    { 'mDataProp': 'last_name' },
177
                    { 'mDataProp': 'email' },
158
                    { 'mDataProp': 'email' },
178
                    { 'mDataProp': 'total_by_day' },
159
                    { 'mDataProp': 'total_by_day' },
179
                    { 'mDataProp': 'added_on' }
160
                    { 'mDataProp': 'added_on' },
180
                ],
161
                ],
181
    		},
162
    		},
182
    });
163
    });
Línea 257... Línea 238...
257
                </div>
238
                </div>
258
            </div>
239
            </div>
259
        </div>
240
        </div>
260
    </div>
241
    </div>
Línea -... Línea 242...
-
 
242
 
-
 
243
    <!-- <div id="result"></div> -->
-
 
244
 
-
 
245
    <!-- <script id="theTmpl" type="text/x-jsrender">
-
 
246
        <div class="row">
-
 
247
            <div class="col-12" id="row-list">
-
 
248
                <div class="card">
-
 
249
                    <div class="card-header">
-
 
250
                        <h2>Progreso Diario de contactos</h2>
-
 
251
                        <div class="form-group">
-
 
252
                            <label>LABEL_DATE_RANGE</label>
-
 
253
 
-
 
254
                            <div class="input-group">
-
 
255
                                <div class="input-group-prepend">
-
 
256
                                    <span class="input-group-text"><i class="far fa-calendar"></i></span>
-
 
257
                                </div>
-
 
258
                                <input type="text" class="form-control float-right" name="filterdate" id="filterdate">
-
 
259
                            </div>
-
 
260
                        </div>
-
 
261
                    </div>
-
 
262
                    <div class="card-body">
-
 
263
                        <div class="row">
-
 
264
                            <div class="col-lg-12 col-12 chart">
-
 
265
                                <table id="anderson" class="table table-bordered table-responsive">
-
 
266
                                    <thead>
-
 
267
                                        <tr>
-
 
268
                                            <th>Nombre</th>
-
 
269
                                            <th>Apellido</th>
-
 
270
                                            <th>Email</th>
-
 
271
                                            <th>Total Agregados</th>
-
 
272
                                            <th>Fecha</th>
-
 
273
                                        </tr>
-
 
274
                                    </thead>
-
 
275
                                    <tbody>
-
 
276
                                        <tr>
-
 
277
                                            <td>{{:name}}</td>
-
 
278
                                            <td>{{:last_name}}</td>
-
 
279
                                            <td>{{:email}}</td>
-
 
280
                                            <td>{{:total_by_day}}</td>
-
 
281
                                            <td>{{:added_on}}</td>
-
 
282
                                        </tr>
-
 
283
                                    </tbody>
-
 
284
                                </table>
-
 
285
                            </div>
-
 
286
                        </div>
-
 
287
                    </div>
-
 
288
                </div>
-
 
289
            </div>
-
 
290
        </div>
-
 
291
<div>
-
 
292
</div>
261
 
293
</script> -->
Línea 262... Línea 294...
262
</section>
294
</section>
263
 
295
 
264
<div class="row">
296
<div class="row">