%PDF- %PDF-
| Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/cfiles/views/move/ |
| Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/cfiles/views/move/modal_move.php |
<?php
use humhub\modules\cfiles\models\forms\MoveForm;
use humhub\widgets\ActiveForm;
use humhub\widgets\ModalButton;
use humhub\widgets\ModalDialog;
/* @var $this \humhub\modules\ui\view\components\View */
/* @var $model MoveForm */
?>
<?php ModalDialog::begin(['header' => Yii::t('CfilesModule.base', '<strong>Move</strong> files'), 'size' => 'small']) ?>
<?php $form = ActiveForm::begin(); ?>
<div class="modal-body">
<br />
<?= $this->render('directory_tree', ['root' => $model->root]) ?>
<?= $form->field($model, 'destId')->hiddenInput(['id' => 'input-hidden-selectedFolder'])->label(false) ?>
<?php foreach ($model->selection as $index => $item) : ?>
<input class='input-hidden-selectedItem' type='hidden' name='selection[]' value='<?= $item ?>' />
<?php endforeach; ?>
</div>
<div class="modal-footer">
<?= ModalButton::submitModal($model->getMoveUrl())?>
<?php if ($moveToContainerUrl = $model->getMoveToContainerUrl()) : ?>
<?= ModalButton::info(Yii::t('CfilesModule.base', 'Move to another Space'))->action('ui.modal.load', $moveToContainerUrl) ?>
<?php endif; ?>
<?= ModalButton::cancel() ?>
</div>
<?php ActiveForm::end() ?>
<?php ModalDialog::end()?>