Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1616 | Rev 1618 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1481 eleazar 1
<?php
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
4
$roleName       = $currentUser->getUserTypeId();
5
 
1482 eleazar 6
$routeDatatable = $this->url('recruitment-and-selection/candidates');
1506 eleazar 7
$routeAdd = $this->url('recruitment-and-selection/candidates/add', ['vacancy_uuid' => 'UUID_PLACEHOLDER']);
1481 eleazar 8
 
1482 eleazar 9
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/add') ? 1 : 0;
10
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/delete') ? 1 : 0;
1613 eleazar 11
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/edit') ? 1 : 0;
1481 eleazar 12
 
13
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
14
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
15
 
16
 
17
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
18
 
1490 eleazar 19
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
20
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
1481 eleazar 21
 
1490 eleazar 22
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
23
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
24
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
25
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
26
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
27
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));
28
 
29
 
1481 eleazar 30
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
31
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
32
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
33
 
34
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
35
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
36
 
37
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
38
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
39
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
40
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
41
 
42
 
43
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
44
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
45
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
46
 
47
 
48
 
49
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
50
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
51
 
52
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
53
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
54
 
55
 
56
$this->inlineScript()->captureStart();
57
echo <<<JS
58
 
59
 
60
jQuery( document ).ready(function( $ ) {
61
 
62
    var allowAdd = $allowAdd;
1613 eleazar 63
    var allowDelete = $allowDelete;
64
    var allowEdit = $allowEdit;
1481 eleazar 65
 
66
        var gridTable = $('#gridTable').dataTable( {
67
            'processing': true,
68
            'serverSide': true,
69
            'searching': true,
70
            'order': [[ 1, 'asc' ]],
71
            'ordering':  true,
72
            'ordenable' : true,
73
            'responsive': true,
74
            'select' : false,
75
        	'paging': true,
76
            'pagingType': 'simple_numbers',
77
            'lengthMenu': [ [10, 25, 50, -1], [10, 25, 50, 'All'] ],
78
 
79
    		'ajax': {
80
    			'url' : '$routeDatatable',
81
    			'type' : 'get',
82
                'data': function ( d ) {
83
                },
84
                'beforeSend': function (request) {
85
                  NProgress.start();
86
                },
87
                'dataFilter': function(response) {
88
                    var response = jQuery.parseJSON( response );
89
 
90
                    var json                = {};
91
                    json.recordsTotal       = 0;
92
                    json.recordsFiltered    = 0;
93
                    json.data               = [];
94
 
95
                    if(response.success) {
96
                                               json.recordsTotal       = response.data.total;
97
                        json.recordsFiltered    = response.data.total;
98
                        json.data               = response.data.items;
99
                    } else {
100
                        $.fn.showError(response.data)
101
                    }
102
 
103
                    return JSON.stringify( json );
104
                }
105
    		},
106
            'language' : {
107
                'sProcessing':     'LABEL_DATATABLE_SPROCESSING',
108
                'sLengthMenu':     'LABEL_DATATABLE_SLENGTHMENU',
109
                'sZeroRecords':    'LABEL_DATATABLE_SZERORECORDS',
110
                'sEmptyTable':     'LABEL_DATATABLE_SEMPTYTABLE',
111
                'sInfo':           'LABEL_DATATABLE_SINFO',
112
                'sInfoEmpty':      'LABEL_DATATABLE_SINFOEMPTY',
113
                'sInfoFiltered':   'LABEL_DATATABLE_SINFOFILTERED',
114
                'sInfoPostFix':    '',
115
                'sSearch':         'LABEL_DATATABLE_SSEARCH',
116
                'sUrl':            '',
117
                'sInfoThousands':  ',',
118
                'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
119
                'oPaginate': {
120
                    'sFirst':    'LABEL_DATATABLE_SFIRST',
121
                    'sLast':     'LABEL_DATATABLE_SLAST',
122
                    'sNext':     'LABEL_DATATABLE_SNEXT',
123
                    'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
124
                },
125
                'oAria': {
126
                    'sSortAscending':  ': LABEL_DATATABLE_SSORTASCENDING',
127
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
128
                },
129
            },
130
            'drawCallback': function( settings ) {
131
                NProgress.done();
132
                $('button.btn-delete').confirmation({
133
                    rootSelector: 'button.btn-delete',
134
                    title : 'LABEL_ARE_YOU_SURE',
135
                    singleton : true,
136
                    btnOkLabel: 'LABEL_YES',
137
                    btnCancelLabel: 'LABEL_NO',
138
                    onConfirm: function(value) {
139
                        action = $(this).data('href');
140
                        NProgress.start();
141
                        $.ajax({
142
                            'dataType'  : 'json',
143
                            'accept'    : 'application/json',
144
                            'method'    : 'post',
145
                            'url'       :  action,
146
                        }).done(function(response) {
147
                            if(response['success']) {
148
                                $.fn.showSuccess(response['data']);
149
                                gridTable.api().ajax.reload(null, false);
150
                            } else {
151
                                $.fn.showError(response['data']);
152
                            }
153
                        }).fail(function( jqXHR, textStatus, errorThrown) {
154
                            $.fn.showError(textStatus);
155
                        }).always(function() {
156
                            NProgress.done();
157
                        });
158
                    },
159
                });
160
 
1492 eleazar 161
                $('#form-add #file').fileinput({
1484 eleazar 162
                    theme: 'fas',
163
                    language: 'es',
164
                    showUpload: false,
165
                    dropZoneEnabled: false,
166
                    maxFileCount: 1,
167
                    allowedFileExtensions: ['pdf', 'docx'],
1481 eleazar 168
                });
169
 
1484 eleazar 170
                $('body').on('click', 'button.btn-add', function(e) {
171
                     e.preventDefault();
172
 
173
 
1492 eleazar 174
                     $('#form-add #first_name').val('');
175
                     $('#form-add #last_name').val('');
176
                     $('#form-add #email').val('');
177
                     $('#form-add #file').fileinput('reset');
1583 eleazar 178
                     $('#form-add #file').val('');
1484 eleazar 179
                     validatorAdd.resetForm();
180
 
1616 eleazar 181
                     $('#add-candidate-box').modal('show');
1484 eleazar 182
                     return false;
1485 eleazar 183
                    });
1484 eleazar 184
 
1491 eleazar 185
                    $(".close-box, .btn-add-cancel").on("click", function(e){
1485 eleazar 186
                         e.preventDefault();
1616 eleazar 187
                         $('#add-candidate-box').modal('hide');
188
                         $('#edit-candidate-box').modal('hide');
1485 eleazar 189
                         return false;
190
                    });
191
 
1616 eleazar 192
    var validatorAdd = $('#form-edit').validate({
193
        debug: true,
194
        onclick: false,
195
        onkeyup: false,
196
        onfocusout: false,
197
        ignore: [],
198
        rules: {
199
            'first_name': {
200
                required: true,
201
                maxlength: 128,
202
            },
203
            'file': {
204
                required: false,
205
                extension: 'pdf|docx',
206
                accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
207
            },
208
            'last_name': {
209
                required: true,
210
            },
211
            'email' :  {
212
                required: true,
213
            }
214
        },
215
        submitHandler: function(form)
216
        {
217
            var formdata = false;
218
            if (window.FormData){
219
                formdata = new FormData(form); //form[0]);
220
            }
221
 
222
            $('input[type="submit"]').prop('disabled', true);
223
 
224
            $.ajax({
225
                'dataType'  : 'json',
226
                'accept'    : 'application/json',
227
                'method'    : 'post',
228
                'url'       :  $('#form-edit').attr('action'),
229
                'data'      :  formdata,
230
                'processData': false,
231
                'contentType': false,
232
            }).done(function(response) {
233
                if(response['success']) {
234
                    $.fn.showSuccess(response['data']);
235
 
236
                    $('#edit-candidate-box').modal('hide');
237
                    gridTable.api().ajax.reload(null, false);
238
                } else {
239
                    validatorAdd.resetForm();
240
                    if(jQuery.type(response['data']) == 'string') {
241
                        $.fn.showError(response['data']);
242
                    } else  {
243
                        $.each(response['data'], function( fieldname, errors ) {
244
                            $.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
245
                        });
246
                    }
247
                }
248
            }).fail(function( jqXHR, textStatus, errorThrown) {
249
                $.fn.showError(textStatus);
250
            }).always(function() {
251
                NProgress.done();
252
            });
253
            return false;
254
        },
255
        invalidHandler: function(form, validator) {
256
 
257
        }
258
    });
259
 
260
    $('body').on('click', 'button.btn-edit', function(e) {
261
            e.preventDefault();
262
 
263
            var url = $(this).data('href');
264
            $.ajax({
265
                'dataType'  : 'json',
266
                'accept'    : 'application/json',
267
                'method'    : 'get',
268
                'url'       :  url,
269
            }).done(function(response) {
270
                if(response['success']) {
1617 eleazar 271
                    $('#form-edit')[0].reset();
1616 eleazar 272
 
273
                    $('#form-edit').attr('action',url);
274
                    $('#form-edit #first_name').val(response['data']['first_name']);
275
                    $('#form-edit #last_name').val(response['data']['last_name']);
276
                    $('#form-edit #email').val(response['data']['email']);
277
                    $('#form-edit #file').fileinput('reset');
278
                    $('#form-edit #file').val('');
279
 
280
 
281
                    $('#form-edit #status').val(response['data']['status']);
282
 
283
                    $('#edit-candidate-box').modal('show');
284
                } else {
285
                    validatorEdit.resetForm();
286
                    if(jQuery.type(response['data']) == 'string') {
287
                        $.fn.showError(response['data']);
288
                    } else  {
289
                        $.each(response['data'], function( fieldname, errors ) {
290
                            $.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
291
                        });
292
                    }
293
                }
294
            }).fail(function( jqXHR, textStatus, errorThrown) {
295
                $.fn.showError(textStatus);
296
            }).always(function() {
297
                NProgress.done();
298
            });
299
        });
300
 
1486 eleazar 301
    var validatorAdd = $('#form-add').validate({
302
        debug: true,
303
        onclick: false,
304
        onkeyup: false,
305
        onfocusout: false,
306
        ignore: [],
307
        rules: {
1489 eleazar 308
            'first_name': {
1486 eleazar 309
                required: true,
310
                maxlength: 128,
1481 eleazar 311
            },
1486 eleazar 312
            'file': {
313
                required: true,
314
                extension: 'pdf|docx',
1495 eleazar 315
                accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
1486 eleazar 316
            },
317
            'last_name': {
318
                required: true,
319
            },
320
            'email' :  {
321
                required: true,
322
            }
323
        },
324
        submitHandler: function(form)
325
        {
326
            var formdata = false;
327
            if (window.FormData){
328
                formdata = new FormData(form); //form[0]);
329
            }
330
 
331
            $('input[type="submit"]').prop('disabled', true);
332
 
333
            $.ajax({
334
                'dataType'  : 'json',
335
                'accept'    : 'application/json',
336
                'method'    : 'post',
1494 eleazar 337
                'url'       :  $('#form-add').attr('action'),
1486 eleazar 338
                'data'      :  formdata,
339
                'processData': false,
340
                'contentType': false,
341
            }).done(function(response) {
342
                if(response['success']) {
343
                    $.fn.showSuccess(response['data']);
344
 
1616 eleazar 345
                    $('#add-candidate-box').modal('hide');
1486 eleazar 346
                    gridTable.api().ajax.reload(null, false);
347
                } else {
348
                    validatorAdd.resetForm();
349
                    if(jQuery.type(response['data']) == 'string') {
350
                        $.fn.showError(response['data']);
351
                    } else  {
352
                        $.each(response['data'], function( fieldname, errors ) {
1494 eleazar 353
                            $.fn.showFormErrorValidator('#form-add #' + fieldname, errors);
1486 eleazar 354
                        });
355
                    }
356
                }
357
            }).fail(function( jqXHR, textStatus, errorThrown) {
358
                $.fn.showError(textStatus);
359
            }).always(function() {
360
                NProgress.done();
361
            });
362
            return false;
363
        },
364
        invalidHandler: function(form, validator) {
365
 
366
        }
367
    });
368
 
369
            },
1481 eleazar 370
            'aoColumns': [
371
                { 'mDataProp': 'first_name' },
372
                { 'mDataProp': 'last_name' },
373
                { 'mDataProp': 'email' },
374
                { 'mDataProp': 'actions' },
375
    	    ],
376
            'columnDefs': [
377
 
378
 
379
                {
380
                    'targets': -1,
381
                    'orderable': false,
382
                    'render' : function ( data, type, row ) {
383
                        s = '';
384
 
1614 eleazar 385
                        if (allowEdit) {
1616 eleazar 386
                        s = s + '<button class="btn btn-info btn-sm btn-edit" data-href="' + data['link_edit']+ '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
1614 eleazar 387
                        }
388
 
1481 eleazar 389
                        if(allowDelete && data['link_delete']  ) {
390
                            s = s + '<button class="btn btn-danger btn-sm btn-delete" data-href="' + data['link_delete']+ '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-times"></i> LABEL_DELETE </button>&nbsp;';
391
                        }
392
 
393
                        return s;
394
                    }
395
                }
396
              ],
397
        });
398
 
399
    $('#form-filter #form_uuid').change(function(e) {
400
        e.preventDefault();
401
 
1503 eleazar 402
        var uuid = e.target.value;
403
 
1507 eleazar 404
        $('#form-add').attr('action', String("$routeAdd").replaceAll('UUID_PLACEHOLDER', uuid));
1503 eleazar 405
 
1599 eleazar 406
        gridTable.api().ajax.url("$routeDatatable" + "/" + uuid);
1481 eleazar 407
        gridTable.api().ajax.reload(null, false);
408
    })
409
 
410
 
411
    $('body').on('click', 'button.btn-refresh', function(e) {
412
        e.preventDefault();
413
        gridTable.api().ajax.reload(null, false);
414
    });
1507 eleazar 415
 
416
    $('#form-filter #form_uuid').change();
1481 eleazar 417
});
418
JS;
419
$this->inlineScript()->captureEnd();
420
?>
421
 
