예제 #1
0
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use humhub\modules\space\modules\manage\widgets\DefaultMenu;
?>

<div class="panel panel-default">
    <div>
        <div class="panel-heading">
            <?php 
echo Yii::t('SpaceModule.views_settings', '<strong>Space</strong> settings');
?>
        </div>
    </div>

    <?php 
echo DefaultMenu::widget(['space' => $model]);
?>
    <div class="panel-body">

        <?php 
$form = ActiveForm::begin(['options' => ['id' => 'spaceIndexForm'], 'enableClientValidation' => false]);
?>
        
        <?php 
echo humhub\modules\space\widgets\SpaceNameColorInput::widget(['form' => $form, 'model' => $model]);
?>

        <?php 
echo $form->field($model, 'description')->textarea(['rows' => 6]);
?>
예제 #2
0
<?php

use yii\helpers\Html;
use humhub\compat\CActiveForm;
use humhub\modules\space\modules\manage\widgets\DefaultMenu;
?>

<?php 
echo DefaultMenu::widget(['space' => $space]);
?>
<br/>
<div class="panel panel-default">
    <div class="panel-heading">
        <?php 
echo Yii::t('SpaceModule.views_admin_delete', '<strong>Delete</strong> space');
?>
    </div>
    <div class="panel-body">
        <p><?php 
echo Yii::t('SpaceModule.views_admin_delete', 'Are you sure, that you want to delete this space? All published content will be removed!');
?>
</p>
        <p><?php 
echo Yii::t('SpaceModule.views_admin_delete', 'Please provide your password to continue!');
?>
</p><br>

        <?php 
$form = CActiveForm::begin();
?>