add property and property definition
This commit is contained in:
42
backend/views/settings/index.php
Normal file
42
backend/views/settings/index.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/** @var common\models\PropertySettingModel[] $settings */
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="room-form">
|
||||
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
|
||||
<?php
|
||||
$index = 0;
|
||||
foreach ($settings as $setting) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-3">
|
||||
<?= $setting->label . ":" ?>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<?= $form->field($setting, "[$index]value")->textInput(['maxlength' => true, 'label' => false])->label(false) ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$index++;
|
||||
} ?>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton("Mentés", ['class' => 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user