%PDF- %PDF-
| Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/modules/admin/views/setting/ |
| Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/modules/admin/views/setting/file.php |
<?php
/**
* @var $this \humhub\modules\ui\view\components\View
* @var \humhub\modules\admin\models\forms\FileSettingsForm $model
* @var float $maxUploadSize
* @var string $maxUploadSizeText
* @var string $currentImageLibrary
*/
use humhub\modules\ui\form\widgets\ActiveForm;
use yii\helpers\Html;
/** @var \humhub\modules\file\Module $fileModule */
$fileModule = Yii::$app->getModule('file');
?>
<?php $this->beginContent('@admin/views/setting/_advancedLayout.php') ?>
<?php $form = ActiveForm::begin(['acknowledge' => true]); ?>
<?= $form->errorSummary($model); ?>
<?= $form->field($model, 'maxFileSize')->textInput(['class' => 'form-control', 'readonly' => $fileModule->settings->isFixed('maxFileSize')]); ?>
<p class="help-block" <?= ($model->maxFileSize > $maxUploadSize) ? 'style="color:' . $this->theme->variable('danger') . ' !important"' : '' ?>>
<?= Yii::t('AdminModule.settings', 'PHP reported a maximum of {maxUploadSize} MB', ['{maxUploadSize}' => $maxUploadSizeText]); ?>
</p>
<?= $form->field($model, 'allowedExtensions')->textarea(['class' => 'form-control']); ?>
<p class="help-block"><?= Yii::t('AdminModule.settings', 'Comma separated list. Leave empty to allow all.'); ?></p>
<br />
<?= $form->field($model, 'useXSendfile')->checkbox(['disabled' => $fileModule->settings->isFixed('useXSendfile')]); ?>
<?= $form->field($model, 'excludeMediaFilesPreview')->checkbox(['disabled' => $fileModule->settings->isFixed('excludeMediaFilesPreview')]); ?>
<hr>
<?= Html::submitButton(Yii::t('AdminModule.settings', 'Save'), ['class' => 'btn btn-primary', 'data-ui-loader' => ""]); ?>
<?= \humhub\widgets\DataSaved::widget(); ?>
<?php ActiveForm::end(); ?>
<?php $this->endContent(); ?>