Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1648 Rev 1649
Línea 13... Línea 13...
13
$allowEmail = $acl->isAllowed($roleName, 'recruitment-and-selection/user-by-email') ? 1 : 0;
13
$allowEmail = $acl->isAllowed($roleName, 'recruitment-and-selection/user-by-email') ? 1 : 0;
Línea 14... Línea 14...
14
 
14
 
15
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
15
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
Línea -... Línea 16...
-
 
16
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
Línea 16... Línea 17...
16
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
17
 
Línea 17... Línea 18...
17
 
18
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
18
 
19
 
Línea 52... Línea 53...
52
 
53
 
53
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
54
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
Línea -... Línea 55...
-
 
55
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
-
 
56
 
-
 
57
 
-
 
58
$status_active = \LeadersLinked\Model\RecruitmentSelectionCandidate::STATUS_ACTIVE;
-
 
59
$status_inactive = \LeadersLinked\Model\RecruitmentSelectionCandidate::STATUS_INACTIVE;
-
 
60
 
-
 
61
$preselection_0 = \LeadersLinked\Model\RecruitmentSelectionCandidate::PRE_SELECTION_0;
-
 
62
$preselection_1 = \LeadersLinked\Model\RecruitmentSelectionCandidate::PRE_SELECTION_1;
-
 
63
$preselection_2 = \LeadersLinked\Model\RecruitmentSelectionCandidate::PRE_SELECTION_2;
54
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
64
$preselection_3 = \LeadersLinked\Model\RecruitmentSelectionCandidate::PRE_SELECTION_3;
55
 
65
$preselection_4 = \LeadersLinked\Model\RecruitmentSelectionCandidate::PRE_SELECTION_4;
56
 
66
 
57
$this->inlineScript()->captureStart();
67
$this->inlineScript()->captureStart();
58
echo <<<JS
68
echo <<<JS
Línea 173... Línea 183...
173
                $('#form-add #first_name').val('');
183
                $('#form-add #first_name').val('');
174
                $('#form-add #last_name').val('');
184
                $('#form-add #last_name').val('');
175
                $('#form-add #email').val('');
185
                $('#form-add #email').val('');
176
                $('#form-add #file').fileinput('reset');
186
                $('#form-add #file').fileinput('reset');
177
                $('#form-add #file').val('');
187
                $('#form-add #file').val('');
-
 
188
                $('#form-add #status').val('$status_active');
-
 
189
                $('#form-add #pre_selection').val('$preselection_0');
-
 
190
                CKEDITOR.instances['content'].setData('');
178
                validatorAdd.resetForm();
191
                validatorAdd.resetForm();
Línea 179... Línea 192...
179
 
192
 
180
                $('#add-candidate-box').modal('show');
193
                $('#add-candidate-box').modal('show');
181
                return false;
194
                return false;
Línea 208... Línea 221...
208
                        required: true,
221
                        required: true,
209
                    },
222
                    },
210
                    'email': {
223
                    'email': {
211
                        required: true,
224
                        required: true,
212
                    },
225
                    },
-
 
226
                    'pre_selection':{
-
 
227
                        required: false,
-
 
228
                    },
-
 
229
                    'content':{
-
 
230
                        required: false,
-
 
231
                    },
213
                    'status': {
232
                    'status': {
214
                        required: true,
233
                        required: true,
215
                    }
234
                    }
216
                },
235
                },
217
                submitHandler: function (form) {
236
                submitHandler: function (form) {
Línea 273... Línea 292...
273
 
292
 
274
                        $('#form-edit').attr('action', url);
293
                        $('#form-edit').attr('action', url);
275
                        $('#form-edit #first_name').val(response['data']['first_name']);
294
                        $('#form-edit #first_name').val(response['data']['first_name']);
276
                        $('#form-edit #last_name').val(response['data']['last_name']);
295
                        $('#form-edit #last_name').val(response['data']['last_name']);
-
 
296
                        $('#form-edit #email').val(response['data']['email']);
-
 
297
                        $('#form-edit #status').val(response['data']['status']);
277
                        $('#form-edit #email').val(response['data']['email']);
298
                        CKEDITOR.instances['content'].setData(response['data']['content']);
278
                        $('#form-edit #file').fileinput('reset');
299
                        $('#form-edit #file').fileinput('reset');
Línea 279... Línea 300...
279
                        $('#form-edit #file').val('');
300
                        $('#form-edit #file').val('');
Línea 319... Línea 340...
319
                        required: true,
340
                        required: true,
320
                    },
341
                    },