422
 
423
<!-- Content Header (Page header) -->
424
<section class="content-header">
425
	<div class="container-fluid">
426
    	<div class="row mb-2">
427
        	<div class="col-sm-12">
428
            	<h1>LABEL_CANDIDATES</h1>
429
			</div>
430
		</div>
431
	</div><!-- /.container-fluid -->
432
</section>
433
 
434
<section class="content">
435
	<div class="container-fluid">
436
    	<div class="row">
437
        	<div class="col-12">
438
				<div class="card">
439
					<div class="card-header">
440
						<?php
1486 eleazar 441
                        // $form = $this->form;
1481 eleazar 442
            	        $form->setAttributes([
443
                            'name'    => 'form-filter',
444
                            'id'      => 'form-filter',
445
                        ]);
446
 
447
                        $form->prepare();
448
                        echo $this->form()->openTag($form);
449
                        ?>
450
                        <div class="row">
451
                            <div class="col-md-6 col-sm-12">
452
                                <div class="form-group">
453
                                    <?php
454
                                    $element = $form->get('form_uuid');
455
 
1484 eleazar 456
                                    $element->setOptions(['label' => 'LABEL_VACANCIES']);
1481 eleazar 457
 
458
                                    $element->setAttributes(['class' => 'form-control']);
459
                                    echo $this->formLabel($element);
