Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16929 Rev 16941
Línea 326... Línea 326...
326
        });
326
        });
Línea 327... Línea 327...
327
 
327
 
328
        $('#form #privacy').select2({
328
        $('#form #privacy').select2({
329
            theme: 'bootstrap-5',
329
            theme: 'bootstrap-5',
-
 
330
            width: '100%',
330
            width: '100%',
331
            dropdownParent: $('#modal')
Línea 331... Línea 332...
331
        });
332
        });
Línea 332... Línea 333...
332
 
333
 
333
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
334
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
334
 
335
 
335
    });
336
    });
Línea 336... Línea 337...
336
JS;
337
JS;
337
$this->inlineScript()->captureEnd();
338
$this->inlineScript()->captureEnd();
338
?>
339
?>
339
 
340
 
340
<div class="container">
341
<div class="container">
341
	<div class="card" id="">
342
    <div class="card" id="">
342
	 	<div class="card-header">
343
        <div class="card-header">
343
	 		<h6 class="card-title">LABEL_KNOWLEDGE_AREA_CATEGORIES</h6>
344
            <h6 class="card-title">LABEL_KNOWLEDGE_AREA_CATEGORIES</h6>
344
	 	</div>
345
        </div>
345
	 	<div class="card-body">
346
        <div class="card-body">
346
	 		<div class="row">
347
            <div class="row">
347
	 	         <div class="col-12 mt-3">
348
                <div class="col-12 mt-3">
348
	 	        	 <table id="gridTable" class="table table-bordered">
349
                    <table id="gridTable" class="table table-bordered">
349
                            <thead>
350
                        <thead>
350
                                <tr>
351
                            <tr>
351
                                    <th>LABEL_NAME</th>
352
                                <th>LABEL_NAME</th>
352
                                    <th>LABEL_PRIVACY</th>
353
                                <th>LABEL_PRIVACY</th>
353
                                    <th>LABEL_ACTIVE</th>
354
                                <th>LABEL_ACTIVE</th>
354
                                    <th>LABEL_ACTIONS</th>
355
                                <th>LABEL_ACTIONS</th>
355
                                </tr>
356
                            </tr>
356
                            </thead>
357
                        </thead>
357
                            <tbody>
358
                        <tbody>
358
                            </tbody>
359
                        </tbody>
359
                        </table>
360
                    </table>
360
	 	         </div>
361
                </div>
361
	 	     </div>
362
            </div>
362
	 	</div>
363
        </div>
363
	 	<div class="card-footer text-right">
364
        <div class="card-footer text-right">
364
	 	    <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
365
            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
365
    		<?php if ($allowAdd) : ?>
366
            <?php if ($allowAdd) : ?>
366
         	<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
367
                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
Línea 380... Línea 381...
380
            <!-- Modal Header -->
381
            <!-- Modal Header -->
381
            <div class="modal-header">
382
            <div class="modal-header">
382
                <h6 class="modal-title">LABEL_KNOWLEDGE_AREA_CATEGORIES</h6>
383
                <h6 class="modal-title">LABEL_KNOWLEDGE_AREA_CATEGORIES</h6>
383
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
384
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
384
            </div>
385
            </div>
385
            
-
 
386
               <?php
-
 
387
                $form = $this->form;
-
 
388
                $form->setAttributes([
-
 
389
                    'method'    => 'post',
-
 
390
                    'name'      => 'form',
-
 
391
                    'id'        => 'form'
-
 
392
                ]);
-
 
Línea -... Línea 386...
-
 
386
 
-
 
387
            <?php
393
 
388
            $form = $this->form;
-
 
389
            $form->setAttributes([
-
 
390
                'method'    => 'post',
394
                $form->prepare();
391
                'name'      => 'form',
-
 
392
                'id'        => 'form'
Línea -... Línea 393...
-
 
393
            ]);
-
 
394
 
-
 
395
            $form->prepare();
395
                echo $this->form()->openTag($form);
396
            echo $this->form()->openTag($form);
Línea 396... Línea 397...
396
 
397
 
397
                ?>
398
            ?>
Línea 398... Línea 399...
398
 
399
 
399
            <!-- Modal body -->
400
            <!-- Modal body -->
400
            <div class="modal-body">
401
            <div class="modal-body">
401
 
402
 
402
             
403
 
403
                <div class="card-body">
404
                <div class="card-body">
404
   
405
 
405
              		<div class="row">
406
                    <div class="row">
406
	 	         		<div class="col-12 mt-3">
407
                        <div class="col-12 mt-3">
Línea 407... Línea 408...
407
                 			<?php
408
                            <?php
408
                            $element = $form->get('name');
409
                            $element = $form->get('name');
409
                            $element->setOptions(['label' => 'LABEL_NAME']);
410
                            $element->setOptions(['label' => 'LABEL_NAME']);
410
                            $element->setAttributes(['class' => 'form-control']);
411
                            $element->setAttributes(['class' => 'form-control']);
411
 
412
 
Línea 412... Línea 413...
412
                            echo $this->formLabel($element);
413
                            echo $this->formLabel($element);
413
                            echo $this->formText($element);
414
                            echo $this->formText($element);
414
                            ?>
415
                            ?>
415
               			</div>
416
                        </div>
416
       				</div>
417
                    </div>
417
 
418
 
418
                    <div class="row">
419
                    <div class="row">
419
	 	        	 	<div class="col-12 mt-3">
420
                        <div class="col-12 mt-3">
420
                        <?php
421
                            <?php
421
                        $element = $form->get('privacy');
422
                            $element = $form->get('privacy');
422
                        $element->setAttributes(['class' => 'form-control']);
423
                            $element->setAttributes(['class' => 'form-control']);
423
                        $element->setOptions(['label' => 'LABEL_PRIVACY']);
424
                            $element->setOptions(['label' => 'LABEL_PRIVACY']);
Línea 424... Línea 425...
424
 
425
 
425
                        echo $this->formLabel($element);
426
                            echo $this->formLabel($element);
Línea 426... Línea 427...
426
                        echo $this->formSelect($element);
427
                            echo $this->formSelect($element);
427
                        ?>
428
                            ?>
428
						</div>
429
                        </div>
429
                    </div>
430
                    </div>
430
 
431
 
431
					<div class="row">
432
                    <div class="row">
Línea 432... Línea 433...
432
	 	         		<div class="col-12 mt-3">
433
                        <div class="col-12 mt-3">
433
 
434
 
Línea 434... Línea 435...
434
                        <?php
435
                            <?php
435
                        $element = $form->get('status');
436
                            $element = $form->get('status');
436
                        echo $this->formCheckbox($element);
437
                            echo $this->formCheckbox($element);
437
                        ?>
438
                            ?>
438
						</div>
439
                        </div>
439
                    </div>
440
                    </div>
440
 
441
 
441
 
442