Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15386 Rev 15389
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
$roleName = $currentUser->getUserTypeId();
5
$roleName = $currentUser->getUserTypeId();
Línea -... Línea 6...
-
 
6
 
-
 
7
$allowDownload  = $acl->isAllowed($roleName, 'microlearning/reports/progress-for-capsule/excel') ? 1 : 0;
-
 
8
 
-
 
9
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
Línea 6... Línea 10...
6
 
10
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
7
$allowDownload  = $acl->isAllowed($roleName, 'microlearning/reports/progress-for-capsule/excel') ? 1 : 0;
11
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.min.js'));
Línea 58... Línea 62...
58
            'url'       :  $('#form-filter').attr('action'), 
62
            'url'       :  $('#form-filter').attr('action'), 
59
            'data'      :  $('#form-filter').serialize(),
63
            'data'      :  $('#form-filter').serialize(),
60
        }).done(function(response) {
64
        }).done(function(response) {
61
            if(response['success']) {
65
            if(response['success']) {
Línea -... Línea 66...
-
 
66
 
-
 
67
  
Línea 62... Línea 68...
62
 
68
 
Línea 63... Línea 69...
63
 
69
 
-
 
70
                if(response['data']['capsules']) { 
-
 
71
 
-
 
72
                  $('#form-filter #capsule_uuid').empty();      
-
 
73
 
-
 
74
                  $.each(response['data']['capsules'], function( value, label ) {
-
 
75
                        $('#form-filter #capsule_uuid').append($('<option>', {
-
 
76
                            value: value,
Línea 64... Línea -...
64
                if(response['data']['capsules']) { 
-
 
65
 
-
 
66
                    $('#form-filter #capsule_uuid').empty();    
-
 
Línea 67... Línea 77...
67
 
77
                            text: label
68
                    $.each(response['data']['capsules'], function( value, label ) {
78
                        }));
Línea 69... Línea 79...
69
                      $('#form-filter #capsule_uuid').append(new Option(label, value));
79
                     });
70
                    });
80
 
71
 
81
 
Línea 155... Línea 165...
155
        $.fn.changeFilter();
165
        $.fn.changeFilter();
Línea 156... Línea 166...
156
    
166
    
Línea -... Línea 167...
-
 
167
 
-
 
168
    });
-
 
169
 
-
 
170
    $('#topic_uuid').select2({
-
 
171
        theme: 'bootstrap4',
-
 
172
        width: '100%',
-
 
173
    });
-
 
174
 
-
 
175
 
-
 
176
 
-
 
177
    $('#capsule_uuid').select2({
-
 
178
        theme: 'bootstrap4',
-
 
179
        width: '100%',
-
 
180
    });
-
 
181
 
Línea 157... Línea 182...
157
 
182
 
158
    });
183