460
                                    echo $this->formSelect($element);
461
                                    ?>
462
                                </div>
463
                            </div>
464
 
465
                        </div>
466
						<?php echo $this->form()->closeTag($form); ?>
467
					</div>
468
					<div class="card-body">
469
        	    		<table id="gridTable" class="table   table-hover">
470
                      		<thead>
471
        						<tr>
472
                                	<th>LABEL_FIRST_NAME</th>
473
                                	<th>LABEL_LAST_NAME</th>
474
                                	<th>LABEL_EMAIL</th>
475
                                  	<th>LABEL_ACTIONS</th>
476
                                </tr>
477
                       		</thead>
478
                         	<tbody>
479
                         	</tbody>
480
                    	</table>
481
                   	</div>
1483 eleazar 482
                       <div class="card-footer clearfix">
483
                       		<div style="float:right;">
484
    							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
485
    							<?php if($allowAdd) : ?>
486
    							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
487
    							<?php endif; ?>
488
    						</div>
489
                     	</div>
1481 eleazar 490
          		</div>
491
           	</div>
492
        </div>
493
 	</div>
494
</section>
1616 eleazar 495
 
496
<!-- The Add Modal -->
497
<div class="modal" tabindex="-1" role="dialog" id="add-candidate-box">
1485 eleazar 498
	<div class="modal-dialog" role="document">
