Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 20 Rev 15355
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
$roleName = $currentUser->getUserTypeId();
5
$roleName = $currentUser->getUserTypeId();
6
 
6
 
Línea -... Línea 7...
-
 
7
 
7
 
8
$routeDatatable = $this->url('settings/push-templates');
Línea 8... Línea 9...
8
$routeDatatable = $this->url('settings/push-templates');
9
$routeImport    = $this->url('settings/push-templates/import');
9
$routeDashboard = $this->url('dashboard');
10
 
Línea 305... Línea 306...
305
        $('body').on('click', 'button.btn-cancel', function(e) {
306
        $('body').on('click', 'button.btn-cancel', function(e) {
306
            e.preventDefault();
307
            e.preventDefault();
307
            $('#modal').modal('hide');
308
            $('#modal').modal('hide');
308
        });
309
        });
Línea -... Línea 310...
-
 
310
 
-
 
311
        $('body').on('click', 'button.btn-import', function(e) {
-
 
312
            e.preventDefault();
-
 
313
            NProgress.start();
-
 
314
            $.ajax({
-
 
315
                'dataType': 'json',
-
 
316
                'method': 'post',
-
 
317
                'url': '$routeImport',
-
 
318
            }).done(function(response) {
-
 
319
                if (response['success']) {
-
 
320
                    $.fn.showSuccess(response['data']);
-
 
321
                    gridTable.api().ajax.reload(null, false);
-
 
322
                } else {
-
 
323
                    $.fn.showError(response['data']);
-
 
324
                }
-
 
325
            }).fail(function(jqXHR, textStatus, errorThrown) {
-
 
326
                $.fn.showError(textStatus);
-
 
327
            }).always(function() {
-
 
328
                NProgress.done();
-
 
329
            });
-
 
330
            return false;
-
 
331
        });
Línea 309... Línea 332...
309
 
332
 
Línea 310... Línea 333...
310
 
333
 
Línea 350... Línea 373...
350
                    	</table>
373
                    	</table>
351
                   	</div>
374
                   	</div>
352
                   	<div class="card-footer clearfix">
375
                   	<div class="card-footer clearfix">
353
                   		<div style="float:right;">
376
                   		<div style="float:right;">
354
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
377
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
-
 
378
    						<?php if ($allowImport) : ?>
-
 
379
                            	<button type="button" class="btn btn-primary btn-import"><i class="fa fa-upload"></i> LABEL_IMPORT </button>
-
 
380
                            <?php endif; ?>
355
						</div>
381
						</div>
356
                 	</div>
382
                 	</div>
357
          		</div>
383
          		</div>
358
           	</div>     
384
           	</div>     
359
        </div>          
385
        </div>