Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6001 Rev 6056
Línea 1... Línea 1...
1
<?php 
1
<?php 
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
3
$currentUser    = $this->currentUserHelper();
4
$roleName       = $currentUser->getUserTypeId();
4
$roleName       = $currentUser->getUserTypeId();
Línea -... Línea 5...
-
 
5
 
-
 
6
$routeAdd = $this->url('knowledge-area/add');
Línea 5... Línea -...
5
 
-
 
Línea -... Línea 7...
-
 
7
$allowAdd       = $acl->isAllowed($roleName, 'knowledge-area/add') ? 1 : 0;
-
 
8
 
-
 
9
 
-
 
10
$route    = $this->url('knowledge-area');
-
 
11
 
-
 
12
$this->inlineScript()->appendFile($this->basePath('vendors/ckeditor/ckeditor.js'));
-
 
13
 
6
 
14
$this->headLink()->appendStylesheet($this->basePath('vendors/nprogress/nprogress.css'));
7
$routeMyConnections    = $this->url('connection/my-connections');
15
$this->inlineScript()->appendFile($this->basePath('vendors/nprogress/nprogress.js'));
8
 
16
 
Línea 9... Línea 17...
9
$this->headLink()->appendStylesheet($this->basePath('vendors/select2/dist/css/select2.min.css'));
17
$this->headLink()->appendStylesheet($this->basePath('vendors/select2/css/select2.min.css'));
10
$this->headLink()->appendStylesheet($this->basePath('vendors/select2-bootstrap4/dist/select2-bootstrap4.min.css'));
18
$this->headLink()->appendStylesheet($this->basePath('vendors/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
Línea -... Línea 19...
-
 
19
$this->inlineScript()->appendFile($this->basePath('vendors/select2/js/select2.min.js'));
-
 
20
 
-
 
21
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
-
 
22
$this->inlineScript()->appendFile($this->basePath('vendors/jsrender/jsrender.min.js'));
-
 
23
 
-
 
24
$this->headLink()->appendStylesheet($this->basePath('vendors/bootstrap-fileinput/css/fileinput.min.css'));
-
 
25
$this->headLink()->appendStylesheet($this->basePath('vendors/bootstrap-fileinput/themes/explorer-fa/theme.css'));
-
 
26
 
-
 
27
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-fileinput/js/plugins/piexif.js'));
-
 
28
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-fileinput/js/plugins/sortable.js'));
-
 
29
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-fileinput/js/fileinput.js'));
-
 
30
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-fileinput/js/locales/es.js'));
-
 
31
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-fileinput/themes/fa/theme.js'));
-
 
32
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-fileinput/themes/explorer-fa/theme.js'));
-
 
33
 
-
 
34
 
-
 
35
$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/jquery.validate.js'));
11
$this->inlineScript()->appendFile($this->basePath('vendors/select2/dist/js/select2.min.js'));
36
$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/additional-methods.js'));
12
 
37
$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/localization/messages_es.js'));
Línea 13... Línea 38...
13
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
38
 
14
$this->inlineScript()->appendFile($this->basePath('vendors/jsrender/jsrender.min.js'));
-
 
15
 
-
 
16
$this->inlineScript()->captureStart();
39
 
17
echo <<<JS
-
 
18
 
-
 
19
 
-
 
Línea -... Línea 40...
-
 
40
 
Línea 20... Línea -...
20
 
-
 
21
jQuery( document ).ready(function( $ ) {
41
$this->inlineScript()->captureStart();
22
        
42
echo <<<JS
23
    $('body').on('click', 'a.btn-send-message', function(e) {
43
 
24
        e.preventDefault();
44
 
25
 
45
 
26
        window.location.href = $(this).data('link');
46
jQuery( document ).ready(function( $ ) {
27
    })
47
    $.fn.reload = function() {
28
 
48
 
-
 
49
      
-
 
50
 
29
 
51
        NProgress.start();
30
    $.fn.reload = function(search) {
52
        $.ajax({
31
        NProgress.start();
53
            'dataType'  : 'json',
32
        $.ajax({
54
            'accept'    : 'application/json',
-
 
55
            'method'    : 'get',
-
 
56
            'url'       :  '$route',
33
            'dataType'  : 'json',
57
            'data'      : {
-
 
58
                'search' : $('#form-filter #search').val(),
-
 
59
                'category_id' : $('li.knowledge-category-li-selected > a.knowledge-category-a').data('uuid') ,
-
 
60
 
34
            'accept'    : 'application/json',
61
            } 
35
            'method'    : 'get',
62
        }).done(function(response) {
36
            'url'       :  '$routeMyConnections',
63
            if(response['success']) {
37
            'data'      : {
64
                $('#knowledge-record-list').empty();
38
                'search' : search
65
 
39
            } 
66
 
40
        }).done(function(response) {
67
                if(response['data']['items'].length > 0) {
Línea 41... Línea -...
41
            if(response['success']) {
-
 
42
                $('#profiles-container').empty();
-
 
43
                if(response['data'].length > 0) {
-
 
44
                    $( "#profiles-container" ).html(
-
 
45
                		$( "#profileTemplate" ).render( response['data'] )
-
 
46
                	);
-
 
47
                } else {
-
 
48
                    var html = '<div class="company-title"><div class="widget widget-jobs"><div class="sd-title">ERROR_NO_RECORD_MATCHED_YOUR_QUERY</div></div></div>';
-
 
49
                    $( "#profiles-container" ).html(html);
-
 
50
                }     
-
 
51
 
-
 
52
                $('a.btn-connection-cancel').confirmation({
-
 
53
                    rootSelector: 'button.btn-connection-cancel',
-
 
54
                    title : 'LABEL_ARE_YOU_SURE',
-
 
55
                    singleton : true,
-
 
56
                    btnOkLabel: 'LABEL_YES',
-
 
57
                    btnCancelLabel: 'LABEL_NO',
-
 
58
                    onConfirm: function(value) {
-
 
59
                        var action = $(this).data('link');
-
 
60
                        NProgress.start();
-
 
61
                        $.ajax({
-
 
62
                            'dataType'  : 'json',
-
 
63
                            'accept'    : 'application/json',
-
 
64
                            'method'    : 'post',
-
 
65
                            'url'       :  action,
-
 
66
                        }).done(function(response) {
-
 
67
                            if(response['success']) {
-
 
68
                                $.fn.showSuccess(response['data']);
-
 
69
 
-
 
70
                                var search = $('#form-connection-search #search').val().trim()
-
 
71
                                $.fn.reload(search);
-
 
72
                            } else {
-
 
Línea 73... Línea 68...
73
                                $.fn.showError(response['data']);
68
 
74
                            }
69
 
75
                        }).fail(function( jqXHR, textStatus, errorThrown) {
70
 
76
                            $.fn.showError(textStatus);
71
                    $( "#knowledge-record-list" ).html(
77
                        }).always(function() {
72
                		$( "#recordTemplate" ).render( response['data']['items'] )
78
                            NProgress.done();
73
                	);
79
                        });
74
                } else {
Línea 98... Línea 93...
98
                            'url'       :  action,
93
                            'url'       :  action,
99
                        }).done(function(response) {
94
                        }).done(function(response) {
100
                            if(response['success']) {
95
                            if(response['success']) {
101
                                $.fn.showSuccess(response['data']);
96
                                $.fn.showSuccess(response['data']);
Línea 102... Línea -...
102
 
-
 
103
                                var search = $('#form-connection-search #search').val().trim()
97
 
104
                                $.fn.reload(search);
98
                                $.fn.reload();
105
                            } else {
99
                            } else {
106
                                $.fn.showError(response['data']);
100
                                $.fn.showError(response['data']);
107
                            }
101
                            }
108
                        }).fail(function( jqXHR, textStatus, errorThrown) {
102
                        }).fail(function( jqXHR, textStatus, errorThrown) {
Línea 142... Línea 136...
142
            $.fn.reload('');
136
            $.fn.reload('');
143
        }
137
        }
Línea 144... Línea 138...
144
        
138
        
Línea -... Línea 139...
-
 
139
    });
-
 
140
 
-
 
141
    $.validator.setDefaults({
-
 
142
        debug: true,
-
 
143
        highlight: function(element) {
-
 
144
            $(element).addClass('is-invalid');
-
 
145
        },
-
 
146
        unhighlight: function(element) {
-
 
147
            $(element).removeClass('is-invalid');
-
 
148
        },
-
 
149
        errorElement: 'span',
-
 
150
        errorClass: 'error invalid-feedback',
-
 
151
        errorPlacement: function(error, element) {
-
 
152
            if(element.parent('.btn-file').length) {
-
 
153
                error.insertAfter(element.parent().parent());
-
 
154
            } else if(element.parent('.toggle').length) {
-
 
155
                error.insertAfter(element.parent().parent());
-
 
156
            } else {
-
 
157
                error.insertAfter(element.parent());
-
 
158
            }
-
 
159
        }
-
 
160
    });
-
 
161
    
-
 
162
    
-
 
163
    $.fn.showFormErrorValidator = function(fieldname, errors) {
-
 
164
        var field = $(fieldname);
-
 
165
        if(field) {
-
 
166
            $(field).addClass('is-invalid');
-
 
167
    
-
 
168
 
-
 
169
            var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
-
 
170
            if(element.parent('.btn-file').length) {
-
 
171
                error.insertAfter(element.parent().parent());
-
 
172
            } else if(element.parent('.toggle').length) {
-
 
173
                error.insertAfter(element.parent().parent());
-
 
174
            } else {
-
 
175
                error.insertAfter(element.parent());
-
 
176
            }
-
 
177
        }
-
 
178
    };
-
 
179
 
-
 
180
    var validatorAdd = $('#form-add').validate({
-
 
181
        debug: true,
-
 
182
        onclick: false,
-
 
183
        onkeyup: false,
-
 
184
        ignore: [],
-
 
185
        rules: {
-
 
186
            'category_id': {
-
 
187
                required: true,
-
 
188
            },
-
 
189
            'title': {
-
 
190
                required: true,
-
 
191
                maxlength: 128,
-
 
192
            },
-
 
193
            'description': {
-
 
194
                updateCkeditor:function() {
-
 
195
                        CKEDITOR.instances.description_add.updateElement();
-
 
196
                },
-
 
197
                required: true
-
 
198
            },
-
 
199
           'image': {
-
 
200
                required: true,
-
 
201
                extension: 'jpg|jpeg|png',
-
 
202
                accept: 'image/jpg,image/jpeg,image/png'
-
 
203
            },
-
 
204
            'attachment': {
-
 
205
                required: false,
-
 
206
                extension: 'pdf|wav|mp3|webm,mp4,webm',
-
 
207
                accept: 'application/pdf, audio/wav, audio/mpeg, video/webm,video/mpeg,video/mp4'
-
 
208
            },
-
 
209
            'link': {
-
 
210
                required: false,
-
 
211
                maxlength: 250,
-
 
212
                url: 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
 
-
 
223
			NProgress.start();
-
 
224
            $.ajax({
-
 
225
                'dataType'  : 'json',
-
 
226
                'accept'    : 'application/json',
-
 
227
                'method'    : 'post',
-
 
228
                'url'       :  '$routeAdd',
-
 
229
                'data'      :  formdata,
-
 
230
                'processData': false,
-
 
231
                'contentType': false,
-
 
232
            }).done(function(response) {
-
 
233
				console.log(response)
-
 
234
				if(response['success']) {
-
 
235
                    $.fn.showSuccess(response['data']);
-
 
236
                    $.fn.reload();
-
 
237
 
-
 
238
                    $('#row-add').hide();
-
 
239
                    $('#row-list').show();
-
 
240
 
-
 
241
                } else {
-
 
242
                    validatorAdd.resetForm();
-
 
243
                    if(jQuery.type(response['data']) == 'string') {
-
 
244
                        $.fn.showError(response['data']);
-
 
245
                    } else  {
-
 
246
                        $.each(response['data'], function( fieldname, errors ) {
-
 
247
                            $.fn.showFormErrorValidator('#form-add #' + fieldname, errors);
-
 
248
                        });
-
 
249
                    }
-
 
250
                }
-
 
251
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
252
                $.fn.showError(textStatus);
-
 
253
            }).always(function() {
-
 
254
                NProgress.done();
-
 
255
            });
-
 
256
            return false;
-
 
257
        },
-
 
258
        invalidHandler: function(form, validator) {
-
 
259
            
-
 
260
        }
-
 
261
    });
-
 
262
 
-
 
263
 
-
 
264
    var validatorEdit = $('#form-edit').validate({
-
 
265
        debug: true,
-
 
266
        onclick: false,
-
 
267
        onkeyup: false,
-
 
268
        ignore: [],
-
 
269
        rules: {
-
 
270
            'category_id': {
-
 
271
                required: true,
-
 
272
            },
-
 
273
            'title': {
-
 
274
                required: true,
-
 
275
                maxlength: 128,
-
 
276
            },
-
 
277
            'description': {
-
 
278
                updateCkeditor:function() {
-
 
279
                        CKEDITOR.instances.description_edit.updateElement();
-
 
280
                },
-
 
281
                required: true
-
 
282
            },
-
 
283
           'image': {
-
 
284
                required: false,
-
 
285
                extension: 'jpg|jpeg|png',
-
 
286
                accept: 'image/jpg,image/jpeg,image/png'
-
 
287
            },
-
 
288
            'attachment': {
-
 
289
                required: false,
-
 
290
                extension: 'pdf|wav|mp3|webm,mp4,webm',
-
 
291
                accept: 'application/pdf, audio/wav, audio/mpeg, video/webm,video/mpeg,video/mp4'
-
 
292
            },
-
 
293
            'link': {
-
 
294
                required: false,
-
 
295
                maxlength: 250,
-
 
296
                url: true,
-
 
297
            }, 
-
 
298
        },
-
 
299
        submitHandler: function(form)
-
 
300
        {
-
 
301
            var formdata = false;
-
 
302
            if (window.FormData){
-
 
303
                formdata = new FormData(form); //form[0]);
-
 
304
            }
-
 
305
		
-
 
306
 
-
 
307
			NProgress.start();
-
 
308
            $.ajax({
-
 
309
                'dataType'  : 'json',
-
 
310
                'accept'    : 'application/json',
-
 
311
                'method'    : 'post',
-
 
312
                'url'       :  $('#form-edit').attr('action'),
-
 
313
                'data'      :  formdata,
-
 
314
                'processData': false,
-
 
315
                'contentType': false,
-
 
316
            }).done(function(response) {
-
 
317
				console.log(response)
-
 
318
				if(response['success']) {
-
 
319
                    $.fn.showSuccess(response['data']);
-
 
320
                    $.fn.reload();
-
 
321
 
-
 
322
                    $('#row-edit').hide();
-
 
323
                    $('#row-list').show();
-
 
324
 
-
 
325
                } else {
-
 
326
                    validatorAdd.resetForm();
-
 
327
                    if(jQuery.type(response['data']) == 'string') {
-
 
328
                        $.fn.showError(response['data']);
-
 
329
                    } else  {
-
 
330
                        $.each(response['data'], function( fieldname, errors ) {
-
 
331
                            $.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
-
 
332
                        });
-
 
333
                    }
-
 
334
                }
-
 
335
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
336
                $.fn.showError(textStatus);
-
 
337
            }).always(function() {
-
 
338
                NProgress.done();
-
 
339
            });
-
 
340
            return false;
-
 
341
        },
-
 
342
        invalidHandler: function(form, validator) {
-
 
343
            
145
    });
344
        }
146
 
345
    });
Línea -... Línea 346...
-
 
346
    $('a.knowledge-category-a').click(function(e) {
147
    $('body').on('click', 'a.btn-profile-view', function(e) {
347
        e.preventDefault();
-
 
348
 
-
 
349
 
-
 
350
        $('li.knowledge-category-li').removeClass('knowledge-category-li-selected');
148
        e.preventDefault();
351
        $(this).closest('li.knowledge-category-li').addClass('knowledge-category-li-selected');
Línea -... Línea 352...
-
 
352
 
Línea 149... Línea 353...
149
 
353
        $.fn.reload();
150
        window.location.href = $(this).data('link');
-
 
151
    });
-
 
152
 
-
 
Línea -... Línea 354...
-
 
354
    });
-
 
355
 
Línea 153... Línea -...
153
 
-
 
154
    $.fn.reload('');
-
 
155
});
-
 
156
JS;
-
 
157
$this->inlineScript()->captureEnd();
-
 
158
 
-
 
159
 
356
    $('#form-filter #search').keyup(function(e) {
160
$this->headStyle()->captureStart();
357
 
161
echo <<<EOT
-
 
162
.profile_info {
-
 
Línea 163... Línea -...
163
    width: 100%;
-
 
164
    padding: 25px 20px;
-
 
165
    border: 1px solid var(--border-primary);
-
 
166
    background-color: var(--bg-color);
358
        e.preventDefault();
167
    text-align: center;
-
 
168
    border-radius: 10px
359
 
Línea 169... Línea -...
169
}
-
 
170
 
-
 
171
.profile_info h3 {
-
 
172
    justify-content: flex-start;
-
 
Línea -... Línea 360...
-
 
360
        $.fn.reload();
173
    font-weight: 700;
361
    })
-
 
362
 
174
    font-size: 1.3rem;
363
    $('button.btn-search').click(function(e) {
175
    text-align: left
364
        e.preventDefault();
-
 
365
 
-
 
366
        $.fn.reload();
-
 
367
    });
-
 
368
 
-
 
369
 
176
}
370
    $('body').on('click', 'button.btn-knowledge-edit', function(e) {
177
 
-
 
Línea 178... Línea -...
178
.profile_info h4 {
-
 
179
    position: absolute;
371
        e.preventDefault();
180
    bottom: 0
372
        var action = $(this).data('link');
181
}
-
 
Línea -... Línea 373...
-
 
373
        NProgress.start();
-
 
374
        $.ajax({
-
 
375
            'dataType'  : 'json',
-
 
376
            'accept'    : 'application/json',
-
 
377
            'method'    : 'get',
-
 
378
            'url'       :  action,
-
 
379
        }).done(function(response) {
-
 
380
            if(response['success']) {
-
 
381
 
-
 
382
                $('#form-edit').attr('action', action);
-
 
383
                $('#form-edit #category_id').val(response['data']['category_id']).trigger('change');
-
 
384
 
182
 
385
                $('#form-edit #title').val(response['data']['title']);
-
 
386
                $('#form-edit #link').val(response['data']['link']);
183
.profile_info ul {
387
                CKEDITOR.instances.description_edit.setData(response['data']['description']);
-
 
388
        
-
 
389
                $('#form-edit #image').fileinput('reset');
-
 
390
                $('#form-edit #image').val('');
184
    display: flex;
391
                $('#form-edit #attachment').fileinput('reset');
185
    gap: 5px;
392
                $('#form-edt #attachment').val('');
Línea 186... Línea -...
186
    justify-content: space-around
-
 
187
}
-
 
188
 
-
 
189
.profile_info hr {
393
        
190
    width: 80%;
-
 
Línea 191... Línea -...
191
    margin: 1rem auto
-
 
192
}
-
 
193
 
-
 
Línea 194... Línea -...
194
.profile_info_header {
-
 
195
    display: flex;
-
 
196
    position: relative
394
        
197
}
-
 
198
 
-
 
199
.profile_info_header_imgContainer {
-
 
200
    overflow: hidden;
-
 
201
    border-radius: 100px;
395
                $('#row-list').hide();
202
    margin: 0 auto
-
 
203
}
396
                $('#row-edit').show(); 
204
 
-
 
205
.profile_info_header_imgContainer img {
-
 
206
    background: #fff
-
 
207
}
-
 
Línea 208... Línea -...
208
 
-
 
209
.profile-info {
-
 
210
    background: var(--bg-color);
-
 
211
    border: 1px solid var(--border-primary);
397
            } else {
212
    border-radius: var(--border-radius);
-
 
213
    height: fit-content;
398
                $.fn.showError(response['data']);
214
    box-shadow: var(--light-shadow);
-
 
Línea 215... Línea -...
215
    width: 100%;
-
 
216
    align-items: center;
-
 
217
    display: flex;
-
 
218
    flex-direction: column;
-
 
219
    gap: .5rem;
-
 
220
    padding: 1rem;
-
 
Línea 221... Línea -...
221
    text-align: center
-
 
222
}
399
            }
223
 
400
        }).fail(function( jqXHR, textStatus, errorThrown) {
224
@media(max-width: 767px) {
401
            $.fn.showError(textStatus);
225
    .profile-info {
-
 
Línea 226... Línea -...
226
        border-radius:0;
-
 
227
        border-left: 0;
402
        }).always(function() {
228
        border-right: 0
403
            NProgress.done();
Línea 229... Línea -...
229
    }
-
 
230
}
-
 
231
 
-
 
Línea 232... Línea 404...
232
.profile-info img {
404
        });
233
    border-radius: 50%;
405
 
234
    border: 2px solid var(--font-color);
-
 
Línea 235... Línea 406...
235
    height: 150px;
406
    });
236
    width: 150px
407
 
237
}
408
 
-
 
409
    $('body').on('click', 'button.btn-knowledge-open-attachment', function(e) {
238
 
410
        e.preventDefault();
239
.profile-info h3 {
411
        var action = $(this).data('link');
-
 
412
 
240
    color: var(--title-color);
413
        window.open(action)
241
    font-size: 1.1rem;
-
 
Línea 242... Línea -...
242
    font-weight: 600
-
 
243
}
-
 
244
 
-
 
245
.profile-info span {
-
 
Línea 246... Línea 414...
246
    color: var(--subtitle-color)
414
    });
247
}
415
 
248
 
416
 
Línea 249... Línea 417...
249
.profile-info svg,.profile-info b {
417
    $('body').on('click', 'button.btn-knowledge-open-link', function(e) {
250
    color: var(--font-color)
-
 
251
}
418
        e.preventDefault();
252
 
-
 
253
.profile-info .row {
-
 
254
    gap: .5rem
-
 
Línea 255... Línea 419...
255
}
419
        var action = $(this).data('link');
256
 
420
 
-
 
421
        window.open(action)
257
.profile-info .social-network-header {
422
    });
-
 
423
 
Línea 258... Línea 424...
258
    display: flex;
424
 
259
    align-items: center;
425
    $('a.knowledge-add-a').click(function(e) {
260
    justify-content: center;
426
        e.preventDefault();
261
    position: relative;
427
 
-
 
428
        $('#form-add #title').val('');
-
 
429
        $('#form-add #link').val('');
-
 
430
        CKEDITOR.instances.description_add.setData('');
-
 
431
 
262
    width: 100%
432
        $('#form-add #image').fileinput('reset');
Línea 263... Línea 433...
263
}
433
        $('#form-add #image').val('');
-
 
434
        $('#form-add #attachment').fileinput('reset');
-
 
435
        $('#form-add #attachment').val('');
-
 
436
 
-
 
437
 
264
 
438
        $('#row-list').hide();
-
 
439
        $('#row-add').show(); 
-
 
440
    });
265
.profile-info .social-network-header button {
441
 
Línea 266... Línea -...
266
    position: absolute;
-
 
267
    right: 15%
-
 
268
}
442
    $('button.btn-cancel').click(function(e) {
269
 
443
        e.preventDefault();
270
.profile-info .social-network-header button svg {
-
 
271
    font-size: 1.2rem
444
 
Línea 272... Línea -...
272
}
-
 
273
 
-
 
274
.profile-info .social-links {
-
 
275
    display: flex;
-
 
276
    flex-direction: column;
-
 
277
    gap: .5rem;
-
 
278
    width: 100%
-
 
279
}
-
 
280
 
-
 
281
.profile-info .social-links li {
-
 
282
    border-bottom: 1px solid var(--border-primary)
-
 
283
}
-
 
Línea 284... Línea -...
284
 
-
 
285
.profile-info .social-links li a {
-
 
286
    display: flex;
-
 
287
    align-items: center;
-
 
288
    gap: .5rem
-
 
289
}
-
 
290
 
-
 
Línea 291... Línea 445...
291
.profile-info .social-links li a svg {
445
        $('#row-add').hide(); 
-
 
446
        $('#row-edit').hide(); 
-
 
447
        $('#row-list').show();
-
 
448
            
-
 
449
    });
292
    color: var(--font-color)
450
 
-
 
451
    $('#form-add #image').fileinput({
-
 
452
        theme: 'fa',
293
}
453
        language: 'es',
Línea -... Línea 454...
-
 
454
        showUpload: false,
294
 
455
        dropZoneEnabled: false,
295
.profile-info .social-links li a span {
456
        maxFileCount: 1,
296
    white-space: nowrap;
457
        allowedFileExtensions: ['jpg', 'jpeg', 'png'],
-
 
458
        msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $image_size',
297
    max-width: -webkit-fill-available;
459
    });
-
 
460
 
-
 
461
    $('#form-add #attachment').fileinput({
298
    text-overflow: ellipsis;
462
        theme: 'fa',
Línea 299... Línea -...
299
    overflow: hidden
-
 
300
}
463
        language: 'es',
301
 
464
        showUpload: false,
302
.profile-attr {
465
        dropZoneEnabled: false,
Línea 303... Línea -...
303
    background: var(--bg-color);
-
 
304
    border: 1px solid var(--border-primary);
-
 
305
    border-radius: var(--border-radius);
-
 
306
    height: fit-content;
-
 
307
    box-shadow: var(--light-shadow);
-
 
308
    width: 100%;
-
 
309
    padding: 1rem;
-
 
310
    display: flex;
-
 
311
    flex-direction: column;
-
 
Línea 312... Línea 466...
312
    gap: .5rem
466
        maxFileCount: 1,
313
}
467
        allowedFileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'wav', 'mp3', 'mp4', 'mpeg','webm'],
-
 
468
        msgPlaceholder: 'LABEL_EXTENSIONS_ALLOWED jpg, jpeg, png, pdf, wav, mp3, mp4, mpeg, webm',
-
 
469
    });
-
 
470
 
-
 
471
    $('#form-add #category_id').select2({
314
 
472
        theme: 'bootstrap4',
-
 
473
    });
-
 
474
 
-
 
475
 
-
 
476
 
-
 
477
    $('#form-edit #image').fileinput({
315
@media(max-width: 767px) {
478
        theme: 'fa',
316
    .profile-attr {
479
        language: 'es',
Línea -... Línea 480...
-
 
480
        showUpload: false,
317
        border-radius:0;
481
        dropZoneEnabled: false,
-
 
482
        maxFileCount: 1,
-
 
483
        allowedFileExtensions: ['jpg', 'jpeg', 'png'],
-
 
484
        msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $image_size',
-
 
485
    });
318
        border-left: 0;
486
 
-
 
487
    $('#form-edit #attachment').fileinput({
-
 
488
        theme: 'fa',
-
 
489
        language: 'es',
319
        border-right: 0
490
        showUpload: false,
-
 
491
        dropZoneEnabled: false,
320
    }
492
        maxFileCount: 1,
321
}
493
        allowedFileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'wav', 'mp3', 'mp4', 'mpeg','webm'],
Línea 322... Línea -...
322
 
-
 
323
.profile-attr span,.profile-attr p {
-
 
324
    color: var(--font-color)
-
 
325
}
494
        msgPlaceholder: 'LABEL_EXTENSIONS_ALLOWED jpg, jpeg, png, pdf, wav, mp3, mp4, mpeg, webm',
326
 
-
 
Línea 327... Línea -...
327
.profile-attr ul {
-
 
328
    display: flex;
-
 
329
    flex-wrap: wrap;
-
 
330
    gap: .5rem
-
 
331
}
-
 
Línea 332... Línea -...
332
 
-
 
333
.profile-attr ul li {
495
    });
334
    display: inline-flex;
496
 
335
    width: fit-content
497
    $('#form-edit #category_id').select2({
336
}
-
 
337
 
-
 
Línea 338... Línea -...
338
.profile-attr ul li span {
-
 
339
    background-color: var(--font-color);
-
 
340
    border-radius: 30px;
-
 
341
    color: var(--bg-color);
-
 
342
    font-size: 14px;
-
 
Línea 343... Línea -...
343
    font-weight: 600;
-
 
344
    padding: .5rem 1rem;
498
        theme: 'bootstrap4',
345
    width: fit-content
-
 
346
}
-
 
347
 
-
 
348
.profile-attr-header {
499
    });
349
    display: flex;
500
 
Línea 350... Línea 501...
350
    align-items: center;
501
 
351
    justify-content: space-between
502
    CKEDITOR.replace('description_add', {
352
}
503
        toolbar: [
353
 
504
                    { name: 'editing', items: ['Scayt'] },
354
.profile-attr-header h2 {
505
                    { name: 'links', items: ['Link', 'Unlink'] },
355
    color: var(--title-color);
506
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
356
    font-size: 18px;
507
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
Línea 357... Línea 508...
357
    font-weight: 600
508
                    '/',
Línea 358... Línea 509...
358
}
509
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
359
 
510
                    { name: 'styles', items: ['Styles', 'Format'] },
360
.experience-item,.education-item {
511
                    { name: 'tools', items: ['Maximize'] }
361
    display: flex;
512
                ],
362
    flex-direction: column;
513
                removePlugins: 'elementspath,Anchor',
363
    gap: .5rem
514
                heigth: 100
Línea 413... Línea 564...
413
    color: #16283C;
564
    color: #16283C;
414
    margin-top: 10px;
565
    margin-top: 10px;
Línea 415... Línea 566...
415
 
566
 
Línea -... Línea 567...
-
 
567
}
-
 
568
 
-
 
569
.knowledge-category-li-selected {
-
 
570
    background-color: var(--bg-color-secondary);
416
}
571
}
417
 
572
 
418
.add-knowledge-container {
573
.knowledge-add-container {
419
    padding-top: 10px;
574
    padding-top: 10px;
420
    padding-bottom: 10px;
575
    padding-bottom: 10px;
Línea 421... Línea 576...
421
    text-align: center;
576
    text-align: center;
-
 
577
}
-
 
578
 
-
 
579
.knowledge-add-a {
-
 
580
    font-family: 'Roboto';
-
 
581
    font-style: normal;
-
 
582
    font-weight: 400;
-
 
583
    font-size: 16px;
-
 
584
    line-height: 19px;
-
 
585
 
-
 
586
    
-
 
587
    color: #666666;
-
 
588
 
-
 
589
}
-
 
590
 
-
 
591
.knowledge-record-card {
-
 
592
    width: 100%;
-
 
593
    padding: 25px 20px;
-
 
594
    border: 1px solid var(--border-primary);
-
 
595
    background-color: var(--bg-color);
-
 
596
    text-align: center;
-
 
597
    border-radius: 10px;
422
}
598
}
423
 
599
 
424
.add-knowledge {
600
.knowledge-record-card-category {
425
    font-family: 'Roboto';
601
    font-family: 'Roboto';
426
    font-style: normal;
602
    font-style: normal;
-
 
603
    font-weight: 400;
-
 
604
    font-size: 16px;
-
 
605
    line-height: 19px;
-
 
606
    display: flex;
-
 
607
    align-items: center;
-
 
608
    
-
 
609
    color: #666666;
-
 
610
    margin-top: 3px;
-
 
611
}
-
 
612
 
-
 
613
 
-
 
614
.knowledge-record-card-title {
-
 
615
    font-family: 'Roboto';
-
 
616
    font-style: normal;
-
 
617
    font-weight: 800;
-
 
618
    font-size: 16px;
-
 
619
    line-height: 19px;
-
 
620
    /* identical to box height */
-
 
621
    
-
 
622
    display: flex;
-
 
623
    align-items: center;
-
 
624
    
Línea -... Línea 625...
-
 
625
    color: #666666;
-
 
626
    margin-top: 3px;
-
 
627
}
-
 
628
 
-
 
629
.knowledge-record-card-description {
-
 
630
    font-family: 'Roboto';
-
 
631
    font-style: normal;
-
 
632
    font-weight: 400;
Línea 427... Línea 633...
427
    font-weight: 400;
633
    font-size: 14px;
-
 
634
    line-height: 16px;
-
 
635
    text-align: justify;
Línea -... Línea 636...
-
 
636
    text-justify: inter-word;
-
 
637
    
-
 
638
    color: #666666;
-
 
639
    margin-top: 3px;
-
 
640
}
-
 
641
 
-
 
642
.knowledge-record-card-image  img {
-
 
643
    width: 100%;
-
 
644
    height: auto;
-
 
645
}
-
 
646
 
-
 
647
.knowledge-record-card-actions {
-
 
648
    line-height: 20px;
-
 
649
}
-
 
650
 
428
    font-size: 16px;
651
.knowledge-record-card-actions-edit {
Línea 429... Línea 652...
429
    line-height: 19px;
652
  float: left;
430
 
653
}
Línea 442... Línea 665...
442
<section class="companies-info container">
665
<section class="companies-info container">
443
	<div class="company-title">
666
	<div class="company-title">
444
		<h1 class="title mx-auto">LABEL_KNOWLEDGE_AREA_TITLE</h1>
667
		<h1 class="title mx-auto">LABEL_KNOWLEDGE_AREA_TITLE</h1>
445
	</div>
668
	</div>
Línea 446... Línea 669...
446
 
669
 
447
	<div class="row">
670
	<div class="row" id="row-list">
448
		<div class="col-3 category_list">
671
		<div class="col-3 knowledge-category-list">
-
 
672
			<ul>
-
 
673
				<li class="knowledge-category-li knowledge-category-li-selected" >
-
 
674
					<a  class="knowledge-category-a" href="" data-uuid="">LABEL_KNOWLEDGE_AREA_CATEGORY_ALL</a>
449
			<ul>
675
				</li>
450
			<?php 
676
    			<?php 
451
			 foreach($categories as $categorie) : 
677
    			 foreach($categories as $categorie) : 
-
 
678
    			?>
452
			?>
679
    			<li class="knowledge-category-li" >
-
 
680
    				<a class="knowledge-category-a" href="" data-uuid="<?php echo $categorie['uuid']?>"><?php echo $categorie['name']?></a>
453
			<li><a class="category_uuid" href="" data-uuid="<?php echo $categorie['uuid']?>"><?php echo $categorie['name']?></a></li>
681
    			</li>
454
			
682
    			
455
			<?php endforeach; ?>
683
    			<?php endforeach; ?>
456
			</ul>
684
			</ul>
Línea 457... Línea 685...
457
		</div>
685
		</div>
458
		
686
		
-
 
687
		
459
		
688
		<div class="col-9">
-
 
689
			<div class="search-box">
460
		<div class="col-9">
690
				<form id="form-filter" name="form-filter">
Línea -... Línea 691...
-
 
691
        			<input type="text" name="search"  id="search" class="form-control"><button class="btn btn-search">LABEL_SEARCH</button>
-
 
692
        		</form>
461
			<div class="search-box">
693
        	</div>
462
        		<input type="text" name="search" class="form-control"><button class="btn btn-search">LABEL_SEARCH</button>
694
        		
463
        	</div>
695
        	<?php if($content_edit && $allowAdd) : ?>		
464
        		
-
 
-
 
696
        		
Línea 465... Línea -...
465
			<div class="add-knowledge-container" >
-
 
466
				<a href="" class="add-knowledge">Añadir Conocimiento</a>
697
			<div class="knowledge-add-container" >
467
			</div>
698
				<a href="" id="knowledge-add-a" class="knowledge-add-a"> LABEL_KNOWLEDGE_AREA_ADD </a>
-
 
699
			</div>
-
 
700
			<?php endif; ?>		
-
 
701
 
-
 
702
 
468
 
703
 
469
 
704
			
Línea -... Línea 705...
-
 
705
			<div id="knowledge-record-list">
-
 
706
			</div>
-
 
707
			
-
 
708
			<div id="knowledge-record-pagination">
470
 
709
			</div>
-
 
710
			
-
 
711
		</div>
-
 
712
	</div>
-
 
713
	
-
 
714
 
-
 
715
	
-
 
716
	<div class="row" id="row-add" style="display: none">
-
 
717
		<div class="col-12">
-
 
718
			<div class="card">
-
 
719
				 <?php
-
 
720
                $form = $this->formAdd;
-
 
721
                $form->setAttributes([
-
 
722
                    'method'    => 'post',
-
 
723
                    'name'      => 'form-add',
-
 
724
                    'id'        => 'form-add',
Línea -... Línea 725...
-
 
725
                    //'action'    => $routeAdd,
-
 
726
                ]);
-
 
727
 
-
 
728
                $form->prepare();
-
 
729
                echo $this->form()->openTag($form);
-
 
730
                ?>
-
 
731
                <div class="card-header">
-
 
732
                    <h4 class="modal-title">LABEL_ADD</h4>
-
 
733
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
734
                </div>
-
 
735
 
-
 
736
                <!-- Modal body -->
-
 
737
                <div class="card-body">
-
 
738
    
-
 
739
                    <div class="form-group">
-
 
740
                        <?php
-
 
741
                        $element = $form->get('category_id');
-
 
742
                        $element->setOptions(['label' => 'LABEL_CATEGORY']);
-
 
743
                        $element->setAttributes(['class' => 'form-control']);
-
 
744
    
-
 
745
                        echo $this->formLabel($element);
-
 
746
                        echo $this->formSelect($element);
-
 
747
                        ?>
-
 
748
                    </div>
-
 
749
                  	<div class="form-group">
-
 
750
                        <?php
-
 
751
                        $element = $form->get('title');
-
 
752
                        $element->setOptions(['label' => 'LABEL_TITLE']);
-
 
753
                        $element->setAttributes(['class' => 'form-control']);
-
 
754
                        
-
 
755
                        echo $this->formLabel($element);
-
 
756
                        echo $this->formText($element);
-
 
757
                        ?>
-
 
758
                    </div>
-
 
759
                  	<div class="form-group">
-
 
760
                        <?php
-
 
761
                        $element = $form->get('description');
-
 
762
                        $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
-
 
763
                        $element->setAttributes(['class' => 'form-control', 'id' => 'description_add']);
-
 
764
                        
-
 
765
                        echo $this->formLabel($element);
-
 
766
                        echo $this->formTextArea($element);
-
 
767
                        ?>
-
 
768
                    </div>
-
 
769
                  	<div class="form-group">
-
 
770
                        <?php
-
 
771
                        $element = $form->get('image');
-
 
772
                        $element->setOptions(['label' => 'LABEL_IMAGE']);
-
 
773
                        $element->setAttributes(['class' => 'form-control']);
-
 
774
                        
-
 
775
                        echo $this->formLabel($element);
-
 
776
                        echo $this->formFile($element);
-
 
777
                        ?>
-
 
778
                    </div>
-
 
779
                  	<div class="form-group">
-
 
780
                        <?php
-
 
781
                        $element = $form->get('attachment');
-
 
782
                        $element->setOptions(['label' => 'LABEL_ATTACHMENT']);
471
 
783
                        $element->setAttributes(['class' => 'form-control']);
-
 
784
                        
-
 
785
                        echo $this->formLabel($element);
-
 
786
                        echo $this->formFile($element);
-
 
787
                        ?>
-
 
788
                    </div>
-
 
789
                 	<div class="form-group">
-
 
790
                        <?php
-
 
791
                        $element = $form->get('link');
-
 
792
                        $element->setOptions(['label' => 'LABEL_LINK']);
-
 
793
                        $element->setAttributes(['class' => 'form-control']);
Línea 472... Línea -...
472
			
-
 
473
			<div class="companies-list">
-
 
474
				<div class="profile_info"><div class="d-flex position-relative"><div class="profile_info_header_imgContainer"><img src="/storage/type/user/code/a0a8330e-1d4c-4f7c-aa85-f95186b5b597/" class="object-fit-contain" alt="group image" style="max-height: 100px;"></div><div class="col-8 d-flex flex-column align-items-start justify-content-end"><h3 class="w-100 text-left mb-2 w-100">Agustín Coronado</h3><ul><li><a href="/profile/view/a0a8330e-1d4c-4f7c-aa85-f95186b5b597" data-link="/profile/view/a0a8330e-1d4c-4f7c-aa85-f95186b5b597" class="btn btn-secondary ellipsis">Ver perfil</a></li><li><a href="/inmail/a0a8330e-1d4c-4f7c-aa85-f95186b5b597" data-link="/inmail/a0a8330e-1d4c-4f7c-aa85-f95186b5b597" class="btn btn-primary">Mensaje</a></li></ul></div></div><hr><ul><li><a href="#" class="btn btn-tertiary">Bloquear</a></li><li><a href="#" class="btn btn-tertiary">Cancelar</a></li></ul><div style="position: relative;"><div class="popover confirmation fade bs-popover-top show" id="confirmation937427" x-placement="top" style="position: absolute; top: -2.5rem; left: 50%; transform: translate(-50%, -100%); width: 120px; display: none;"><div class="arrow" style="left: 46px;"></div><p class="popover-header">Está seguro?</p><div class="popover-body"><p class="confirmation-content" style="display: none;"></p><div class="confirmation-buttons text-center"><div class="btn-group"><button type="button" class="h-100 d-flex align-items-center btn btn-sm btn-primary">Si</button><button type="button" class="h-100 d-flex align-items-center btn btn-sm btn-secondary">No</button></div></div></div></div></div><div style="position: relative;"><div class="popover confirmation fade bs-popover-top show" id="confirmation937427" x-placement="top" style="position: absolute; top: -2.5rem; left: 50%; transform: translate(-50%, -100%); width: 120px; display: none;"><div class="arrow" style="left: 46px;"></div><p class="popover-header">Está seguro?</p><div class="popover-body"><p class="confirmation-content" style="display: none;"></p><div class="confirmation-buttons text-center"><div class="btn-group"><button type="button" class="h-100 d-flex align-items-center btn btn-sm btn-primary">Si</button><button type="button" class="h-100 d-flex align-items-center btn btn-sm btn-secondary">No</button></div></div></div></div></div></div>
-
 
475
			</div>
-
 
476
		</div>
-
 
477
	</div>
-
 
478
	
-
 
479
 
-
 
480
</section>	
-
 
481
 
-
 
482
		
-
 
483
 
-
 
484
<script id="profileTemplate" type="text/x-jsrender">
-
 
485
    <div class="col-lg-3 col-md-3 col-sm-6">
794
                        
-
 
795
                        echo $this->formLabel($element);
-
 
796
                        echo $this->formText($element);
-
 
797
                        ?>
-
 
798
                    </div>
-
 
799
                </div>
-
 
800
                <div class="card-footer">
-
 
801
                		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
802
                        <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
-
 
803
                </div>
-
 
804
    			<?php echo $this->form()->closeTag($form); ?>
-
 
805
 
-
 
806
            </div>
-
 
807
        </div>
-
 
808
    </div>
-
 
809
    
-
 
810
	<div class="row" id="row-edit" style="display: none">
-
 
811
		<div class="col-12">
-
 
812
			<div class="card">
-
 
813
				 <?php
-
 
814
                $form = $this->formEdit;
-
 
815
                $form->setAttributes([
-
 
816
                    'method'    => 'post',
-
 
817
                    'name'      => 'form-edit',
-
 
818
                    'id'        => 'form-edit',
486
        <div class="company_profile_info">
819
                    //'action'    => $routeAdd,
-
 
820
                ]);
-
 
821
 
-
 
822
                $form->prepare();
-
 
823
                echo $this->form()->openTag($form);
-
 
824
                ?>
-
 
825
                <div class="card-header">
-
 
826
                    <h4 class="modal-title">LABEL_EDIT</h4>
-
 
827
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
828
                </div>
-
 
829
 
-
 
830
                <!-- Modal body -->
-
 
831
                <div class="card-body">
-
 
832
    
-
 
833
                    <div class="form-group">
-
 
834
                        <?php
-
 
835
                        $element = $form->get('category_id');
-
 
836
                        $element->setOptions(['label' => 'LABEL_CATEGORY']);
-
 
837
                        $element->setAttributes(['class' => 'form-control']);
-
 
838
    
-
 
839
                        echo $this->formLabel($element);
-
 
840
                        echo $this->formSelect($element);
-
 
841
                        ?>
-
 
842
                    </div>
-
 
843
                  	<div class="form-group">
-
 
844
                        <?php
-
 
845
                        $element = $form->get('title');
-
 
846
                        $element->setOptions(['label' => 'LABEL_TITLE']);
-
 
847
                        $element->setAttributes(['class' => 'form-control']);
-
 
848
                        
-
 
849
                        echo $this->formLabel($element);
-
 
850
                        echo $this->formText($element);
-
 
851
                        ?>
-
 
852
                    </div>
-
 
853
                  	<div class="form-group">
-
 
854
                        <?php
-
 
855
                        $element = $form->get('description');
-
 
856
                        $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
-
 
857
                        $element->setAttributes(['class' => 'form-control', 'id' => 'description_edit']);
-
 
858
                        
-
 
859
                        echo $this->formLabel($element);
-
 
860
                        echo $this->formTextArea($element);
-
 
861
                        ?>
-
 
862
                    </div>
-
 
863
                  	<div class="form-group">
-
 
864
                        <?php
-
 
865
                        $element = $form->get('image');
-
 
866
                        $element->setOptions(['label' => 'LABEL_IMAGE']);
-
 
867
                        $element->setAttributes(['class' => 'form-control']);
-
 
868
                        
-
 
869
                        echo $this->formLabel($element);
-
 
870
                        echo $this->formFile($element);
-
 
871
                        ?>
-
 
872
                    </div>
-
 
873
                  	<div class="form-group">
-
 
874
                        <?php
-
 
875
                        $element = $form->get('attachment');
-
 
876
                        $element->setOptions(['label' => 'LABEL_ATTACHMENT']);
-
 
877
                        $element->setAttributes(['class' => 'form-control']);
-
 
878
                        
-
 
879
                        echo $this->formLabel($element);
-
 
880
                        echo $this->formFile($element);
487
            <div class="company-up-info">
881
                        ?>
-
 
882
                    </div>
488
                <img src="{{>image}}" alt="">
883
                 	<div class="form-group">
489
                <h3>{{>name}}</h3>
884
                        <?php
490
                <h4>{{>status}}</h4>
885
                        $element = $form->get('link');
-
 
886
                        $element->setOptions(['label' => 'LABEL_LINK']);
-
 
887
                        $element->setAttributes(['class' => 'form-control']);
491
                
888
                        
-
 
889
                        echo $this->formLabel($element);
-
 
890
                        echo $this->formText($element);
-
 
891
                        ?>
-
 
892
                    </div>
-
 
893
                </div>
Línea -... Línea 894...
-
 
894
                <div class="card-footer">
-
 
895
                		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
896
                        <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
-
 
897
                </div>
-
 
898
    			<?php echo $this->form()->closeTag($form); ?>
-
 
899
 
-
 
900
            </div>
-
 
901
        </div>
-
 
902
    </div>
-
 
903
	
-
 
904
 
-
 
905
</section>
-
 
906
 
-
 
907
<script id="recordTemplate" type="text/x-jsrender">
-
 
908
    <div class="col-4 ">
-
 
909
        <div class="knowledge-record-card">
-
 
910
            <div class="knowledge-record-card-image">
-
 
911
                <a href="{{>link_view}}"  target="_blank" class="knowledge-record-card-actions-view">
-
 
912
                    <img src="{{>image}}" alt="">
-
 
913
                </a>
-
 
914
            </div>
-
 
915
            <div class="knowledge-record-card-category">
-
 
916
                {{>category}}
-
 
917
            </div>
-
 
918
            <div class="knowledge-record-card-title">
-
 
919
                {{>title}}
-
 
920
            </div>
-
 
921
            <div class="knowledge-record-card-description">
-
 
922
                {{>description}}
492
                <ul>
923
            </div>
493
                    <li><a href="#" data-link="{{>link_view}}" title="" class="follow btn-profile-view">LABEL_VIEW_PROFILE</a></li>
924
            <div class="knowledge-record-card-actions">
494
				    <li><a href="#" data-link="{{>link_inmail}}" title="" class="message-us btn-send-message">LABEL_MESSAGE</a></li>
925
                {{if link_edit }}
-
 
926
                <div class="knowledge-record-card-actions-edit">