Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1483 Rev 1484
Línea 144... Línea 144...
144
                        }).always(function() {
144
                        }).always(function() {
145
                            NProgress.done();
145
                            NProgress.done();
146
                        });
146
                        });
147
                    },
147
                    },
148
                });
148
                });
149
                $('button.btn-add').click(function(e) {
-
 
Línea 150... Línea 149...
150
 
149
 
151
                    action = $(this).data('href');
-
 
152
                        NProgress.start();
150
 /*               $('#form-add #file').fileinput({
153
                        $.ajax({
151
                    theme: 'fas',
154
                            'dataType'  : 'json',
-
 
155
                            'accept'    : 'application/json',
152
                    language: 'es',
156
                            'method'    : 'post',
-
 
157
                            'url'       :  action,
153
                    showUpload: false,
158
                        }).done(function(response) {
-
 
159
                            if(response['success']) {
-
 
160
                                $.fn.showSuccess(response['data']);
-
 
161
                                gridTable.api().ajax.reload(null, false);
154
                    dropZoneEnabled: false,
162
                            } else {
155
                    maxFileCount: 1,
163
                                $.fn.showError(response['data']);
-
 
164
                            }
156
                    allowedFileExtensions: ['pdf', 'docx'],
165
                        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
166
                            $.fn.showError(textStatus);
-
 
167
                        }).always(function() {
-
 
168
                            NProgress.done();
-
 
169
                        });
157
                    msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $image_size',
Línea -... Línea 158...
-
 
158
                });
-
 
159
 
-
 
160
                $('body').on('click', 'button.btn-add', function(e) {
-
 
161
                     e.preventDefault();
-
 
162
 
-
 
163
 
-
 
164
                     $('#form-add #first_name').val('');
-
 
165
                     $('#form-add #last_name').val('');
-
 
166
                     $('#form-add #email').val('');
-
 
167
                     $('#form-add #file').fileinput('reset');
-
 
168
                     validatorAdd.resetForm();
-
 
169
 
-
 
170
                     $('#add-job-box').modal('show');
-
 
171
                     return false;
170
                });
172
                    });*/
171
 
173
 
172
            },
174
            },
173
            'aoColumns': [
175
            'aoColumns': [
174
                { 'mDataProp': 'first_name' },
176
                { 'mDataProp': 'first_name' },
Línea 247... Línea 249...
247
                            <div class="col-md-6 col-sm-12">
249
                            <div class="col-md-6 col-sm-12">
248
                                <div class="form-group">
250
                                <div class="form-group">
249
                                    <?php
251
                                    <?php
250
                                    $element = $form->get('form_uuid');
252
                                    $element = $form->get('form_uuid');
Línea 251... Línea 253...
251
                                   
253
                                   
Línea 252... Línea 254...
252
                                    $element->setOptions(['label' => 'LABEL_FORM']);
254
                                    $element->setOptions(['label' => 'LABEL_VACANCIES']);
253
                                    
255
                                    
254
                                    $element->setAttributes(['class' => 'form-control']);
256
                                    $element->setAttributes(['class' => 'form-control']);
255
                                    echo $this->formLabel($element);
257
                                    echo $this->formLabel($element);