499
		<?php
1487 eleazar 500
	    //$form = $this->formA;
1485 eleazar 501
	    $form->setAttributes([
502
	       'method'    => 'post',
503
	        'name'      => 'form-add',
1496 eleazar 504
            'action'    => $routeAdd,
1485 eleazar 505
	        'id'        => 'form-add'
506
	    ]);
507
	    $form->prepare();
508
	    echo $this->form()->openTag($form);
509
 
510
	    ?>
511
    	<div class="modal-content">
512
      		<div class="modal-header">
513
        		<h3 class="modal-title">LABEL_NEW_CANDIDATE</h3>
514
      		</div>
515
      		<div class="modal-body">
516
      			<div class="form-group">
517
    				<?php
518
                        $element = $form->get('first_name');
519
                        $element->setOptions(['label' => 'LABEL_FIRST_NAME']);
520
                        $element->setAttributes(['class' => 'form-control']);
521
                        echo $this->formLabel($element);
522
                        echo $this->formText($element);
523
                    ?>
524
				</div>
525
				<div class="form-group">
526
    				<?php
527
                        $element = $form->get('last_name');
528
                        $element->setOptions(['label' => 'LABEL_LAST_NAME']);
529
                        $element->setAttributes(['class' => 'form-control']);
530
                        echo $this->formLabel($element);