321
                    'email': {
342
                    'email': {
322
                        required: true,
343
                        required: true,
323
                    },
344
                    },
-
 
345
                    'pre_selection':{
-
 
346
                        required: false,
-
 
347
                    },
-
 
348
                    'content':{
-
 
349
                        required: false,
-
 
350
                    },
324
                    'status': {
351
                    'status': {
325
                        required: true,
352
                        required: true,
326
                    }
353
                    }
327
                },
354
                },
328
                submitHandler: function (form) {
355
                submitHandler: function (form) {
Línea 564... Línea 591...
564
                    $element->setAttributes(['class' => 'form-control']);
591
                    $element->setAttributes(['class' => 'form-control']);
565
                    echo $this->formLabel($element);
592
                    echo $this->formLabel($element);
566
                    echo $this->formText($element);
593
                    echo $this->formText($element);
567
                    ?>
594
                    ?>
568
                </div>
595
                </div>
-
 
596
                <div class="form-group">
-
 
597
              	   <?php 
-
 
598
                     $element = $form->get('description');
-
 
599
                     $element->setAttributes(['class' => 'form-control']);    
-
 
600
                     $element->setOptions(['label' => 'LABEL_DESCRIPTION']);                                       
-
 
601
                     echo $this->formLabel($element);
569
 
-
 
-
 
602
                     echo $this->formTextArea($element);
-
 
603
                    ?>
-
 
604
      	        </div>
-
 
605
                  <div class="form-group">
-
 
606
                    <?php
-
 
607
                    $element = $form->get('pre_selection');
-
 
608
                    $element->setAttributes(['class' => 'form-control']);
-
 
609
                    $element->setOptions(['label' => 'LABEL_PRE_SELECTION']);
-
 
610
                    echo $this->formLabel($element);
-
 
611
                    echo $this->formSelect($element);
-
 
612
                    ?>
-
 
613
                </div>
570
                <div class="form-group">
614
                <div class="form-group">
571
                    <?php
615
                    <?php
572
                    $element = $form->get('file');
616
                    $element = $form->get('file');
Línea 573... Línea 617...
573
 
617
 
Línea 642... Línea 686...
642
                    $element->setAttributes(['class' => 'form-control']);
686
                    $element->setAttributes(['class' => 'form-control']);
643
                    echo $this->formLabel($element);
687
                    echo $this->formLabel($element);
644
                    echo $this->formText($element);
688
                    echo $this->formText($element);
645
                    ?>
689
                    ?>
646
                </div>
690
                </div>
-
 
691
                <div class="form-group">
-
 
692
              	   <?php 
-
 
693
                     $element = $form->get('description');
-
 
694
                     $element->setAttributes(['class' => 'form-control']);    
-
 
695
                     $element->setOptions(['label' => 'LABEL_DESCRIPTION']);                                       
-
 
696
                     echo $this->formLabel($element);
647
 
-
 
-
 
697
                     echo $this->formTextArea($element);
-
 
698
                    ?>
-
 
699
      	        </div>
-
 
700
                  <div class="form-group">
-
 
701
                    <?php
-
 
702
                    $element = $form->get('pre_selection');
-
 
703
                    $element->setAttributes(['class' => 'form-control']);
-
 
704
                    $element->setOptions(['label' => 'LABEL_PRE_SELECTION']);
-
 
705
                    echo $this->formLabel($element);
-
 
706
                    echo $this->formSelect($element);
-
 
707
                    ?>
-
 
708
                </div>
648
                <div class="form-group">
709
                <div class="form-group">
649
                    <?php
710
                    <?php
650
                    $element = $form->get('file');
711
                    $element = $form->get('file');
Línea 651... Línea 712...
651
 
712