예제 #1
0
?>

    <?php 
echo $form->field($model, 'price')->textInput();
?>

    <?php 
echo $form->field($model, 'is_sold')->checkbox();
?>

    <?php 
echo $form->field($model, 'is_house')->checkbox();
?>

    <?php 
echo $form->field($model, 'date_ready')->dropDownList(ArrayHelper::map(DateReadyDistrict::find()->all(), 'id', 'date'), ['prompt=' > '- Choose Your Permissions -']);
?>

    <?php 
echo FileInput::widget(['options' => ['accept' => 'image/*'], 'model' => $model, 'attribute' => 'image', 'pluginOptions' => ['initialPreview' => $model->image ? [Html::img($model->thumburl)] : false, 'overwriteInitial' => true]]);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
예제 #2
0
							<input type="text" class="size-from2 count_range" value="<?php 
echo $sizes[0];
?>
">-
							<input type="text" class="size-to2 count_range" value="<?php 
echo $sizes[1];
?>
">
						</div>
					</div>

					<div class="filter_elements">Дата сдачи
						<div class="filter_village">

							<?php 
$readys = ArrayHelper::map(DateReadyDistrict::find()->all(), 'id', 'date');
?>
							<?php 
echo Html::checkboxList('date_ready', $ready, $readys, ['itemOptions' => ['class' => 'selection_checkbox']]);
?>

							<!--							<input type="checkbox" name="date_delivery" value="2014" checked>до 2014 (уже сдан)<br>-->
							<!--							<input type="checkbox" name="date_delivery" value="2015">до осени 2015<br>-->
							<!--							<input type="checkbox" name="date_delivery" value="2016">до осени 2016<br>-->
						</div>
					</div>

					<div class="submit_selection">
						<button class="submit_form" type="submit">Найти</button>
					</div>
예제 #3
0
 public function getDateReadyDistrict()
 {
     return $this->hasOne(DateReadyDistrict::className(), ["id" => "date_ready"]);
 }