Exemple #1
0
use common\widgets\StepsNavigation\StepsNavigation;
use yii\helpers\Url;
use common\widgets\ImageLoad\ImageLoadWidget;
use yii\bootstrap\Html;
/* @var $this yii\web\View */
/* @var $modelAdRealEstate common\models\AdRealEstate */
/* @var $user common\models\User */
$user = Yii::$app->user->identity;
$this->title = Yii::t('app', 'Step 3') . ': ' . Yii::t('app', 'Add photos');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Ad Real Estates'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="container" style="margin-top: 0 !important; padding-top: 0 !important;">
    <div class="col-md-12 text-center">
        <?php 
echo StepsNavigation::widget(['targetStep1' => '#confirm-step1', 'urlStep1' => Url::to(['/ad/default/index', 'id' => $modelAdRealEstate->adCategory->adMain->id]), 'urlStep2' => Url::to(['/ad/real-estate/update', 'id' => $modelAdRealEstate->id]), 'urlStep3' => Url::to(['/#']), 'urlStep4' => Url::to(['/#']), 'titleStep1' => Yii::t('app', 'Step 1'), 'titleStep2' => Yii::t('app', 'Step 2'), 'titleStep3' => Yii::t('app', 'Step 3'), 'titleStep4' => Yii::t('app', 'Complite'), 'headerStep1' => Yii::t('app', 'Select Category'), 'headerStep2' => Yii::t('app', 'Select the type of property and fill out a simple form.'), 'headerStep3' => Yii::t('app', 'Add photos'), 'headerStep4' => Yii::t('app', 'Post the ad'), 'contentStep1' => Yii::t('app', 'Select Category: content'), 'contentStep2' => Yii::t('app', 'Fill in the form: content'), 'contentStep3' => Yii::t('app', 'Add images: content'), 'contentStep4' => Yii::t('app', 'Post the ad: content'), 'classLinkStep1' => '', 'classLinkStep2' => '', 'classLinkStep3' => 'active', 'classLinkStep4' => 'disabled', 'classContentStep1' => 'tab-pane', 'classContentStep2' => 'tab-pane', 'classContentStep3' => 'tab-pane active', 'classContentStep4' => 'tab-pane']);
//
?>
    </div>
        <h1 class="text-center" style="margin-bottom: 40px;"><?php 
echo Html::encode($this->title);
?>
</h1>
    <div class="col-md-6" style="margin-top: 0 !important; padding-top: 0 !important; padding-bottom: 20px;">
        <div class="row">
            <div class="col-md-12">
                <?php 
