Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 4938 Rev 14614
Línea 55... Línea 55...
55
            'url'       :  $('#form-filter').attr('action'), 
55
            'url'       :  $('#form-filter').attr('action'), 
56
            'data'      :  $('#form-filter').serialize(),
56
            'data'      :  $('#form-filter').serialize(),
57
        }).done(function(response) {
57
        }).done(function(response) {
58
            if(response['success']) {
58
            if(response['success']) {
Línea 59... Línea -...
59
 
-
 
60
                $('#tableStudents tbody').empty();
-
 
61
                $('#tableStudents tbody').append(
-
 
Línea -... Línea 59...
-
 
59
 
-
 
60
 
-
 
61
                if(response['data']['capsules']) { 
-
 
62
 
-
 
63
                    $('#form-filter #capsule_uuid').empty();    
-
 
64
 
-
 
65
                    $.each(response['data']['capsules'], function( value, label ) {
62
                    $( "#progressRowTemplate" ).render( response['data'] )
66
                      $('#form-filter #capsule_uuid').append(new Option(label, value));
-
 
67
                    });
-
 
68
                } 
-
 
69
               
-
 
70
                if(response['data']['items']) { 
-
 
71
                    $('#gridTable tbody').empty();
Línea -... Línea 72...
-
 
72
                    $('#gridTable tbody').append(
-
 
73
                        $( "#progressRowTemplate" ).render( response['data']['items'] )
-
 
74
    
Línea 63... Línea 75...
63
 
75
                    );
64
                );
76
        
65
    
77
                }
66
 
78
 
67
            } else {
79
            } else {
68
                if(jQuery.type(response['data']) == 'string') {
80
                if(jQuery.type(response['data']) == 'string') {
69
                    $.fn.showError(response['data']);
81
                    $.fn.showError(response['data']);
70
                } else  {
82
                } else  {
71
                    $.each(response['data'], function( fieldname, errors ) {
83
                    $.each(response['data'], function( fieldname, errors ) {
72
                        $.fn.showFormErrorValidator('#form-slide-video-edit #' + fieldname, errors);
84
                        $.fn.showFormErrorValidator('#form-filter #' + fieldname, errors);
73
                    });
85
                    });
Línea 132... Línea 144...
132
                        ?>		
144
                        ?>		
133
                        <div class="row">
145
                        <div class="row">
134
                            <div class="col-md-6 col-sm-12">
146
                            <div class="col-md-6 col-sm-12">
135
                                <div class="form-group">
147
                                <div class="form-group">
136
                                    <?php
148
                                    <?php
137
                                    //$element = $form->get('topic_uuid');
149
                                    $element = $form->get('topic_uuid');
138
                                   
-
 
139
                                   // $element->setOptions(['label' => 'LABEL_TOPIC']);
150
                                    $element->setOptions(['label' => 'LABEL_TOPIC']);
Línea 140... Línea 151...
140
                                    
151
                                    
141
                                   // $element->setAttributes(['class' => 'form-control']);
152
                                    $element->setAttributes(['class' => 'form-control']);
142
                                   // echo $this->formLabel($element);
153
                                    echo $this->formLabel($element);
143
                                   // echo $this->formSelect($element);
154
                                    echo $this->formSelect($element);
144
                                    ?>
155
                                    ?>
145
                                </div>	
156
                                </div>	
146
                            </div>
157
                            </div>
147
                            <div class="col-md-6 col-sm-12">
158
                            <div class="col-md-6 col-sm-12">
148
                                <div class="form-group">
159
                                <div class="form-group">
149
                                    <?php
160
                                    <?php
150
                                    //$element = $form->get('capsule_uuid');
161
                                    $element = $form->get('capsule_uuid');
151
                                   // $element->setOptions(['label' => 'LABEL_CAPSULE']);
162
                                    $element->setOptions(['label' => 'LABEL_CAPSULE']);
152
                                   // $element->setAttributes(['class' => 'form-control']);
163
                                    $element->setAttributes(['class' => 'form-control']);
153
                                   // echo $this->formLabel($element);
164
                                    echo $this->formLabel($element);
154
                                    //echo $this->formSelect($element);
165
                                    echo $this->formSelect($element);
155
                                    ?>
166
                                    ?>
156
                                </div>				
167
                                </div>				
-
 
168
                            </div>
157
                            </div>
169
                            <!-- 
158
                            <div
170
                            <div
159
                                class="col-md-12 col-sm-12"
171
                                class="col-md-12 col-sm-12"
160
                            >
172
                            >
161
                                <div style="float:right;">
173
                                <div style="float:right;">
162
                                    <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
-
 
163
                                    <?php if($allowUpload) : ?>
-
 
164
                                        <button type="button" class="btn btn-primary btn-upload"><i class="fa fa-upload"></i> LABEL_UPLOAD  </button>
-
 
165
                                    <?php endif; ?>
-
 
166
                                    <?php if($allowNotification) : ?>
-
 
167
                                        <button type="button" class="btn btn-primary btn-notification"><i class="fa fa-tablet"></i> LABEL_NOTIFICATION </button>
-
 
-
 
174
                                    <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
168
                                    <?php endif; ?>
175
                
169
                                </div>
176
                                </div>
-
 
177
                            </div>
170
                            </div>
178
                             -->
171
                        </div>
179
                        </div>
172
						<?php echo $this->form()->closeTag($form); ?>
180
						<?php echo $this->form()->closeTag($form); ?>
173
					</div>            
181
					</div>            
174
					<div class="card-body">
182
					<div class="card-body">
175
        	    		<table id="gridTable" class="table   table-hover">
183
        	    		<table id="gridTable" class="table   table-hover">
176
                      		<thead>
184
                      		<thead>
177
        						<tr>
185
        						<tr>
178
									<th style="width: 12%">LABEL_FIRST_NAME</th>
186
									<th style="width: 12%">LABEL_FIRST_NAME</th>
179
									<th style="width: 12%">LABEL_LAST_NAME</th>
187
									<th style="width: 12%">LABEL_LAST_NAME</th>
180
									<th style="width: 16%">LABEL_EMAIL_NAME</th>
188
									<th style="width: 16%">LABEL_EMAIL</th>
181
       								<th style="width: 20%">LABEL_DATE</th>
189
       								<th style="width: 20%">LABEL_DATE</th>
182
                      				<th style="width: 12%">LABEL_REPORTS_PROGRESS</th>
-
 
-
 
190
                      				<th style="width: 20%">LABEL_REPORTS_PROGRESS</th>
183
                      				<th style="width: 8%" class="text-right">%</th>
191
 
184
                                </tr>
192
                                </tr>
185
                       		</thead>
193
                       		</thead>
186
                         	<tbody>
194
                         	<tbody>
187
                         	</tbody>
195
                         	</tbody>
Línea 209... Línea 217...
209
        </td>
217
        </td>
Línea 210... Línea 218...
210
 
218
 
211
        <td style="width: 20%">
219
        <td style="width: 20%">
212
            LABEL_REPORTS_FIRST_DATE 
220
            LABEL_REPORTS_FIRST_DATE 
213
            <br> 
221
            <br> 
214
            {{>first_date}} {{>first_time}}
222
            {{>added_on}}
215
            <br>
223
            <br><br>
216
            LABEL_REPORTS_LAST_DATE
224
            LABEL_REPORTS_LAST_DATE
217
            <br> 
225
            <br> 
218
            {{>last_date}} {{>last_time}}
226
            {{>updated_on}}
219
        </td>
227
        </td>
-
 
228
        <td style="width: 20%">
-
 
229
 
220
        <td style="width: 12%">
230
 
221
            <div class="progress progress-xs progress-striped active">
231
            <div class="progress progress-xs progress-striped active" style="height: 15px">
-
 
232
                <div class="progress-bar {{if completed == '1' }} bg-success {{ else }} bg-primary {{/if}}" style="width: {{>progress}}%">
-
 
233
{{>progress}}  %
222
                <div class="progress-bar bg-primary" style="width: {{>total_capsules_percentaje}}%"></div>
234
                </div>
223
            </div>
235
            </div>
224
        </td>
-
 
-
 
236
        </td>
225
        <td style="width: 8%" class="text-right">{{>total_capsules_percentaje}}</td>
237
 
226
    </tr> 
238
    </tr>