Rev 17139 | Rev 17141 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php$acl = $this->viewModel()->getRoot()->getVariable('acl');$currentUser = $this->currentUserHelper();$roleName = $currentUser->getUserTypeId();$routeDatatable = $this->url('microlearning/content/slides');$allowAdd = $acl->isAllowed($roleName, 'microlearning/content/slides/add') ? 1 : 0;$allowEdit = $acl->isAllowed($roleName, 'microlearning/content/slides/edit') ? 1 : 0;$allowDelete = $acl->isAllowed($roleName, 'microlearning/content/slides/delete') ? 1 : 0;$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/css/fileinput.min.css'));$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fa/theme.css'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/plugins/piexif.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/plugins/sortable.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/fileinput.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/locales/es.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/fa/theme.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fa/theme.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-input-number/input-number-format.jquery.js'));$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));$this->inlineScript()->captureStart();echo <<<JSconsole.log('Hola');JS;$this->inlineScript()->captureEnd();?><div class="container"><div class="card" id="row-listing"><div class="card-header"><h6 class="card-title">LABEL_SLIDES</h6></div><div class="card-body"><?php$form = $this->form;$form->setAttributes(['name' => 'form-filter','id' => 'form-filter',]);$form->prepare();echo $this->form()->openTag($form);?><div class="row"><div class="col-md-12 mt-3"><?php$element = $form->get('capsule_uuid');$element->setOptions(['label' => 'LABEL_CAPSULE']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><?php echo $this->form()->closeTag($form); ?><div class="row"><div class="col-12 mt-3"><table id="gridTable" class="table table-bordered"><thead><tr><th>LABEL_NAME</th><th>LABEL_DETAILS</th><th>LABEL_MEDIA</th><th>LABEL_ACTIONS</th></tr></thead><tbody></tbody></table></div></div></div><div class="card-footer text-right"><button type="button" class="btn btn-info btn-refresh"><i class="fa fa-sync"></i>LABEL_REFRESH</button><?php if($allowAdd) : ?><div class="btn-group dropup"><button type="button" class="btn btn-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-plus"></i> LABEL_ADD</button><div class="dropdown-menu"><a class="dropdown-item" href="#" id="btn-add-image"><i class="fa fa-image mr-2" aria-hidden="true"></i> LABEL_IMAGE </a><a class="dropdown-item" href="#" id="btn-add-text"><i class="fa fa-file mr-2" aria-hidden="true"></i> LABEL_TEXT </a><a class="dropdown-item" href="#" id="btn-add-video"><i class="fa fa-video mr-2" aria-hidden="true"></i> LABEL_VIDEO </a><a class="dropdown-item" href="#" id="btn-add-document"><i class="fa fa-file mr-2" aria-hidden="true"></i> LABEL_DOCUMENT </a><a class="dropdown-item" href="#" id="btn-add-audio"><i class="fa fa-music mr-2" aria-hidden="true"></i> LABEL_AUDIO </a><a class="dropdown-item" href="#" id="btn-add-quizz"><i class="fa fa-question mr-2" aria-hidden="true"></i> LABEL_QUIZ </a></div></div><?php endif; ?></div></div><div class="card" id="row-text-add-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_ADD_TEXT_SLIDE</h6></div><?php$form = $this->formTextAdd;$form->setAttributes(['method' => 'post','name' => 'form-slide-text-add','id' => 'form-slide-text-add']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('description');$element->setOptions(['label' => 'LABEL_DESCRIPTION']);$element->setAttributes(['id' => 'description_add', 'rows' => '2', 'class' => 'form-control']);echo $this->formLabel($element);echo $this->formTextArea($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes([ 'class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-text-edit-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_EDIT_TEXT_SLIDE</h6></div><?php$form = $this->formTextEdit;$form->setAttributes(['method' => 'post','name' => 'form-slide-text-edit','id' => 'form-slide-text-edit']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('description');$element->setOptions(['label' => 'LABEL_DESCRIPTION']);$element->setAttributes(['id' => 'description_edit', 'rows' => '2', 'class' => 'form-control']);echo $this->formLabel($element);echo $this->formTextArea($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes([ 'class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-image-add-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_ADD_IMAGE_SLIDE</h6></div><?php$form = $this->formImageAdd;$form->setAttributes(['method' => 'post','name' => 'form-slide-image-add','id' => 'form-slide-image-add']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('file');$element->setAttributes([ 'class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-image-edit-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_EDIT_IMAGE_SLIDE</h6></div><?php$form = $this->formImageEdit;$form->setAttributes(['method' => 'post','name' => 'form-slide-image-edit','id' => 'form-slide-image-edit']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('file');$element->setAttributes([ 'class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-video-add-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_ADD_VIDEO_SLIDE</h6></div><?php$form = $this->formVideoAdd;$form->setAttributes(['method' => 'post','name' => 'form-slide-video-add','id' => 'form-slide-video-add']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('file');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_VIDEO']);$element->setAttributes(['accept' => 'video/webm,video/mpeg,video/mp4']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-video-edit-box" style="display: none"><div class="card-header"><h6 class="card-title">>LABEL_EDIT_VIDEO_SLIDE</h6></div><?php$form = $this->formVideoEdit;$form->setAttributes(['method' => 'post','name' => 'form-slide-video-edit','id' => 'form-slide-video-edit']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('file');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_VIDEO']);$element->setAttributes(['accept' => 'video/webm,video/mpeg,video/mp4']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-document-add-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_ADD_DOCUMENT_SLIDE</h6></div><?php$form = $this->formDocumentAdd;$form->setAttributes(['method' => 'post','name' => 'form-slide-document-add','id' => 'form-slide-document-add']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('file');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_DOCUMENT']);$element->setAttributes(['accept' => 'application/pdf']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-document-edit-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_EDIT_DOCUMENT_SLIDE</h6></div><?php$form = $this->formDocumentEdit;$form->setAttributes(['method' => 'post','name' => 'form-slide-document-edit','id' => 'form-slide-document-edit']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('file');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_DOCUMENT']);$element->setAttributes(['accept' => 'application/pdf']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-audio-add-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_ADD_AUDIO_SLIDE</h6></div><?php$form = $this->formAudioAdd;$form->setAttributes(['method' => 'post','name' => 'form-slide-audio-add','id' => 'form-slide-audio-add']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('file');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_AUDIO']);$element->setAttributes(['accept' => 'audio/x-wav, audio/mpeg']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-audio-edit-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_EDIT_AUDIO_SLIDE</h6></div><?php$form = $this->formAudioEdit;$form->setAttributes(['method' => 'post','name' => 'form-slide-audio-edit','id' => 'form-slide-audio-edit']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('file');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_AUDIO']);$element->setAttributes(['accept' => 'audio/x-wav, audio/mpeg']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-quizz-add-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_ADD_QUIZ_SLIDE</h6></div><?php$form = $this->formQuizzAdd;$form->setAttributes(['method' => 'post','name' => 'form-slide-quizz-add','id' => 'form-slide-quizz-add']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('quiz_id');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_QUIZ']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div><div class="card" id="row-quizz-edit-box" style="display: none"><div class="card-header"><h6 class="card-title">LABEL_EDIT_QUIZ_SLIDE</h6></div><?php$form = $this->formQuizzEdit;$form->setAttributes(['method' => 'post','name' => 'form-slide-quizz-edit','id' => 'form-slide-quizz-edit']);$form->prepare();echo $this->form()->openTag($form);$element = $form->get('type');echo $this->formHidden($element);?><div class="card-body"><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('name');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_NAME']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('order');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_ORDER']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('quiz_id');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_QUIZ']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><div class="row"><div class="col-12 mt-3"><?php$element = $form->get('background');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_IMAGE']);$element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);echo $this->formLabel($element);echo $this->formFile($element);?></div></div></div><div class="card-footer text-right"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div><!-- The Modal --><div class="modal" id="modal-play-video-box" ><div class="modal-dialog "><div class="modal-content"><!-- Modal Header --><div class="modal-header"><h6 class="modal-title">LABEL_PLAY_VIDEO</h6><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button></div><!-- Modal body --><div class="modal-body"><video src="" style="width: 300px; height: auto" controls preload="false" autoplay="false" poster="" id="microlearning-play-video"></video></div><!-- Modal footer --><div class="modal-footer text-right"><button type="button" class="btn btn-light" data-bs-dismiss="modal">LABEL_CLOSE</button></div></div></div></div><!-- The Modal --><div class="modal" id="modal-play-audio-box" ><div class="modal-dialog "><div class="modal-content"><!-- Modal Header --><div class="modal-header"><h6 class="modal-title">LABEL_PLAY_AUDIO</h6><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button></div><!-- Modal body --><div class="modal-body"><audio src="" controls autoplay="false" id="microlearning-play-audio" >Your browser does not support the <code>audio</code> element.</audio></div><!-- Modal footer --><div class="modal-footer text-right"><button type="button" class="btn btn-light" data-bs-dismiss="modal">LABEL_CLOSE</button></div></div></div></div><!-- The Modal --><div class="modal" id="modal-view-image-box"><div class="modal-dialog "><div class="modal-content"><!-- Modal Header --><div class="modal-header"><h6 class="modal-title">LABEL_IMAGE</h6><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button></div><!-- Modal body --><div class="modal-body text-center"><img src="" class="img img-responsive" style="width: 300px; height: auto" id="image-view" /></div><!-- Modal footer --><div class="modal-footer text-right"><button type="button" class="btn btn-light" data-bs-dismiss="modal">LABEL_CLOSE</button></div></div></div></div><!-- The Modal --><div class="modal" id="modal-view-document-box"><div class="modal-dialog "><div class="modal-content"><!-- Modal Header --><div class="modal-header"><h6 class="modal-title">LABEL_DOCUMENT</h6><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button></div><!-- Modal body --><div class="modal-body text-center"><iframe id="document-view" style="width: 450px; height: 300px; overflow: auto"></iframe></div><!-- Modal footer --><div class="modal-footer text-right"><button type="button" class="btn btn-light" data-bs-dismiss="modal">LABEL_CLOSE</button></div></div></div></div><!-- The Modal --><div class="modal" id="modal-view-text-box"><div class="modal-dialog modal-xl"><div class="modal-content"><!-- Modal Header --><div class="modal-header"><h6 class="modal-title">LABEL_TEXT</h6><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button></div><!-- Modal body --><div class="modal-body" ><div id="document-text" style="width: 100%; height: 300px; overflow: auto;"></div></div><!-- Modal footer --><div class="modal-footer text-right"><button type="button" class="btn btn-light" data-bs-dismiss="modal">LABEL_CLOSE</button></div></div></div></div>