Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16935 Rev 16992
Línea 11... Línea 11...
11
    'question_id' => $question_uuid
11
    'question_id' => $question_uuid
12
];
12
];
Línea 13... Línea 13...
13
 
13
 
14
$routeAdd       = $this->url('microlearning/content/quizzes/questions/answers/add', $params);
14
$routeAdd       = $this->url('microlearning/content/quizzes/questions/answers/add', $params);
-
 
15
$routeDatatable = $this->url('microlearning/content/quizzes/questions/answers', $params);
Línea 15... Línea 16...
15
$routeDatatable = $this->url('microlearning/content/quizzes/questions/answers', $params);
16
$routeRegresar = $this->url('microlearning/content/quizzes/questions', ['quiz_id' => $quiz_uuid]);
16
 
17
 
17
$allowAdd = $acl->isAllowed($roleName, 'microlearning/content/quizzes/questions/answers/add') ? 1 : 0;
18
$allowAdd = $acl->isAllowed($roleName, 'microlearning/content/quizzes/questions/answers/add') ? 1 : 0;
Línea -... Línea 19...
-
 
19
$allowEdit = $acl->isAllowed($roleName, 'microlearning/content/quizzes/questions/answers/edit') ? 1 : 0;
-
 
20
$allowDelete = $acl->isAllowed($roleName, 'microlearning/content/quizzes/questions/answers/delete') ? 1 : 0;
-
 
21
 
18
$allowEdit = $acl->isAllowed($roleName, 'microlearning/content/quizzes/questions/answers/edit') ? 1 : 0;
22
 
19
$allowDelete = $acl->isAllowed($roleName, 'microlearning/content/quizzes/questions/answers/delete') ? 1 : 0;
23
 
Línea 20... Línea 24...
20
 
24
 
21
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
25
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 231... Línea 235...
231
        invalidHandler: function(form, validator) {
235
        invalidHandler: function(form, validator) {
Línea 232... Línea 236...
232
            
236
            
233
        }
237
        }
Línea -... Línea 238...
-
 
238
    });
-
 
239
 
-
 
240
    $('body').on('click', 'button.btn-back', function(e) { 
-
 
241
        e.preventDefault();
-
 
242
 
-
 
243
        window.location.href = '$routeRegresar';
-
 
244
 
Línea 234... Línea 245...
234
    });
245
    });
235
 
246
 
Línea 328... Línea 339...
328
            }).always(function() {
339
            }).always(function() {
329
                NProgress.done();
340
                NProgress.done();
330
            });
341
            });
331
        });
342
        });
Línea -... Línea 343...
-
 
343
 
-
 
344
 
332
 
345
 
333
    $('body').on('click', 'button.btn-delete', function(e) { 
346
    $('body').on('click', 'button.btn-delete', function(e) { 
334
        e.preventDefault();
347
        e.preventDefault();
Línea 412... Línea 425...
412
	 	         
425
	 	         
413
	 	         </div>
426
	 	         </div>
414
	 	     </div>
427
	 	     </div>
415
	 	</div>
428
	 	</div>
416
	 	<div class="card-footer text-right">
429
	 	<div class="card-footer text-right">
417
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
430
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-sync"></i> LABEL_REFRESH  </button>
418
							<?php if($allowAdd) : ?>
431
							<?php if($allowAdd) : ?>
419
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
432
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
433
							<?php endif; ?>
-
 
434
							
420
							<?php endif; ?>
435
							<button type="button" class="btn btn-primary btn-back"><i class="fa fa-undo"></i> LABEL_BACK </button>
421
	 	</div>
436
	 	</div>
422
	</div>
437
	</div>