531
                        echo $this->formText($element);
532
                    ?>
533
				</div>
534
      			<div class="form-group">
535
    				<?php
536
                        $element = $form->get('email');
537
                        $element->setOptions(['label' => 'LABEL_EMAIL']);
538
                        $element->setAttributes(['class' => 'form-control']);
539
                        echo $this->formLabel($element);
540
                        echo $this->formText($element);
541
                    ?>
542
				</div>
543
 
544
				<div class="form-group">
545
    				<?php
546
                    $element = $form->get('file');
547
 
548
                    $element->setAttributes(['class' => 'form-control',  'accept' => 'pdf/docx']);
549
                    $element->setOptions(['label' => 'LABEL_CURRICULUM']);
550
                    echo $this->formLabel($element);
551
                    ?>
552
                    <div class="file-loading">
553
                    	<?php echo $this->formFile($element); ?>
1493 eleazar 554
                    </div>
1485 eleazar 555
				</div>
556
          	</div>
557
         	<div class="modal-footer">
558
    			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
559
    			<button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
560
          	</div>
561
      	<?php echo $this->form()->closeTag($form); ?>
562
    	</div>
563
	</div>
1616 eleazar 564
</div>
565
 
566
<!-- The Edit Modal -->
567
<div class="modal" tabindex="-1" role="dialog" id="edit-candidate-box">
568
	<div class="modal-dialog" role="document">
569
		<?php
570
	    $form->setAttributes([
571
	       'method'    => 'post',
572
	        'name'      => 'form-edit',
573
	        'id'        => 'form-edit'
574
	    ]);
575
	    $form->prepare();
576
	    echo $this->form()->openTag($form);
577
 
578
	    ?>
579
    	<div class="modal-content">
580
      		<div class="modal-header">
581
        		<h3 class="modal-title">LABEL_CANDIDATE</h3>
582
      		</div>
583
      		<div class="modal-body">
584
      			<div class="form-group">
585
    				<?php
586
                        $element = $form->get('first_name');
587
                        $element->setOptions(['label' => 'LABEL_FIRST_NAME']);
588
                        $element->setAttributes(['class' => 'form-control']);
589
                        echo $this->formLabel($element);
590
                        echo $this->formText($element);
591
                    ?>
592
				</div>
593
				<div class="form-group">
594
    				<?php
595
                        $element = $form->get('last_name');
596
                        $element->setOptions(['label' => 'LABEL_LAST_NAME']);
597
                        $element->setAttributes(['class' => 'form-control']);
598
                        echo $this->formLabel($element);
599
                        echo $this->formText($element);
600
                    ?>
601
				</div>
602
      			<div class="form-group">
603
    				<?php
604
                        $element = $form->get('email');
605
                        $element->setOptions(['label' => 'LABEL_EMAIL']);
606
                        $element->setAttributes(['class' => 'form-control']);
607
                        echo $this->formLabel($element);
608
                        echo $this->formText($element);
609
                    ?>
610
				</div>
611
 
612
				<div class="form-group">
613
    				<?php
614
                    $element = $form->get('file');
615
 
616
                    $element->setAttributes(['class' => 'form-control',  'accept' => 'pdf/docx']);
617
                    $element->setOptions(['label' => 'LABEL_CURRICULUM']);
618
                    echo $this->formLabel($element);
619
                    ?>
620
                    <div class="file-loading">
621
                    	<?php echo $this->formFile($element); ?>
622
                    </div>
623
				</div>
624
          	</div>
625
         	<div class="modal-footer">
626
    			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
627
    			<button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
628
          	</div>
629
      	<?php echo $this->form()->closeTag($form); ?>
630
    	</div>
631
	</div>
1485 eleazar 632
</div>