if ($modelAdRealEstate->model_scenario == 'sellingRoom' || $modelAdRealEstate->model_scenario == 'rentARoom' || $modelAdRealEstate->model_scenario == 'sellingApatrment' || $modelAdRealEstate->model_scenario == 'rentApatrment' || $modelAdRealEstate->model_scenario == 'sellingHouse' || $modelAdRealEstate->model_scenario == 'rentHouse' || $modelAdRealEstate->model_scenario == 'sellingLand' || $modelAdRealEstate->model_scenario == 'sellingGarage' || $modelAdRealEstate->model_scenario == 'rentGarage' || $modelAdRealEstate->model_scenario == 'sellingComercial' || $modelAdRealEstate->model_scenario == 'rentComercial') {
    ?>
                    <?php 
    echo ImageLoadWidget::widget(['modelName' => 'AdRealEstate', 'id' => 'load-image', 'object_id' => $modelAdRealEstate->id, 'imagesObject' => $modelAdRealEstate->imagesOfObjects, 'images_num' => $user->userPrivilege->images_num, 'images_label' => $modelAdRealEstate->images_label, 'images_temp' => 0, 'imageSmallWidth' => 480, 'imageSmallHeight' => 270, 'headerModal' => 'Загрузить изображение товара', 'sizeModal' => 'modal-md', 'baseUrl' => '/images/', 'imagePath' => 'imagesApp/' . $modelAdRealEstate->model_scenario . '/' . $modelAdRealEstate->subDir . '/', 'noImage' => 'imagesApp/noImage_' . Yii::$app->language . '.png', 'classesWidget' => ['imageClass' => 'imageProduct', 'buttonDeleteClass' => 'btn btn-xs btn-danger btn-imageDeleteProduct glyphicon glyphicon-trash glyphicon', 'imageContainerClass' => 'imageContainerProduct', 'formImagesContainerClass' => 'formImageContainerProduct'], 'pluginOptions' => ['aspectRatio' => 16 / 9, 'strict' => true, 'guides' => true, 'center' => true, 'autoCrop' => true, 'autoCropArea' => 0.5, 'dragCrop' => true, 'movable' => true, 'rotatable' => true, 'scalable' => true, 'zoomable' => true, 'preview' => '.img-preview'], 'cropBoxData' => ['left' => 10, 'top' => 10, 'width' => 480, 'height' => 270], 'canvasData' => []]);
Exemple #2
0
use justinvoelker\awesomebootstrapcheckbox\ActiveField;
use yii\widgets\Pjax;
use common\widgets\AdWidget\AdWidget;
/* @var $this yii\web\View */
/* @var $modelAdMain common\models\AdMain */
/* @var $user common\models\User */
/* @var $radioClass string */
$this->title = Yii::t('app', 'Step 4') . ': ' . Yii::t('app', 'Publish ad');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Ad Real Estates'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
$user = Yii::$app->user->identity;
?>
<div class="container" style="margin-top: 0 !important; padding-top: 0 !important;">
    <div class="col-md-12 text-center">
        <?php 
echo StepsNavigation::widget(['targetStep1' => '#confirm-step1', 'urlStep1' => $modelAdMain->getUrlStep1(), 'urlStep2' => $modelAdMain->getUrlStep2(), 'urlStep3' => $modelAdMain->getUrlStep3(), 'urlStep4' => Url::to(['/#']), 'titleStep1' => Yii::t('app', 'Step 1'), 'titleStep2' => Yii::t('app', 'Step 2'), 'titleStep3' => Yii::t('app', 'Step 3'), 'titleStep4' => Yii::t('app', 'Complite'), 'headerStep1' => Yii::t('app', 'Select Category'), 'headerStep2' => Yii::t('app', 'Select the type of property and fill out a simple form.'), 'headerStep3' => Yii::t('app', 'Add photos'), 'headerStep4' => Yii::t('app', 'Post the ad'), 'contentStep1' => Yii::t('app', 'Select Category: content'), 'contentStep2' => Yii::t('app', 'Fill in the form: content'), 'contentStep3' => Yii::t('app', 'Add images: content'), 'contentStep4' => Yii::t('app', 'Post the ad: content'), 'classLinkStep1' => '', 'classLinkStep2' => '', 'classLinkStep3' => '', 'classLinkStep4' => 'active', 'classContentStep1' => 'tab-pane', 'classContentStep2' => 'tab-pane', 'classContentStep3' => 'tab-pane', 'classContentStep4' => 'tab-pane active']);
//
?>
    </div>
    <div class="col-md-12 text-center block-padding-bottom">
        <h1><?php 
echo Yii::t('app', 'Template');
?>
</h1>
    </div>
    <div class="style_forms">
        <?php 
Pjax::begin(['id' => 'style_forms', 'enablePushState' => true]);
$js = <<<JS
    /*\$("#style_forms").on("pjax:complete", function() {
        \$("#style_form").attr("tabindex",-1).focus();
Exemple #3
0
use yii\helpers\Url;
use yii\bootstrap\Html;
/* @var $this yii\web\View */
/* @var $modelAdMain common\models\AdMain */
$this->title = Yii::t('app', 'Post ad') . ': ' . Yii::t('app', 'Select Category');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="container" style="margin-top: 0 !important; padding-top: 0 !important;">
<?php 
Pjax::begin([]);
AssetBundle::register($this);
ChosenAsset::register($this);
MaskedInput::widget(['name' => 'masked-input_init', 'clientOptions' => ['alias' => 'decimal']]);
?>
    <?php 
echo StepsNavigation::widget(['targetStep1' => '', 'urlStep1' => Url::to(['/ad/default/index']), 'urlStep2' => Url::to(['/#']), 'urlStep3' => Url::to(['/#']), 'urlStep4' => Url::to(['/#']), 'titleStep1' => Yii::t('app', 'Step 1'), 'titleStep2' => Yii::t('app', 'Step 2'), 'titleStep3' => Yii::t('app', 'Step 3'), 'titleStep4' => Yii::t('app', 'Complite'), 'headerStep1' => Yii::t('app', 'Select Category'), 'headerStep2' => Yii::t('app', 'Select the type of property and fill out a simple form.'), 'headerStep3' => Yii::t('app', 'Add images'), 'headerStep4' => Yii::t('app', 'Post the ad'), 'contentStep1' => Yii::t('app', 'Select Category: content'), 'contentStep2' => Yii::t('app', 'Fill in the form: content'), 'contentStep3' => Yii::t('app', 'Add images: content'), 'contentStep4' => Yii::t('app', 'Post the ad: content'), 'classLinkStep1' => 'active', 'classLinkStep2' => 'disabled', 'classLinkStep3' => 'disabled', 'classLinkStep4' => 'disabled', 'classContentStep1' => 'tab-pane active', 'classContentStep2' => 'tab-pane', 'classContentStep3' => 'tab-pane', 'classContentStep4' => 'tab-pane']);
?>
    <h1 class="text-center" style="margin-bottom: 40px;"><?php 
echo Html::encode($this->title);
?>
</h1>
    <div class="col-md-12 text-center">
        <?php 
echo Nav::widget(['items' => $modelAdMain->mainCategoryList, 'activateParents' => true, 'encodeLabels' => false, 'options' => ['class' => 'nav nav-pills']]);
?>
    </div>
<?php 
Pjax::end();
?>
</div>