Ejemplo n.º 1
0
<div class="uk-form uk-form-horizontal" ng-class="vm.name == 'contentCtrl' ? 'uk-width-large-2-3 wk-width-xlarge-1-2' : ''">

    <h3 class="wk-form-heading">{{'Content' | trans}}</h3>

    <div class="uk-form-row">
        <label class="uk-form-label" for="wk-category">{{'Category' | trans}}</label>
        <div class="uk-form-controls">
            <select id="wk-category" class="uk-form-width-large" ng-model="content.data['category']" multiple>
                <option value="0">{{'All' | trans}}</option>
                <?php 
foreach (\app\modules\realestate\models\RealEstateCategory::find()->published()->all() as $option) {
    ?>
                    <option value="<?php 
    echo $option->id;
    ?>
"><?php 
    echo $option->title;
    ?>
</option>
                <?php 
}
?>
            </select>
        </div>
    </div>

    <div class="uk-form-row">
        <label class="uk-form-label" for="wk-number">{{'Limit' | trans}}</label>
        <div class="uk-form-controls">
            <input id="wk-number" class="uk-form-width-large" type="number" value="5" min="1" step="1" ng-model="content.data['number']">
        </div>
Ejemplo n.º 2
0
<?php

/**
 * @var $this \app\components\View;
 * @var $dataProviderCatalog \app\modules\catalog\models\CatalogItems;
 */
use yii\helpers\Url;
use app\modules\text\api\Text;
$this->setSeoData('Osnova', '', '', '/');
$bundle = \app\templates\frontend\base\assets\BaseAsset::register($this);
$this->registerJsFile('//maps.googleapis.com/maps/api/js?key=AIzaSyA9aTGWSRFbk4Fw6mUjDmTUPnsj5Imves0', ['depends' => [\yii\web\JqueryAsset::className()]]);
$this->registerJs('var mapCoordinates = "' . \yii\helpers\Url::to(['/realestate/category/get-response-positions']) . '";', \yii\web\View::POS_HEAD, 'mapCoordinates');
$this->registerJsFile($bundle->baseUrl . '/js/markerclusterer.js', ['position' => \yii\web\View::POS_END], 'markerclusterer');
$this->registerJsFile($bundle->baseUrl . '/js/map_category.js', ['position' => \yii\web\View::POS_END], 'mapCoordinates');
$categories = \app\modules\realestate\models\RealEstateCategory::find()->published()->all();
?>
<section class="main-objects-container objects-container">
    <section class="main-about-container" id="main-about">
        <?php 
echo Text::get('main_about');
?>
    </section>
    <section class="objects-container">
        <div class="container">
            <h2 class="h2-red"><?php 
echo Yii::t('system', 'All properties');
?>
</h2>
        </div>
        <div class="line-block">
            <div class="container">